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

Detailed Description

Definition at line 45 of file str.h.

+ Inheritance diagram for fl::StringHolder:

Public Member Functions

 StringHolder (const char *str)
 
 StringHolder (size_t length)
 
 StringHolder (const char *str, size_t length)
 
bool isShared () const
 
void grow (size_t newLength)
 
bool hasCapacity (size_t newLength) const
 
const char * data () const
 
char * data ()
 
size_t length () const
 
size_t capacity () const
 
bool copy (const char *str, size_t len)
 
- Public Member Functions inherited from fl::Referent
virtual int ref_count () const
 

Additional Inherited Members

- Protected Member Functions inherited from fl::Referent
 Referent (const Referent &)
 
Referentoperator= (const Referent &)
 
 Referent (Referent &&)
 
Referentoperator= (Referent &&)
 
virtual void ref ()
 
virtual void unref ()
 
virtual void destroy ()
 

Constructor & Destructor Documentation

◆ StringHolder() [1/3]

fl::StringHolder::StringHolder ( const char * str)

Definition at line 105 of file str.cpp.

◆ StringHolder() [2/3]

fl::StringHolder::StringHolder ( size_t length)

Definition at line 116 of file str.cpp.

◆ StringHolder() [3/3]

fl::StringHolder::StringHolder ( const char * str,
size_t length )

Definition at line 128 of file str.cpp.

◆ ~StringHolder()

fl::StringHolder::~StringHolder ( )

Definition at line 140 of file str.cpp.

Member Function Documentation

◆ capacity()

size_t fl::StringHolder::capacity ( ) const
inline

Definition at line 57 of file str.h.

◆ copy()

bool fl::StringHolder::copy ( const char * str,
size_t len )
inline

Definition at line 58 of file str.h.

◆ data() [1/2]

char * fl::StringHolder::data ( )
inline

Definition at line 55 of file str.h.

◆ data() [2/2]

const char * fl::StringHolder::data ( ) const
inline

Definition at line 54 of file str.h.

◆ grow()

void fl::StringHolder::grow ( size_t newLength)

Definition at line 144 of file str.cpp.

◆ hasCapacity()

bool fl::StringHolder::hasCapacity ( size_t newLength) const
inline

Definition at line 53 of file str.h.

◆ isShared()

bool fl::StringHolder::isShared ( ) const
inline

Definition at line 51 of file str.h.

◆ length()

size_t fl::StringHolder::length ( ) const
inline

Definition at line 56 of file str.h.


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