MCPcopy Create free account
hub / github.com/FastLED/FastLED / find_first_not_of

Method find_first_not_of

src/fl/stl/basic_string.cpp.hpp:640–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638// ======= FIND_FIRST_NOT_OF =======
639
640fl::size basic_string::find_first_not_of(char c, fl::size pos) const {
641 if (pos >= mLength) return npos;
642 const char* str = c_str();
643 for (fl::size i = pos; i < mLength; ++i) {
644 if (str[i] != c) return i;
645 }
646 return npos;
647}
648
649fl::size basic_string::find_first_not_of(const char* s, fl::size pos, fl::size count) const {
650 if (!s || count == 0) return (pos < mLength) ? pos : npos;

Callers 2

FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45

Calls 3

strlenFunction · 0.85
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected