Ceetron Result Calculator Framework
Public Member Functions | Static Public Member Functions | List of all members
CRCString Class Reference

A simple class for handling strings. More...

Public Member Functions

 CRCString ()
 Constructor.
 
 CRCString (const CRCString &other)
 Copy constructor.
 
 ~CRCString ()
 Destructor.
 
CRCStringoperator= (const CRCString &rhs)
 Assignment operator.
 
bool operator== (const CRCString &rhs) const
 Equality operator.
 
bool operator!= (const CRCString &rhs) const
 Inequality operator.
 
bool operator< (const CRCString &rhs) const
 Check if this string is less than the passed string.
 
const crc_char_t * utf8 () const
 Returns a const ptr to the UTF-8 formatted string.
 
crc_size_t byteCount () const
 Returns the number of bytes (length) of the string.
 

Static Public Member Functions

static CRCString fromUtf8 (const crc_char_t *utf8Ptr)
 Returns a string created from an UTF-8 array.
 
static CRCString fromChar (const crc_char_t *charPtr)
 Returns a string created from an ASCII (char) string. More...
 

Detailed Description

A simple class for handling strings.

CRC 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

CRCString CRCString::fromChar ( const crc_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: