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

◆ ends_with() [3/3]

bool fl::basic_string::ends_with ( const char * suffix) const

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

727 {
728 if (!suffix) return true;
729 fl::size suffix_len = fl::strlen(suffix);
730 if (suffix_len > mLength) return false;
731 return fl::strncmp(c_str() + mLength - suffix_len, suffix, suffix_len) == 0;
732}
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 ends_with().

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