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

Detailed Description

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

Definition at line 75 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)
 
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 (int n)
 
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 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/3]

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

Definition at line 86 of file str.h.

◆ StrN() [2/3]

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

Definition at line 87 of file str.h.

◆ StrN() [3/3]

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

Definition at line 97 of file str.h.

◆ ~StrN()

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

Definition at line 210 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 215 of file str.h.

◆ c_str_mutable()

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

Definition at line 219 of file str.h.

◆ capacity()

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

Definition at line 157 of file str.h.

◆ clear()

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

Definition at line 278 of file str.h.

◆ copy() [1/3]

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

Definition at line 98 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 132 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 142 of file str.h.

◆ empty()

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

Definition at line 239 of file str.h.

◆ find()

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

Definition at line 287 of file str.h.

◆ length()

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

Definition at line 214 of file str.h.

◆ operator!=()

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

Definition at line 128 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 244 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 248 of file str.h.

◆ operator=() [1/2]

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

Definition at line 114 of file str.h.

◆ operator=() [2/2]

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

Definition at line 118 of file str.h.

◆ operator==()

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

Definition at line 124 of file str.h.

◆ operator[]() [1/2]

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

Definition at line 223 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 231 of file str.h.

◆ reserve()

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

Definition at line 252 of file str.h.

◆ size()

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

Definition at line 213 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 296 of file str.h.

◆ toFloat()

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

Definition at line 326 of file str.h.

◆ trim()

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

Definition at line 313 of file str.h.

◆ write() [1/5]

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

Definition at line 202 of file str.h.

◆ write() [2/5]

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

Definition at line 172 of file str.h.

◆ write() [3/5]

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

Definition at line 167 of file str.h.

◆ write() [4/5]

template<size_t SIZE = 64>
size_t fl::StrN< SIZE >::write ( int n)
inline

Definition at line 161 of file str.h.

◆ write() [5/5]

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

Definition at line 204 of file str.h.


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