FastLED 3.10.10
Loading...
Searching...
No Matches

◆ find_last_of() [3/4]

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

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

666 {
667 if (!s || count == 0) return npos;
668 if (mLength == 0) return npos;
669 fl::size searchPos = (pos >= mLength || pos == npos) ? (mLength - 1) : pos;
670 const char* str = c_str();
671 for (fl::size i = searchPos + 1; i > 0; --i) {
672 for (fl::size j = 0; j < count; ++j) {
673 if (str[i - 1] == s[j]) return i - 1;
674 }
675 }
676 return npos;
677}
uint8_t pos
Definition Blur.ino:11
static constexpr fl::size npos
const char * c_str() const FL_NO_EXCEPT

References c_str(), fl::FL_NO_EXCEPT, mLength, npos, and pos.

+ Here is the call graph for this function: