1179 {
1180 if (pos1 >
mLength || pos2 >= str.size()) {
1181 if (pos1 >
mLength && pos2 >= str.size())
return 0;
1182 if (pos1 >
mLength)
return -1;
1183 return 1;
1184 }
1185 fl::size actualCount1 = count1;
1186 if (actualCount1 ==
npos || pos1 + actualCount1 >
mLength) {
1187 actualCount1 =
mLength - pos1;
1188 }
1189 fl::size actualCount2 = count2;
1190 if (actualCount2 ==
npos || pos2 + actualCount2 > str.size()) {
1191 actualCount2 = str.size() - pos2;
1192 }
1193 fl::size minLen = (actualCount1 < actualCount2) ? actualCount1 : actualCount2;
1196 if (actualCount1 < actualCount2) return -1;
1197 if (actualCount1 > actualCount2) return 1;
1198 return 0;
1199}
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