Main Page | Modules | Class Hierarchy | Class List | Class Members

Micro XML UTF8
[Micro XML]


Detailed Description

Micro XML supports parsing of UTF8 encoded XML files.


Functions

int MXMLUtf8FromChar (int a_inChar, char *a_outBytes)
 Convert a UTF32 character (21 bits) to a UTF8 byte sequence.
int MXMLUtf8ToChar (const char *a_inBytes, int *a_outChar)
 Convert a UTF8 byte sequence to a UTF32 (21 bits) character.
size_t MXMLUtf8Size (const char *a_string)
 Get the byte size of a UTF8 byte sequence, excluding the null terminating character.
size_t MXMLUtf8Length (const char *a_string)
 Get the charcter length of a UTF8 byte sequence, excluding the null terminating character.


Function Documentation

int MXMLUtf8FromChar int  a_inChar,
char *  a_outBytes
 

Convert a UTF32 character (21 bits) to a UTF8 byte sequence.

Parameters:
a_inChar is a 21 bit character
a_outBytes must be at least 5 characters, and is filled with the resulting UTF8 sequence
Returns:
number of bytes written to a_outBytes

size_t MXMLUtf8Length const char *  a_string  ) 
 

Get the charcter length of a UTF8 byte sequence, excluding the null terminating character.

Parameters:
a_string is a UTF8 byte sequence
Returns:
number of characters excluding null terminating character

size_t MXMLUtf8Size const char *  a_string  ) 
 

Get the byte size of a UTF8 byte sequence, excluding the null terminating character.

Parameters:
a_string is a UTF8 byte sequence
Returns:
size in bytes of a_string excluding terminating char

int MXMLUtf8ToChar const char *  a_inBytes,
int *  a_outChar
 

Convert a UTF8 byte sequence to a UTF32 (21 bits) character.

Parameters:
a_inBytes is a UTF8 byte sequence
a_outChar is set to the UTF32 character
Returns:
number of bytes read from a_inBytes