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

◆ operator[]() [2/2]

template<fl::size SIZE = FASTLED_STR_INLINED_SIZE>
char fl::StrN< SIZE >::operator[] ( fl::size index) const
inline

Definition at line 342 of file str.h.

342 {
343 if (index >= mLength) {
344 static char dummy = '\0';
345 return dummy;
346 }
347 return c_str()[index];
348 }
const char * c_str() const
Definition str.h:326
fl::size mLength
Definition str.h:140

References c_str(), and mLength.

+ Here is the call graph for this function: