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

◆ find() [2/6]

template<fl::size SIZE = FASTLED_STR_INLINED_SIZE>
fl::size fl::StrN< SIZE >::find ( const char & value,
fl::size start_pos ) const
inline

Definition at line 437 of file str.h.

437 {
438 if (start_pos >= mLength) {
439 return npos;
440 }
441 for (fl::size i = start_pos; i < mLength; ++i) {
442 if (c_str()[i] == value) {
443 return i;
444 }
445 }
446 return npos;
447 }
static constexpr fl::size npos
Definition str.h:146
const char * c_str() const
Definition str.h:326
fl::size mLength
Definition str.h:140

References c_str(), mLength, and npos.

+ Here is the call graph for this function: