eZPublish  4.7
eZCharsetInfo Class Reference

Allows for quering information about charsets. More...

Static Public Member Functions

static characterEncodingScheme ($charsetCode, $isRealCharset=false)
 
static realCharsetCode ($charsetCode)
 

Static Private Member Functions

static & aliasTable ()
 
static & encodingTable ()
 
static & reverseEncodingTable ()
 

Detailed Description

Allows for quering information about charsets.

A charset can be known by multiple names but the internationlization system only works with one name. To fetch the real internal name use the static realCharsetCode() function. Each charset also has a specific encoding scheme associated with it which can be fetched with characterEncodingScheme().

Member Function Documentation

static& eZCharsetInfo::aliasTable ( )
staticprivate
Returns
the hash table with aliases, creates if it doesn't already exist.

Referenced by realCharsetCode().

static eZCharsetInfo::characterEncodingScheme (   $charsetCode,
  $isRealCharset = false 
)
static

Tries to figure out the character encoding scheme for the given character set. It uses realCharsetCode() to get the correct internal charset so any charset can be given to this function. Either returns the found encoding scheme or 'singlebyte' if no scheme was found.

See Also
realCharsetCode

Referenced by eZCodePage\eZCodePage(), and eZTextCodec\instance().

static& eZCharsetInfo::encodingTable ( )
staticprivate
Returns
the character encoding hash table, creates it if it does not exist. The table will map from a character encoding scheme to an array of character sets.
See Also
reverseEncodingTable

Referenced by reverseEncodingTable().

static& eZCharsetInfo::reverseEncodingTable ( )
staticprivate
Returns
the reverse character encoding hash table, creates it if it does not exist. The table will map from a character set to a character encoding scheme.
See Also
encodingTable

Referenced by characterEncodingScheme().


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