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

◆ find() [5/6]

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

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

525 {
526 if (!substr) return npos;
527 auto begin_ptr = c_str();
528 const char* found = fl::strstr(begin_ptr, substr);
529 if (found) return found - begin_ptr;
530 return npos;
531}
static constexpr fl::size npos
const char * c_str() const FL_NOEXCEPT
const char * strstr(const char *haystack, const char *needle) FL_NOEXCEPT

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

+ Here is the call graph for this function: