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

◆ find() [3/6]

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

Definition at line 418 of file str.h.

418 {
419 if (!substr) {
420 return npos;
421 }
422 auto begin = c_str();
423 const char* found = strstr(begin, substr);
424 if (found) {
425 return found - begin;
426 }
427 return npos;
428 }
static constexpr fl::size npos
Definition str.h:146
StrN substr(fl::size start, fl::size length) const
Definition str.h:543
char * begin()
Definition str.h:353
const char * c_str() const
Definition str.h:326

References begin(), c_str(), npos, and substr().

+ Here is the call graph for this function: