FastLED 3.9.7
Loading...
Searching...
No Matches
fl::Str Class Reference

Detailed Description

Definition at line 336 of file str.h.

+ Inheritance diagram for fl::Str:

Public Member Functions

 Str (const char *str)
 
 Str (const Str &other)
 
template<size_t M>
 Str (const StrN< M > &other)
 
Stroperator= (const Str &other)
 
Strappend (const char *str)
 
Strappend (const char *str, size_t len)
 
Strappend (char c)
 
Strappend (int n)
 
Strappend (const StrN &str)
 
- Public Member Functions inherited from fl::StrN< FASTLED_STR_INLINED_SIZE >
 StrN (const StrN< M > &other)
 
 StrN (const char *str)
 
 StrN (const StrN &other)
 
void copy (const char *str)
 
void copy (const char *str, size_t len)
 
void copy (const StrN< M > &other)
 
StrNoperator= (const StrN &other)
 
StrNoperator= (const StrN< M > &other)
 
bool operator== (const StrN &other) const
 
bool operator!= (const StrN &other) const
 
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
 
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

◆ Str() [1/4]

fl::Str::Str ( )
inline

Definition at line 338 of file str.h.

◆ Str() [2/4]

fl::Str::Str ( const char * str)
inline

Definition at line 339 of file str.h.

◆ Str() [3/4]

fl::Str::Str ( const Str & other)
inline

Definition at line 340 of file str.h.

◆ Str() [4/4]

template<size_t M>
fl::Str::Str ( const StrN< M > & other)
inline

Definition at line 342 of file str.h.

Member Function Documentation

◆ append() [1/5]

Str & fl::Str::append ( char c)
inline

Definition at line 350 of file str.h.

◆ append() [2/5]

Str & fl::Str::append ( const char * str)
inline

Definition at line 348 of file str.h.

◆ append() [3/5]

Str & fl::Str::append ( const char * str,
size_t len )
inline

Definition at line 349 of file str.h.

◆ append() [4/5]

Str & fl::Str::append ( const StrN & str)
inline

Definition at line 352 of file str.h.

◆ append() [5/5]

Str & fl::Str::append ( int n)
inline

Definition at line 351 of file str.h.

◆ operator=()

Str & fl::Str::operator= ( const Str & other)
inline

Definition at line 343 of file str.h.


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