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

◆ find() [6/6]

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

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

541 {
542 if (!substr || start_pos >= mLength) return npos;
543 auto begin_ptr = c_str() + start_pos;
544 const char* found = fl::strstr(begin_ptr, substr);
545 if (found) return found - c_str();
546 return npos;
547}
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(), mLength, npos, and fl::strstr().

+ Here is the call graph for this function: