FastLED 3.10.6
Loading...
Searching...
No Matches

◆ find() [5/6]

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

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

549 {
550 if (!substr) return npos;
551 auto begin_ptr = c_str();
552 const char* found = fl::strstr(begin_ptr, substr);
553 if (found) return found - begin_ptr;
554 return npos;
555}
static constexpr fl::size npos
const char * c_str() const FL_NO_EXCEPT
const char * strstr(const char *haystack, const char *needle) FL_NO_EXCEPT

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

+ Here is the call graph for this function: