FastLED 3.9.3
Loading...
Searching...
No Matches
StringHolder Class Reference

Detailed Description

Definition at line 41 of file str.h.

+ Inheritance diagram for StringHolder:

Public Member Functions

 StringHolder (const char *str)
 
 StringHolder (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 Referent
virtual int ref_count () const
 

Additional Inherited Members

- Protected Member Functions inherited from 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/2]

StringHolder::StringHolder ( const char * str)

Definition at line 54 of file str.cpp.

◆ StringHolder() [2/2]

StringHolder::StringHolder ( size_t length)

Definition at line 65 of file str.cpp.

◆ ~StringHolder()

StringHolder::~StringHolder ( )

Definition at line 76 of file str.cpp.

Member Function Documentation

◆ capacity()

size_t StringHolder::capacity ( ) const
inline

Definition at line 52 of file str.h.

◆ copy()

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

Definition at line 53 of file str.h.

◆ data() [1/2]

char * StringHolder::data ( )
inline

Definition at line 50 of file str.h.

◆ data() [2/2]

const char * StringHolder::data ( ) const
inline

Definition at line 49 of file str.h.

◆ grow()

void StringHolder::grow ( size_t newLength)

Definition at line 80 of file str.cpp.

◆ hasCapacity()

bool StringHolder::hasCapacity ( size_t newLength) const
inline

Definition at line 48 of file str.h.

◆ isShared()

bool StringHolder::isShared ( ) const
inline

Definition at line 46 of file str.h.

◆ length()

size_t StringHolder::length ( ) const
inline

Definition at line 51 of file str.h.


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