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

◆ trim()

template<fl::size SIZE = FASTLED_STR_INLINED_SIZE>
StrN fl::StrN< SIZE >::trim ( ) const
inline

Definition at line 573 of file str.h.

573 {
574 StrN out;
575 fl::size start = 0;
578 start++;
579 }
580 while (end > start && StringFormatter::isSpace(c_str()[end - 1])) {
581 end--;
582 }
583 return substring(start, end);
584 }
char * end()
Definition str.h:354
const char * c_str() const
Definition str.h:326
StrN substring(fl::size start, fl::size end) const
Definition str.h:524
StrN()=default
fl::size mLength
Definition str.h:140

References StrN(), c_str(), end(), fl::StringFormatter::isSpace(), mLength, and substring().

+ Here is the call graph for this function: