eZPublish(LegacyStack)  5.1
eZMBStringMapper Class Reference

The class eZMBStringMapper does. More...

Public Member Functions

 convertString ($str)
 
 eZMBStringMapper ($input_charset_code, $output_charset_code)
 
 inputCharsetCode ()
 
 isCharsetSupported ($charset_code)
 
 outputCharsetCode ()
 
 requestedInputCharsetCode ()
 
 requestedOutputCharsetCode ()
 
 setSubstituteCharacter ($char)
 
 strlen ($str)
 
 strpos ($haystack, $needle, $offset=0)
 
 strrpos ($haystack, $needle)
 
 substituteCharacter ()
 
 substr ($str, $start, $length)
 

Static Public Member Functions

static & charsetList ()
 
static hasMBStringExtension ()
 
static instance ($input_charset_code, $output_charset_code)
 Returns a shared instance of the eZMBStringMapper pr the $input_charset_code and $output_charset_code params. More...
 

Detailed Description

The class eZMBStringMapper does.

The mbstring extension supports the following charset: UCS-4, UCS-4BE, UCS-4LE, UCS-2, UCS-2BE, UCS-2LE, UTF-32, UTF-32BE, UTF-32LE, UCS-2LE, UTF-16, UTF-16BE, UTF-16LE, UTF-8, UTF-7, ASCII, EUC-JP, SJIS, eucJP-win, SJIS-win, ISO-2022-JP, JIS, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-13, ISO-8859-14, ISO-8859-15, byte2be, byte2le, byte4be, byte4le, BASE64, 7bit, 8bit and UTF7-IMAP.

Member Function Documentation

static& eZMBStringMapper::charsetList ( )
static
Note
This function is duplicated in eZTextCodec::eZTextCodec(), remember to update both places.

Referenced by eZSetupMBStringExtension(), and isCharsetSupported().

eZMBStringMapper::convertString (   $str)
eZMBStringMapper::eZMBStringMapper (   $input_charset_code,
  $output_charset_code 
)

Constructor

Referenced by instance().

static eZMBStringMapper::hasMBStringExtension ( )
static
Returns
true if the mbstring can be used.
Note
The following function must be present for the function to return true. mb_convert_encoding mb_substitute_character mb_strcut mb_strlen mb_strpos mb_strrpos mb_strwidth mb_substr
This function is duplicated in eZTextCodec::eZTextCodec(), remember to update both places.

Referenced by eZMBStringMapper(), and eZSetupMBStringExtension().

eZMBStringMapper::inputCharsetCode ( )
static eZMBStringMapper::instance (   $input_charset_code,
  $output_charset_code 
)
static

Returns a shared instance of the eZMBStringMapper pr the $input_charset_code and $output_charset_code params.

Parameters
string$input_charset_code
string$output_charset_code
Returns
eZMBStringMapper
eZMBStringMapper::isCharsetSupported (   $charset_code)

Referenced by eZMBStringMapper().

eZMBStringMapper::outputCharsetCode ( )
eZMBStringMapper::requestedInputCharsetCode ( )
eZMBStringMapper::requestedOutputCharsetCode ( )
eZMBStringMapper::setSubstituteCharacter (   $char)
eZMBStringMapper::strlen (   $str)
eZMBStringMapper::strpos (   $haystack,
  $needle,
  $offset = 0 
)
eZMBStringMapper::strrpos (   $haystack,
  $needle 
)
eZMBStringMapper::substituteCharacter ( )
eZMBStringMapper::substr (   $str,
  $start,
  $length 
)

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