CString Class Reference
Class to manage a NUL-terminated C-style string When storing persistent strings in RAM the regular String class can become inefficient, so using a regular char*
can be preferable. This class provides that with additional methods to simplify lifetime management and provide some interoperability with Wiring String objects.
More...
#include <CString.h>
Inheritance diagram for CString:
Collaboration diagram for CString:
Public Member Functions | |
CString ()=default | |
CString (const CString &src) | |
CString (const String &src) | |
CString (const char *src) | |
void | assign (const String &src) |
void | assign (const char *src) |
void | assign (const char *src, size_t len) |
CString & | operator= (const CString &src) |
CString & | operator= (const String &src) |
CString & | operator= (const char *src) |
char * | begin () |
const char * | c_str () const |
bool | equals (const CString &other) const |
bool | equals (const String &other) const |
bool | equals (const char *other) const |
bool | equalsIgnoreCase (const CString &other) const |
bool | equalsIgnoreCase (const String &other) const |
bool | equalsIgnoreCase (const char *other) const |
bool | operator== (const CString &other) const |
bool | operator== (const String &other) const |
bool | operator== (const char *other) const |
size_t | length () const |
operator String () const | |
Detailed Description
Class to manage a NUL-terminated C-style string When storing persistent strings in RAM the regular String class can become inefficient, so using a regular char*
can be preferable. This class provides that with additional methods to simplify lifetime management and provide some interoperability with Wiring String objects.
Constructor & Destructor Documentation
◆ CString() [1/4]
|
default |
◆ CString() [2/4]
|
inline |
◆ CString() [3/4]
|
inline |
◆ CString() [4/4]
|
inline |
Member Function Documentation
◆ assign() [1/3]
|
inline |
◆ assign() [2/3]
|
inline |
◆ assign() [3/3]
|
inline |
◆ begin()
|
inline |
◆ c_str()
|
inline |
◆ equals() [1/3]
|
inline |
◆ equals() [2/3]
◆ equals() [3/3]
◆ equalsIgnoreCase() [1/3]
|
inline |
◆ equalsIgnoreCase() [2/3]
◆ equalsIgnoreCase() [3/3]
◆ length()
|
inline |
◆ operator String()
|
inlineexplicit |
◆ operator=() [1/3]
|
inline |
◆ operator=() [2/3]
◆ operator=() [3/3]
◆ operator==() [1/3]
|
inline |
◆ operator==() [2/3]
◆ operator==() [3/3]
The documentation for this class was generated from the following file: