FastLED 3.9.15
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 672 of file basic_string.cpp.hpp.

672 {
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}
uint8_t pos
Definition Blur.ino:11
static constexpr fl::size npos
const char * c_str() const FL_NOEXCEPT

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: