eZUTF8Codec Class Reference
[Internationalization]

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

List of all members.


Public Methods

 eZUTF8Codec ()
instance ()

Static Public Methods

toUTF8 ($char_code)
fromUtf8 ($multi_char,$offs,&$len)

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 ezutf8codec.php.


Constructor & Destructor Documentation

eZUTF8Codec::eZUTF8Codec  
 

Initializes utf8 codec.

Definition at line ezutf8codec.php.


Member Function Documentation

& 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 ezutf8codec.php.

& eZUTF8Codec::instance  
 

Returns:
a unique instance of the UTF8 codec.

Definition at line ezutf8codec.php.

Referenced by eZCodePage::load().

& eZUTF8Codec::toUTF8   char_code [static]
 

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

Definition at line ezutf8codec.php.


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

Exponential