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

◆ ends_with() [2/3]

template<fl::size SIZE = FASTLED_STR_INLINED_SIZE>
bool fl::StrN< SIZE >::ends_with ( const char * suffix) const
inline

Definition at line 504 of file str.h.

504 {
505 if (!suffix) {
506 return true; // Empty suffix matches any string
507 }
509 if (suffix_len > mLength) {
510 return false;
511 }
512 return strncmp(c_str() + mLength - suffix_len, suffix, suffix_len) == 0;
513 }
const char * c_str() const
Definition str.h:326
fl::size mLength
Definition str.h:140

References c_str(), and mLength.

Referenced by ends_with().

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