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

◆ find_last_not_of() [1/4]

fl::size fl::basic_string::find_last_not_of ( char c,
fl::size pos = npos ) const

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

696 {
697 if (mLength == 0) return npos;
698 fl::size searchPos = (pos >= mLength || pos == npos) ? (mLength - 1) : pos;
699 const char* str = c_str();
700 for (fl::size i = searchPos + 1; i > 0; --i) {
701 if (str[i - 1] != c) return i - 1;
702 }
703 return npos;
704}
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.

Referenced by find_last_not_of(), and find_last_not_of().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: