21#include "MdcRecoUtil/String.h"
28 std::string::const_iterator p =
s.begin();
29 std::string::const_iterator p2 = s2.begin();
31 while (p !=
s.end() && p2 != s2.end() ) {
32 if (toupper(*p) != toupper(*p2))
33 return (toupper(*p) < toupper(*p2)) ? -1 : 1;
37 return (s2.size() ==
s.size()) ? 0 : (
s.size() < s2.size()) ? -1 : 1;
44 std::string str2 = s2;
46 return str1.find(str2);
51 std::string result(str);
58 std::string result(str);
65 const char*
data = str.c_str();
66 int length = str.size(), total=0;
67 for (
int i=0; i<length; i++ ) total +=
data[i];
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)