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

Detailed Description

template<fl::size SIZE = FASTLED_STR_INLINED_SIZE>
class fl::StrN< SIZE >

Definition at line 138 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<fl::size M>
 StrN (const StrN< M > &other)
 
 ~StrN ()
 
void assign (const char *str, fl::size len)
 
char * begin ()
 
const char * begin () const
 
const char * c_str () const
 
char * c_str_mutable ()
 
fl::size capacity () const
 
const char * cbegin () const
 
const char * cend () const
 
void clear (bool freeMemory=false)
 
bool contains (char c) const
 
bool contains (const char *substr) const
 
template<fl::size M>
bool contains (const StrN< M > &other) const
 
void copy (const char *str)
 
void copy (const char *str, fl::size len)
 
template<fl::size M>
void copy (const StrN< M > &other)
 
bool empty () const
 
char * end ()
 
const char * end () const
 
bool ends_with (char c) const
 
bool ends_with (const char *suffix) const
 
template<fl::size M>
bool ends_with (const StrN< M > &suffix) const
 
fl::size find (const char &value) const
 
fl::size find (const char &value, fl::size start_pos) const
 
fl::size find (const char *substr) const
 
fl::size find (const char *substr, fl::size start_pos) const
 
template<fl::size M>
fl::size find (const StrN< M > &other) const
 
template<fl::size M>
fl::size find (const StrN< M > &other, fl::size start_pos) const
 
fl::size length () const
 
bool operator!= (const StrN &other) const
 
bool operator< (const StrN &other) const
 
template<fl::size M>
bool operator< (const StrN< M > &other) const
 
template<int N>
StrNoperator= (const char(&str)[N])
 
StrNoperator= (const StrN &other)
 
template<fl::size M>
StrNoperator= (const StrN< M > &other)
 
bool operator== (const StrN &other) const
 
char & operator[] (fl::size index)
 
char operator[] (fl::size index) const
 
void pop_back ()
 
void push_ascii (char c)
 
void push_back (char c)
 
void reserve (fl::size newCapacity)
 
fl::size size () const
 
bool starts_with (char c) const
 
bool starts_with (const char *prefix) const
 
template<fl::size M>
bool starts_with (const StrN< M > &prefix) const
 
StrN substr (fl::size start) const
 
StrN substr (fl::size start, fl::size length) const
 
StrN substring (fl::size start, fl::size end) const
 
float toFloat () const
 
StrN trim () const
 
fl::size write (char c)
 
fl::size write (const char *str, fl::size n)
 
fl::size write (const i32 &val)
 
fl::size write (const i8 val)
 
fl::size write (const u16 &n)
 
fl::size write (const u32 &val)
 
fl::size write (const u8 *data, fl::size n)
 
fl::size write (const uint64_t &val)
 
fl::size write (u8 c)
 

Static Public Attributes

static constexpr fl::size npos = static_cast<fl::size>(-1)
 

Protected Attributes

StringHolderPtr mHeapData
 
char mInlineData [SIZE] = {0}
 
fl::size mLength = 0
 

Private Attributes

StringHolderPtr mData
 

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