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

◆ starts_with() [3/3]

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

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

720 {
721 if (!prefix) return true;
722 fl::size prefix_len = fl::strlen(prefix);
723 if (prefix_len > mLength) return false;
724 return fl::strncmp(c_str(), prefix, prefix_len) == 0;
725}
const char * c_str() const FL_NOEXCEPT
int strncmp(const char *s1, const char *s2, size_t n) FL_NOEXCEPT
size_t strlen(const char *s) FL_NOEXCEPT

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: