ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Utf8 Class Reference

#include <Utf8.h>

Collaboration diagram for Utf8:

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. More...
 
static int getUnicodeValue (const char *bytes)
 Compute the code value of a Unicode character encoded in UTF8 format in the array of characters "bytes". More...
 
static string getUtf8String (int value)
 Convert a unicode character into its Utf8 representation. More...
 
static string getPrintableJavaUnicodeCharacter (int value)
 Convert the Unicode "value" into a printable Unicode character. More...
 
static string getPrintableJavaUnicodeString (const char *str)
 Construct a printable unicode string for Java from a given Utf8 string of characters. More...
 

Static Public Attributes

static BadUnicodeException bad_unicode_exception
 
static BadUtf8CodeException bad_utf8_code_exception
 

Static Private Member Functions

static int getUnicodeValue (const char *bytes, int size)
 Compute the code value of a Unicode character encoded in UTF8 format in the array bytes starting. More...
 

Detailed Description

Definition at line 12 of file Utf8.h.

Member Function Documentation

static int Utf8::getUnicodeValue ( const char *  bytes,
int  size 
)
staticprivate

Compute the code value of a Unicode character encoded in UTF8 format in the array bytes starting.

"size" indicates the number of ASCII characters that was required to represent the Unicode char in question.

static int Utf8::getCharSize ( int  val)
static

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

static int Utf8::getUnicodeValue ( const char *  bytes)
static

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

static string Utf8::getUtf8String ( int  value)
static

Convert a unicode character into its Utf8 representation.

static string Utf8::getPrintableJavaUnicodeCharacter ( int  value)
static

Convert the Unicode "value" into a printable Unicode character.

static string Utf8::getPrintableJavaUnicodeString ( const char *  str)
static

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

Member Data Documentation

BadUnicodeException Utf8::bad_unicode_exception
static

Definition at line 35 of file Utf8.h.

BadUtf8CodeException Utf8::bad_utf8_code_exception
static

Definition at line 49 of file Utf8.h.


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