35 inline void lowerCh(
char& c) { c = tolower(c); }
36 inline void upperCh(
char& c) { c = toupper(c); }
39 std::for_each(str.begin(), str.end(),
lowerCh);
42 std::for_each(str.begin(), str.end(),
upperCh);
45 std::string
toLower(
const std::string& str);
46 std::string
toUpper(
const std::string& str);
57 return strcasecmp(
s.c_str(), s2);
62 int find_nocase(
const std::string&
s,
const std::string& s2);
69 unsigned int rwHash(
const std::string& str);
unsigned int rwHash(const std::string &str)
std::string toUpper(const std::string &str)
int find_nocase(const std::string &s, const std::string &s2)
int compare_nocase(const std::string &s, const std::string &s2)
void transformToUpper(std::string &str)
std::string toLower(const std::string &str)
void transformToLower(std::string &str)