FastLED 3.9.15
Loading...
Searching...
No Matches

◆ find_last_not_of() [3/4]

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

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

682 {
683 if (!s || count == 0) {
684 if (mLength == 0) return npos;
685 fl::size searchPos = (pos >= mLength || pos == npos) ? (mLength - 1) : pos;
686 return searchPos;
687 }
688 if (mLength == 0) return npos;
689 fl::size searchPos = (pos >= mLength || pos == npos) ? (mLength - 1) : pos;
690 const char* str = c_str();
691 for (fl::size i = searchPos + 1; i > 0; --i) {
692 bool found_in_set = false;
693 for (fl::size j = 0; j < count; ++j) {
694 if (str[i - 1] == s[j]) { found_in_set = true; break; }
695 }
696 if (!found_in_set) return i - 1;
697 }
698 return npos;
699}
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: