20 while (*a != 0 && *b != 0)
25 if (ca == cb)
continue;
26 if (ca < cb)
return -1;
30 if (*a == 0 && *b != 0)
return +1;
31 else if (*a != 0 && *b == 0)
return -1;
37 std::string::const_iterator bi = b.begin();
39 while (*a != 0 && bi != b.end())
44 if (ca == cb)
continue;
45 if (ca < cb)
return -1;
49 if (*a == 0 && bi != b.end())
return +1;
50 else if (*a != 0 && bi == b.end())
return -1;
55 std::string::const_iterator ai = a.begin();
57 while (ai != a.end() && *b != 0)
62 if (ca == cb)
continue;
63 if (ca < cb)
return -1;
67 if (ai == a.end() && *b != 0)
return +1;
68 else if (ai != a.end() && *b == 0)
return -1;
73 std::string::const_iterator ai = a.begin();
74 std::string::const_iterator bi = b.begin();
76 while (ai != a.end() && bi != b.end())
81 if (ca == cb)
continue;
82 if (ca < cb)
return -1;
86 if (ai == a.end() && bi != b.end())
return +1;
87 else if (ai != a.end() && bi == b.end())
return -1;
char to_lower(char ch)
Transform the given character to lower case without any localization.
std::basic_string< char, std::char_traits< char >, Allocator< char > > string
string with Manager tracking
int compare_icase(const char *a, const char *b)
returns +1/0/-1 like strcmp(a, b) but without regard for letter case