eZPublishCommunityProject  2013.4
eZ\Publish\Core\Persistence\Legacy\Content\Search\Utf8Converter Class Reference

Class for converting UTF-8 characters to their decimal code points and vice versa. More...

Static Public Member Functions

static toUnicodeCodepoint ($char)
 Convert a single UTF-8 character into its decimal code point. More...
 
static toUTF8Character ($charCode)
 Convert character code to UTF-8 character. More...
 

Detailed Description

Class for converting UTF-8 characters to their decimal code points and vice versa.

The code originates from the eZUTF8Codec class available in lib/ezi18n/classes/ezutf8codec.php

Member Function Documentation

static eZ\Publish\Core\Persistence\Legacy\Content\Search\Utf8Converter::toUnicodeCodepoint (   $char)
static

Convert a single UTF-8 character into its decimal code point.

Parameters
string$char
Returns
int
static eZ\Publish\Core\Persistence\Legacy\Content\Search\Utf8Converter::toUTF8Character (   $charCode)
static

Convert character code to UTF-8 character.

Parameters
int$charCode
Returns
string

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