1206 {
1207 if (!s) {
1208 if (pos1 >=
mLength)
return 0;
1209 fl::size actualCount1 = count1;
1210 if (actualCount1 ==
npos || pos1 + actualCount1 >
mLength) {
1211 actualCount1 =
mLength - pos1;
1212 }
1213 return (actualCount1 > 0) ? 1 : 0;
1214 }
1215 if (pos1 >
mLength)
return (s[0] ==
'\0') ? 0 : -1;
1216 fl::size actualCount1 = count1;
1217 if (actualCount1 ==
npos || pos1 + actualCount1 >
mLength) {
1218 actualCount1 =
mLength - pos1;
1219 }
1221 fl::size minLen = (actualCount1 < sLen) ? actualCount1 : sLen;
1224 if (actualCount1 < sLen) return -1;
1225 if (actualCount1 > sLen) return 1;
1226 return 0;
1227}
static constexpr fl::size npos
const char * c_str() const FL_NO_EXCEPT
expected< T, E > result
Alias for expected (Rust-style naming)
FASTLED_FORCE_INLINE int strncmp(const char *s1, const char *s2, size_t n) FL_NO_EXCEPT
FASTLED_FORCE_INLINE size_t strlen(const char *s) FL_NO_EXCEPT