1181 {
1182 if (!s) {
1183 if (pos1 >=
mLength)
return 0;
1184 fl::size actualCount1 = count1;
1185 if (actualCount1 ==
npos || pos1 + actualCount1 >
mLength) {
1186 actualCount1 =
mLength - pos1;
1187 }
1188 return (actualCount1 > 0) ? 1 : 0;
1189 }
1190 if (pos1 >
mLength)
return (s[0] ==
'\0') ? 0 : -1;
1191 fl::size actualCount1 = count1;
1192 if (actualCount1 ==
npos || pos1 + actualCount1 >
mLength) {
1193 actualCount1 =
mLength - pos1;
1194 }
1196 fl::size minLen = (actualCount1 < sLen) ? actualCount1 : sLen;
1199 if (actualCount1 < sLen) return -1;
1200 if (actualCount1 > sLen) return 1;
1201 return 0;
1202}
static constexpr fl::size npos
const char * c_str() const FL_NO_EXCEPT
size_t strlen(const char *s) FL_NO_EXCEPT
expected< T, E > result
Alias for expected (Rust-style naming)
int strncmp(const char *s1, const char *s2, size_t n) FL_NO_EXCEPT