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

◆ find() [6/6]

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

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

590 {
591 if (!substr || start_pos >= mLength) return npos;
592 auto begin_ptr = c_str() + start_pos;
593 const char* found = fl::strstr(begin_ptr, substr);
594 if (found) return found - c_str();
595 return npos;
596}
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, mLength, npos, and fl::strstr().

+ Here is the call graph for this function: