20 static int getUnicodeValue(
const char *bytes,
int size);
28 virtual const char* what()
const throw() {
29 return "Invalid Unicode character encountered";
42 virtual const char* what()
const throw() {
43 return "Invalid Utf8 sequence encountered";
Class thrown when a Unicode character is encountered.
Class thrown when a bad Utf8 sequence is encountered.
static string getPrintableJavaUnicodeString(const char *str)
Construct a printable unicode string for Java from a given Utf8 string of characters.
static int getUnicodeValue(const char *bytes)
Compute the code value of a Unicode character encoded in UTF8 format in the array of characters "byte...
static string getPrintableJavaUnicodeCharacter(int value)
Convert the Unicode "value" into a printable Unicode character.
static string getUtf8String(int value)
Convert a unicode character into its Utf8 representation.
static int getCharSize(int val)
Compute the number of bytes that was required to store a UTF8 character sequence that starts with the...