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

◆ trim()

template<size_t SIZE = 64>
StrN fl::StrN< SIZE >::trim ( ) const
inline

Definition at line 368 of file str.h.

368 {
369 StrN out;
370 size_t start = 0;
371 size_t end = mLength;
373 start++;
374 }
375 while (end > start && StringFormatter::isSpace(c_str()[end - 1])) {
376 end--;
377 }
378 return substring(start, end);
379 }
size_t mLength
Definition str.h:109
StrN substring(size_t start, size_t end) const
Definition str.h:353
const char * c_str() const
Definition str.h:273
StrN()=default

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

+ Here is the call graph for this function: