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

◆ starts_with() [3/3]

bool fl::basic_string::starts_with ( const char * prefix) const

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

744 {
745 if (!prefix) return true;
746 fl::size prefix_len = fl::strlen(prefix);
747 if (prefix_len > mLength) return false;
748 return fl::strncmp(c_str(), prefix, prefix_len) == 0;
749}
const char * c_str() const FL_NO_EXCEPT
size_t strlen(const char *s) FL_NO_EXCEPT
int strncmp(const char *s1, const char *s2, size_t n) FL_NO_EXCEPT

References c_str(), mLength, fl::strlen(), and fl::strncmp().

Referenced by starts_with().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: