eZ Publish  [trunk]
eZMBStringMapper Class Reference

The class eZMBStringMapper does. More...

List of all members.

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.

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.

Definition at line 24 of file ezmbstringmapper.php.


Member Function Documentation

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

Definition at line 54 of file ezmbstringmapper.php.

Referenced by eZSetupMBStringExtension(), and isCharsetSupported().

Definition at line 138 of file ezmbstringmapper.php.

eZMBStringMapper::eZMBStringMapper ( input_charset_code,
output_charset_code 
)

Constructor

Definition at line 29 of file ezmbstringmapper.php.

Referenced by instance().

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.

Definition at line 87 of file ezmbstringmapper.php.

Referenced by eZMBStringMapper(), and eZSetupMBStringExtension().

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

Definition at line 173 of file ezmbstringmapper.php.

Definition at line 119 of file ezmbstringmapper.php.

Referenced by eZMBStringMapper().

Definition at line 132 of file ezmbstringmapper.php.

Definition at line 145 of file ezmbstringmapper.php.

eZMBStringMapper::strpos ( haystack,
needle,
offset = 0 
)

Definition at line 150 of file ezmbstringmapper.php.

eZMBStringMapper::strrpos ( haystack,
needle 
)

Definition at line 155 of file ezmbstringmapper.php.

eZMBStringMapper::substr ( str,
start,
length 
)

Definition at line 160 of file ezmbstringmapper.php.


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