FastLED 3.10.6
Loading...
Searching...
No Matches

◆ find_last_not_of() [3/4]

fl::size fl::basic_string::find_last_not_of ( const char * s,
fl::size pos,
fl::size count ) const

Definition at line 706 of file basic_string.cpp.hpp.

706 {
707 if (!s || count == 0) {
708 if (mLength == 0) return npos;
709 fl::size searchPos = (pos >= mLength || pos == npos) ? (mLength - 1) : pos;
710 return searchPos;
711 }
712 if (mLength == 0) return npos;
713 fl::size searchPos = (pos >= mLength || pos == npos) ? (mLength - 1) : pos;
714 const char* str = c_str();
715 for (fl::size i = searchPos + 1; i > 0; --i) {
716 bool found_in_set = false;
717 for (fl::size j = 0; j < count; ++j) {
718 if (str[i - 1] == s[j]) { found_in_set = true; break; }
719 }
720 if (!found_in_set) return i - 1;
721 }
722 return npos;
723}
uint8_t pos
Definition Blur.ino:11
static constexpr fl::size npos
const char * c_str() const FL_NO_EXCEPT

References c_str(), mLength, npos, and pos.

+ Here is the call graph for this function: