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

◆ substring()

template<size_t SIZE = 64>
StrN fl::StrN< SIZE >::substring ( size_t start,
size_t end ) const
inline

Definition at line 328 of file str.h.

328 {
329 if (start >= mLength) {
330 return StrN();
331 }
332 if (end > mLength) {
333 end = mLength;
334 }
335 if (start >= end) {
336 return StrN();
337 }
338 StrN out;
339 out.copy(c_str() + start, end - start);
340 return out;
341 }
size_t mLength
Definition str.h:81
const char * c_str() const
Definition str.h:247
void copy(const char *str)
Definition str.h:102
StrN()=default
Definition str.h:79

References StrN(), c_str(), copy(), and mLength.

Referenced by trim().

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