Class Utf8#

Nested Relationships#

Nested Types#

Class Documentation#

class Utf8#

Public Static Functions

static int getCharSize(int val)#

Compute the number of bytes that was required to store a UTF8 character sequence that starts with the character c.

static int getUnicodeValue(const char *bytes)#

Compute the code value of a Unicode character encoded in UTF8 format in the array of characters “bytes”.

static string getUtf8String(int value)#

Convert a unicode character into its Utf8 representation.

static string getPrintableJavaUnicodeCharacter(int value)#

Convert the Unicode “value” into a printable Unicode character.

static string getPrintableJavaUnicodeString(const char *str)#

Construct a printable unicode string for Java from a given Utf8 string of characters.

Public Static Attributes

static BadUnicodeException bad_unicode_exception#
static BadUtf8CodeException bad_utf8_code_exception#
class BadUnicodeException : public exception#

Class thrown when a Unicode character is encountered.

class BadUtf8CodeException : public exception#

Class thrown when a bad Utf8 sequence is encountered.