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

◆ trim()

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

Definition at line 367 of file str.h.

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

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

+ Here is the call graph for this function: