Ceetron Data Provider Framework
Public Member Functions | Static Public Member Functions | List of all members
CDPString Class Reference

Public Member Functions

 CDPString ()
 Constructor.
 
 CDPString (const CDPString &other)
 Copy constructor.
 
 ~CDPString ()
 Destructor.
 
CDPStringoperator= (const CDPString &rhs)
 Assignment operator.
 
const cdp_char_t * utf8 () const
 Returns a const ptr to the UTF-8 formatted string.
 
cdp_size_t byteCount () const
 Returns the number of bytes (length) of the string.
 

Static Public Member Functions

static CDPString fromUtf8 (const cdp_char_t *utf8Ptr)
 Returns a string created from an UTF-8 array.
 
static CDPString fromChar (const cdp_char_t *charPtr)
 
static const CDPStringemptyString ()
 Blank string.
 

Detailed Description

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.

Member Function Documentation

CDPString CDPString::fromChar ( const cdp_char_t *  charPtr)
inlinestatic

Returns a string created from an ASCII (char) string

Any ASCII value above 127 will be encoded to UTF-8


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