eZ Publish  [4.2]
eZUTF8Codec Class Reference

Converter for utf8 and 32bit unicode. More...

List of all members.

Public Member Functions

 eZUTF8Codec ()

Static Public Member Functions

static characterByteLength ($str, $pos)
static convertStringToUnicode ($str)
static convertUnicodeToString ($unicodeValues)
static fromUtf8 ($multi_char, $offs, &$len)
static instance ()
 Returns a shared instance of the eZUTF8Codec class.
static strlen ($str)
static toUTF8 ($char_code)
static utf8LengthTable ()

Detailed Description

Converter for utf8 and 32bit unicode.

Allows for conversion from utf8 charactes and to 32bit unicode values, and vice versa.

Definition at line 39 of file ezutf8codec.php.


Member Function Documentation

static eZUTF8Codec::characterByteLength ( str,
pos 
) [static]

Definition at line 237 of file ezutf8codec.php.

static eZUTF8Codec::convertStringToUnicode ( str) [static]

Converts an UTF8 string into Unicode values and returns an array with the values.

Definition at line 51 of file ezutf8codec.php.

Referenced by eZTextCodec\convertUTF8ToUnicode().

static eZUTF8Codec::convertUnicodeToString ( unicodeValues) [static]

Converts an array with Unicode values into an UTF8 string and returns it.

Definition at line 69 of file ezutf8codec.php.

Referenced by eZTextCodec\convertUnicodeToUTF8().

eZUTF8Codec::eZUTF8Codec ( )

Initializes utf8 codec.

Definition at line 44 of file ezutf8codec.php.

Referenced by instance().

static eZUTF8Codec::fromUtf8 ( multi_char,
offs,
&$  len 
) [static]

Converts the first utf8 char in the string $multi_char to a 32 bit integer. $offs is the offset in the string. $len will contain the length of utf8 char in the string which can be used to find the next char.

Definition at line 134 of file ezutf8codec.php.

static eZUTF8Codec::instance ( ) [static]

Returns a shared instance of the eZUTF8Codec class.

Returns:
eZUTF8Codec

Definition at line 264 of file ezutf8codec.php.

Referenced by eZAlphabetOperator\fetchAlphabet().

static eZUTF8Codec::strlen ( str) [static]

Definition at line 244 of file ezutf8codec.php.

Referenced by convertStringToUnicode().

static eZUTF8Codec::toUTF8 ( char_code) [static]

Converts the 32 bit integer $char_code to a utf8 string representing the Unicode character.

Definition at line 86 of file ezutf8codec.php.

Referenced by convertUnicodeToString().

static eZUTF8Codec::utf8LengthTable ( ) [static]

Definition at line 225 of file ezutf8codec.php.

Referenced by characterByteLength(), and strlen().


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