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

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