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

◆ find_first_of() [3/4]

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

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

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