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

Method find_last_not_of

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

Source from the content-addressed store, hash-verified

670// ======= FIND_LAST_NOT_OF =======
671
672fl::size basic_string::find_last_not_of(char c, fl::size pos) const {
673 if (mLength == 0) return npos;
674 fl::size searchPos = (pos >= mLength || pos == npos) ? (mLength - 1) : pos;
675 const char* str = c_str();
676 for (fl::size i = searchPos + 1; i > 0; --i) {
677 if (str[i - 1] != c) return i - 1;
678 }
679 return npos;
680}
681
682fl::size basic_string::find_last_not_of(const char* s, fl::size pos, fl::size count) const {
683 if (!s || count == 0) {

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