FastLED 3.10.8
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
FASTLED_FORCE_INLINE int strncmp(const char *s1, const char *s2, size_t n) FL_NO_EXCEPT
Definition cstring.h:64
FASTLED_FORCE_INLINE size_t strlen(const char *s) FL_NO_EXCEPT
Definition cstring.h:56

References c_str(), fl::FL_NO_EXCEPT, 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: