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

◆ substr() [2/2]

template<fl::size SIZE = FASTLED_STR_INLINED_SIZE>
StrN fl::StrN< SIZE >::substr ( fl::size start,
fl::size length ) const
inline

Definition at line 543 of file str.h.

543 {
544 // Standard substr(pos, length) behavior - convert to substring(start, end)
546 if (end > mLength) {
547 end = mLength;
548 }
549 return substring(start, end);
550 }
char * end()
Definition str.h:354
StrN substring(fl::size start, fl::size end) const
Definition str.h:524
fl::size length() const
Definition str.h:325
fl::size mLength
Definition str.h:140

References StrN(), end(), length(), mLength, and substring().

Referenced by contains(), find(), find(), test_await_approach(), and test_promise_approach().

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