FastLED 3.9.13
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.

Public Member Functions

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

Constructor & Destructor Documentation

◆ StrN() [1/4]

template<size_t SIZE = 64>
template<size_t M>
fl::StrN< SIZE >::StrN ( const StrN< M > & other)
inline

Definition at line 90 of file str.h.

◆ StrN() [2/4]

template<size_t SIZE = 64>
fl::StrN< SIZE >::StrN ( const char * str)
inline

Definition at line 91 of file str.h.

◆ StrN() [3/4]

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

Definition at line 101 of file str.h.

◆ StrN() [4/4]

template<size_t SIZE = 64>
template<int N>
fl::StrN< SIZE >::StrN ( const char(&) str[N])
inline

Definition at line 119 of file str.h.

◆ ~StrN()

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

Definition at line 242 of file str.h.

Member Function Documentation

◆ c_str()

template<size_t SIZE = 64>
const char * fl::StrN< SIZE >::c_str ( ) const
inline

Definition at line 247 of file str.h.

◆ c_str_mutable()

template<size_t SIZE = 64>
char * fl::StrN< SIZE >::c_str_mutable ( )
inline

Definition at line 251 of file str.h.

◆ capacity()

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

Definition at line 169 of file str.h.

◆ clear()

template<size_t SIZE = 64>
void fl::StrN< SIZE >::clear ( bool freeMemory = false)
inline

Definition at line 310 of file str.h.

◆ copy() [1/3]

template<size_t SIZE = 64>
void fl::StrN< SIZE >::copy ( const char * str)
inline

Definition at line 102 of file str.h.

◆ copy() [2/3]

template<size_t SIZE = 64>
void fl::StrN< SIZE >::copy ( const char * str,
size_t len )
inline

Definition at line 144 of file str.h.

◆ copy() [3/3]

template<size_t SIZE = 64>
template<size_t M>
void fl::StrN< SIZE >::copy ( const StrN< M > & other)
inline

Definition at line 154 of file str.h.

◆ empty()

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

Definition at line 271 of file str.h.

◆ find()

template<size_t SIZE = 64>
int16_t fl::StrN< SIZE >::find ( const char & value) const
inline

Definition at line 319 of file str.h.

◆ length()

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

Definition at line 246 of file str.h.

◆ operator!=()

template<size_t SIZE = 64>
bool fl::StrN< SIZE >::operator!= ( const StrN< SIZE > & other) const
inline

Definition at line 140 of file str.h.

◆ operator<() [1/2]

template<size_t SIZE = 64>
bool fl::StrN< SIZE >::operator< ( const StrN< SIZE > & other) const
inline

Definition at line 276 of file str.h.

◆ operator<() [2/2]

template<size_t SIZE = 64>
template<size_t M>
bool fl::StrN< SIZE >::operator< ( const StrN< M > & other) const
inline

Definition at line 280 of file str.h.

◆ operator=() [1/3]

template<size_t SIZE = 64>
template<int N>
StrN & fl::StrN< SIZE >::operator= ( const char(&) str[N])
inline

Definition at line 122 of file str.h.

◆ operator=() [2/3]

template<size_t SIZE = 64>
StrN & fl::StrN< SIZE >::operator= ( const StrN< SIZE > & other)
inline

Definition at line 126 of file str.h.

◆ operator=() [3/3]

template<size_t SIZE = 64>
template<size_t M>
StrN & fl::StrN< SIZE >::operator= ( const StrN< M > & other)
inline

Definition at line 130 of file str.h.

◆ operator==()

template<size_t SIZE = 64>
bool fl::StrN< SIZE >::operator== ( const StrN< SIZE > & other) const
inline

Definition at line 136 of file str.h.

◆ operator[]() [1/2]

template<size_t SIZE = 64>
char & fl::StrN< SIZE >::operator[] ( size_t index)
inline

Definition at line 255 of file str.h.

◆ operator[]() [2/2]

template<size_t SIZE = 64>
const char & fl::StrN< SIZE >::operator[] ( size_t index) const
inline

Definition at line 263 of file str.h.

◆ reserve()

template<size_t SIZE = 64>
void fl::StrN< SIZE >::reserve ( size_t newCapacity)
inline

Definition at line 284 of file str.h.

◆ size()

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

Definition at line 245 of file str.h.

◆ 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.

◆ toFloat()

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

Definition at line 358 of file str.h.

◆ trim()

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

Definition at line 345 of file str.h.

◆ write() [1/8]

template<size_t SIZE = 64>
size_t fl::StrN< SIZE >::write ( char c)
inline

Definition at line 210 of file str.h.

◆ write() [2/8]

template<size_t SIZE = 64>
size_t fl::StrN< SIZE >::write ( const char * str,
size_t n )
inline

Definition at line 179 of file str.h.

◆ write() [3/8]

template<size_t SIZE = 64>
size_t fl::StrN< SIZE >::write ( const int32_t & val)
inline

Definition at line 229 of file str.h.

◆ write() [4/8]

template<size_t SIZE = 64>
size_t fl::StrN< SIZE >::write ( const int8_t val)
inline

Definition at line 235 of file str.h.

◆ write() [5/8]

template<size_t SIZE = 64>
size_t fl::StrN< SIZE >::write ( const uint16_t & n)
inline

Definition at line 217 of file str.h.

◆ write() [6/8]

template<size_t SIZE = 64>
size_t fl::StrN< SIZE >::write ( const uint32_t & val)
inline

Definition at line 223 of file str.h.

◆ write() [7/8]

template<size_t SIZE = 64>
size_t fl::StrN< SIZE >::write ( const uint8_t * data,
size_t n )
inline

Definition at line 174 of file str.h.

◆ write() [8/8]

template<size_t SIZE = 64>
size_t fl::StrN< SIZE >::write ( uint8_t c)
inline

Definition at line 212 of file str.h.


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