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

Detailed Description

Definition at line 368 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)
 
bool operator> (const Str &other) const
 
bool operator>= (const Str &other) const
 
bool operator< (const Str &other) const
 
bool operator<= (const Str &other) const
 
bool operator== (const Str &other) const
 
bool operator!= (const Str &other) const
 
Strappend (const char *str)
 
Strappend (const char *str, size_t len)
 
Strappend (const int8_t &c)
 
Strappend (const uint8_t &c)
 
Strappend (const uint16_t &val)
 
Strappend (const int16_t &val)
 
Strappend (const uint32_t &val)
 
Strappend (const int32_t &c)
 
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)
 
 StrN (const char(&str)[N])
 
void copy (const char *str)
 
void copy (const char *str, size_t len)
 
void copy (const StrN< M > &other)
 
StrNoperator= (const char(&str)[N])
 
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 (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
 
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 370 of file str.h.

◆ Str() [2/4]

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

Definition at line 371 of file str.h.

◆ Str() [3/4]

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

Definition at line 372 of file str.h.

◆ Str() [4/4]

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

Definition at line 374 of file str.h.

Member Function Documentation

◆ append() [1/9]

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

Definition at line 404 of file str.h.

◆ append() [2/9]

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

Definition at line 405 of file str.h.

◆ append() [3/9]

Str & fl::Str::append ( const int16_t & val)
inline

Definition at line 413 of file str.h.

◆ append() [4/9]

Str & fl::Str::append ( const int32_t & c)
inline

Definition at line 415 of file str.h.

◆ append() [5/9]

Str & fl::Str::append ( const int8_t & c)
inline

Definition at line 407 of file str.h.

◆ append() [6/9]

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

Definition at line 417 of file str.h.

◆ append() [7/9]

Str & fl::Str::append ( const uint16_t & val)
inline

Definition at line 412 of file str.h.

◆ append() [8/9]

Str & fl::Str::append ( const uint32_t & val)
inline

Definition at line 414 of file str.h.

◆ append() [9/9]

Str & fl::Str::append ( const uint8_t & c)
inline

Definition at line 411 of file str.h.

◆ operator!=()

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

Definition at line 400 of file str.h.

◆ operator<()

bool fl::Str::operator< ( const Str & other) const
inline

Definition at line 388 of file str.h.

◆ operator<=()

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

Definition at line 392 of file str.h.

◆ operator=()

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

Definition at line 375 of file str.h.

◆ operator==()

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

Definition at line 396 of file str.h.

◆ operator>()

bool fl::Str::operator> ( const Str & other) const
inline

Definition at line 380 of file str.h.

◆ operator>=()

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

Definition at line 384 of file str.h.


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