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;