FastLED 3.10.6
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 641 of file basic_string.cpp.hpp.

641 {
642 if (!s || count == 0) return npos;
643 if (mLength == 0) return npos;
644 fl::size searchPos = (pos >= mLength || pos == npos) ? (mLength - 1) : pos;
645 const char* str = c_str();
646 for (fl::size i = searchPos + 1; i > 0; --i) {
647 for (fl::size j = 0; j < count; ++j) {
648 if (str[i - 1] == s[j]) return i - 1;
649 }
650 }
651 return npos;
652}
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: