20 void tokenize(
const std::string& str,
21 const std::string& delimiters,
22 std::vector< std::string >& tokens
26 std::string
trim(
const std::string myString,
const std::string& delimiters=
" \t\r\n");
29 std::string
fix(
const std::string myString,
const std::string& delimiters=
" \t\r\n");
32 bool endswith(
const std::string& full,
const std::string& ending);
49 int strncasecmp(
const std::string& a,
const std::string& b,
size_t n);
57 #endif //_STRINGUTIL_H
bool endswith(const string &full, const string &ending)
int strncasecmp(const string &a, const string &b, size_t n)
Compares the two strings a and b for first n characters, ignoring the case of the characters...
std::string fix(const std::string userPath, const string &delimiters)
string & clean_type_name(string &arg)
void tokenize(const string &str, const string &delimiters, vector< string > &tokens)
std::string trim(const std::string myString, const string &delimiters)
static const char *const DELIMITERS
string random_string(const unsigned len)