CDPString
Functions
CDPString |
|
CDPString |
|
~CDPString |
|
CDPString & | operator= |
const cdp_char_t * | utf8 |
cdp_size_t | byteCount |
CDPString | fromUtf8 |
CDPString | fromChar |
const CDPString & | emptyString |
Detailed Description
-
class
CDPString
A simple class for handling strings.
CDP uses UTF-8 based strings. This class stores strings in UTF-8 format, and provides creation from ASCII char and UTF-8 strings.
Public Functions
-
inline
CDPString
() Constructor.
-
inline
~CDPString
() Destructor.
-
inline const cdp_char_t *
utf8
() const Returns a const ptr to the UTF-8 formatted string.
-
inline cdp_size_t
byteCount
() const Returns the number of bytes (length) of the string.
Public Static Functions
-
static inline CDPString
fromUtf8
(const cdp_char_t *utf8Ptr) Returns a string created from a UTF-8 array.
-
static inline CDPString
fromChar
(const cdp_char_t *charPtr) Returns a string created from a ASCII (char) string.
Any ASCII value above 127 will be encoded to UTF-8
-
inline