91 if (s1.size() == s2.size()) {
92 return strncasecmp(s1.data(), s2.data(), s1.size());
93 }
else if (s1.size() < s2.size()) {
94 int res = strncasecmp(s1.data(), s2.data(), s1.size());
95 return (res == 0) ? -1 : res;
97 int res = strncasecmp(s1.data(), s2.data(), s2.size());
98 return (res == 0) ? 1 : res;