eZPublish(LegacyStack)  5.1
eZTextCodec Class Reference

Handles conversion from one charset to another. More...

+ Inheritance diagram for eZTextCodec:

Public Member Functions

 conversionRequired ()
 convertCodepage ($str)
 convertCodepageMapper ($str)
 convertCodepageRev ($str)
 convertCodepageToUnicode ($str)
 convertMBString ($str)
 convertNone ($str)
 convertNoneToUnicode ($str)
 convertString ($str)
 convertUnicodeToCodepage ($unicodeValues)
 convertUnicodeToUTF8 ($unicodeValues)
 convertUTF8ToUnicode ($str)
 eZTextCodec ($inputCharsetCode, $outputCharsetCode, $realInputCharsetCode, $realOutputCharsetCode, $inputEncoding, $outputEncoding)
 initializeCodepageMapper ()
 initializeConversionFunction ($encodingConvertInitMap, $encodingConvertInitFunction)
 initializeInputCodepage ()
 initializeOutputCodepage ()
 inputCharsetCode ()
 outputCharsetCode ()
 requestedInputCharsetCode ()
 requestedOutputCharsetCode ()
 setUseMBString ($use)
 strlen ($str)
 strlenCodepage ($str)
 strlenCodepageMapper ($str)
 strlenCodepageRev ($str)
 strlenMBString ($str)
 strlenNone ($str)
 strlenUnicode ($unicodeValues)
 strlenUTF8 ($str)
 useMBString ()

Static Public Member Functions

static httpCharset ()
static instance ($inputCharsetCode, $outputCharsetCode=false, $alwaysReturn=true)
 Returns a shared instance of the eZTextCodec pr the $inputCharsetCode and $outputCharsetCode params. More...
static internalCharset ()
static updateSettings ($settings)

Detailed Description

Handles conversion from one charset to another.

Supports utf8 encoding/decoding

Member Function Documentation

eZTextCodec::conversionRequired ( )


true if a conversion is required, if false there's no need to call the textcodec functions.
eZTextCodec::convertCodepage (   $str)
eZTextCodec::convertCodepageMapper (   $str)
eZTextCodec::convertCodepageRev (   $str)
eZTextCodec::convertCodepageToUnicode (   $str)
eZTextCodec::convertMBString (   $str)
eZTextCodec::convertNone (   $str)
eZTextCodec::convertNoneToUnicode (   $str)
an empty array since no conversion is possible.
eZTextCodec::convertString (   $str)
eZTextCodec::convertUnicodeToCodepage (   $unicodeValues)
eZTextCodec::convertUnicodeToUTF8 (   $unicodeValues)
eZTextCodec::convertUTF8ToUnicode (   $str)
eZTextCodec::eZTextCodec (   $inputCharsetCode,
static eZTextCodec::httpCharset ( )
a charset value which can be used in HTTP headers.
Will return the internalCharset() if not http charset is set.

Referenced by ezpKernelWeb\requestInit().

eZTextCodec::initializeCodepageMapper ( )
eZTextCodec::initializeConversionFunction (   $encodingConvertInitMap,

Referenced by eZTextCodec().

eZTextCodec::initializeInputCodepage ( )
eZTextCodec::initializeOutputCodepage ( )
eZTextCodec::inputCharsetCode ( )
static eZTextCodec::instance (   $inputCharsetCode,
  $outputCharsetCode = false,
  $alwaysReturn = true 
eZTextCodec::outputCharsetCode ( )
eZTextCodec::requestedInputCharsetCode ( )
eZTextCodec::requestedOutputCharsetCode ( )
eZTextCodec::setUseMBString (   $use)
eZTextCodec::strlen (   $str)
eZTextCodec::strlenCodepage (   $str)
eZTextCodec::strlenCodepageMapper (   $str)
eZTextCodec::strlenCodepageRev (   $str)
eZTextCodec::strlenMBString (   $str)
eZTextCodec::strlenNone (   $str)
eZTextCodec::strlenUnicode (   $unicodeValues)
eZTextCodec::strlenUTF8 (   $str)
static eZTextCodec::updateSettings (   $settings)

Initializes the eZTextCodec settings to the ones in the array $settings.

See Also
internalCharset, httpCharset.

Referenced by ezpKernelWeb\__construct(), eZUpdateTextCodecSettings(), and eZScript\updateTextCodecSettings().

eZTextCodec::useMBString ( )

Referenced by eZTextCodec().

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