ROSE  0.11.145.0
Classes | Static Public Member Functions | Static Public Attributes | List of all members
Utf8 Class Reference

Description

Definition at line 13 of file Utf8.h.

Collaboration diagram for Utf8:
Collaboration graph
[legend]

Classes

class  BadUnicodeException
 Class thrown when a Unicode character is encountered. More...
 
class  BadUtf8CodeException
 Class thrown when a bad Utf8 sequence is encountered. More...
 

Static Public Member 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.
 

Static Public Attributes

static BadUnicodeException bad_unicode_exception
 
static BadUtf8CodeException bad_utf8_code_exception
 

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