FastLED 3.10.10
Loading...
Searching...
No Matches

◆ find() [5/6]

fl::size fl::basic_string::find ( const char * substr) const

Definition at line 574 of file basic_string.cpp.hpp.

574 {
575 if (!substr) return npos;
576 auto begin_ptr = c_str();
577 const char* found = fl::strstr(begin_ptr, substr);
578 if (found) return found - begin_ptr;
579 return npos;
580}
static constexpr fl::size npos
const char * c_str() const FL_NO_EXCEPT
FASTLED_FORCE_INLINE const char * strstr(const char *haystack, const char *needle) FL_NO_EXCEPT
Definition cstring.h:88

References c_str(), fl::FL_NO_EXCEPT, npos, and fl::strstr().

+ Here is the call graph for this function: