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

◆ starts_with() [2/3]

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

Definition at line 483 of file str.h.

483 {
484 if (!prefix) {
485 return true; // Empty prefix matches any string
486 }
488 if (prefix_len > mLength) {
489 return false;
490 }
491 return strncmp(c_str(), prefix, prefix_len) == 0;
492 }
const char * c_str() const
Definition str.h:326
fl::size mLength
Definition str.h:140

References c_str(), and mLength.

Referenced by starts_with().

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