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

617 {
618 if (!s || count == 0) return npos;
619 if (mLength == 0) return npos;
620 fl::size searchPos = (pos >= mLength || pos == npos) ? (mLength - 1) : pos;
621 const char* str = c_str();
622 for (fl::size i = searchPos + 1; i > 0; --i) {
623 for (fl::size j = 0; j < count; ++j) {
624 if (str[i - 1] == s[j]) return i - 1;
625 }
626 }
627 return npos;
628}
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.

+ Here is the call graph for this function: