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

595 {
596 if (!s || count == 0) return npos;
597 if (pos >= mLength) return npos;
598 const char* str = c_str();
599 for (fl::size i = pos; i < mLength; ++i) {
600 for (fl::size j = 0; j < count; ++j) {
601 if (str[i] == s[j]) return i;
602 }
603 }
604 return npos;
605}
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: