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

◆ find() [1/6]

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

Definition at line 408 of file str.h.

408 {
409 for (fl::size i = 0; i < mLength; ++i) {
410 if (c_str()[i] == value) {
411 return i;
412 }
413 }
414 return npos;
415 }
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.

Referenced by contains(), contains(), contains(), find(), find(), fl::response::is_json(), fl::istream_real::operator>>(), and fl::istream_real::operator>>().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: