FastLED 3.9.15
Loading...
Searching...
No Matches
fl::StrN< SIZE > Class Template Reference

Detailed Description

template<size_t SIZE = 64>
class fl::StrN< SIZE >

Definition at line 79 of file str.h.

#include <str.h>

+ Inheritance diagram for fl::StrN< SIZE >:

Public Member Functions

 StrN ()=default
 
 StrN (const char *str)
 
template<int N>
 StrN (const char(&str)[N])
 
 StrN (const StrN &other)
 
template<size_t M>
 StrN (const StrN< M > &other)
 
 ~StrN ()
 
const char * c_str () const
 
char * c_str_mutable ()
 
size_t capacity () const
 
void clear (bool freeMemory=false)
 
void copy (const char *str)
 
void copy (const char *str, size_t len)
 
template<size_t M>
void copy (const StrN< M > &other)
 
bool empty () const
 
int16_t find (const char &value) const
 
size_t length () const
 
bool operator!= (const StrN &other) const
 
bool operator< (const StrN &other) const
 
template<size_t M>
bool operator< (const StrN< M > &other) const
 
template<int N>
StrNoperator= (const char(&str)[N])
 
StrNoperator= (const StrN &other)
 
template<size_t M>
StrNoperator= (const StrN< M > &other)
 
bool operator== (const StrN &other) const
 
char & operator[] (size_t index)
 
const char & operator[] (size_t index) const
 
void reserve (size_t newCapacity)
 
size_t size () const
 
StrN substring (size_t start, size_t end) const
 
float toFloat () const
 
StrN trim () const
 
size_t write (char c)
 
size_t write (const char *str, size_t n)
 
size_t write (const int32_t &val)
 
size_t write (const int8_t val)
 
size_t write (const uint16_t &n)
 
size_t write (const uint32_t &val)
 
size_t write (const uint8_t *data, size_t n)
 
size_t write (uint8_t c)
 

Private Attributes

StringHolderPtr mData
 
StringHolderPtr mHeapData
 
char mInlineData [SIZE] = {0}
 
size_t mLength = 0
 

The documentation for this class was generated from the following file: