1229 {
1230 if (!s) {
1231 if (pos1 >=
mLength)
return (count2 == 0) ? 0 : -1;
1232 fl::size actualCount1 = count1;
1233 if (actualCount1 ==
npos || pos1 + actualCount1 >
mLength) {
1234 actualCount1 =
mLength - pos1;
1235 }
1236 return (actualCount1 > 0) ? 1 : ((count2 == 0) ? 0 : -1);
1237 }
1238 if (pos1 >
mLength)
return (count2 == 0) ? 0 : -1;
1239 fl::size actualCount1 = count1;
1240 if (actualCount1 ==
npos || pos1 + actualCount1 >
mLength) {
1241 actualCount1 =
mLength - pos1;
1242 }
1243 fl::size minLen = (actualCount1 < count2) ? actualCount1 : count2;
1246 if (actualCount1 < count2) return -1;
1247 if (actualCount1 > count2) return 1;
1248 return 0;
1249}
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