eZCharsetInfo Class Reference
[Internationalization]

Allows for quering information about charsets. More...

List of all members.


Public Methods

 realCharsetCode ($charsetCode)
 characterEncodingScheme ($charsetCode)

Static Private Methods

aliasTable ()
encodingTable ()
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().

Definition at line ezcharsetinfo.php.


Member Function Documentation

& eZCharsetInfo::aliasTable   [static, private]
 

Returns:
the hash table with aliases, creates if it doesn't already exist.

Definition at line ezcharsetinfo.php.

References aliasTable().

Referenced by realCharsetCode().

eZCharsetInfo::characterEncodingScheme   charsetCode
 

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

Definition at line ezcharsetinfo.php.

References reverseEncodingTable().

Referenced by eZCodePage::eZCodePage().

& eZCharsetInfo::encodingTable   [static, private]
 

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

Definition at line ezcharsetinfo.php.

References encodingTable().

Referenced by reverseEncodingTable().

eZCharsetInfo::realCharsetCode   charsetCode
 

Tries to find an alias for the charset code and returns it. If no alias code could be find the original charset code is returned.

Note:
The resulting charset code will be an all lowercase letters.

Definition at line ezcharsetinfo.php.

References aliasTable().

Referenced by eZTextCodec::internalCharset().

& eZCharsetInfo::reverseEncodingTable   [static, private]
 

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

Definition at line ezcharsetinfo.php.

References reverseEncodingTable().

Referenced by reverseEncodingTable().


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

Exponential