mb-emulator.php File Reference

Go to the source code of this file.

Enumerations

enum  MB_CASE_UPPER
enum  MB_CASE_LOWER
enum  MB_CASE_TITLE

Functions

 mb_detect_order ($encoding_list= '')
 mb_language ($language='')
 mb_internal_encoding ($encoding= '')
 mb_get_info ($type= 'all')
 mb_substitute_character ($subchar='')
 mb_convert_encoding ($str, $to_encoding, $from_encoding= '')
 _sjistoeuc (&$str)
 _euctosjis (&$str)
 _sjistojis (&$str)
 _sub_jtosj ($match)
 _jistosjis (&$str)
 _ucs2utf8 ($uni)
 _sjistoutf8 (&$str)
 _utf8ucs2 ($st)
 _utf8tosjis (&$str)
 _euctoutf8 (&$str)
 _utf8toeuc (&$str)
 _utf8toutf16 (&$str)
 _utf16toutf8 (&$str)
 sub_zenhan_EUC (&$str, $match)
 sub_hanzen_EUC (&$str, $match)
 alpha_zenhan_EUC (&$str)
 alpha_hanzen_EUC (&$str)
 num_zenhan_EUC (&$str)
 num_hanzen_EUC (&$str)
 alphanum_zenhan_EUC (&$str)
 alphanum_hanzen_EUC (&$str)
 space_zenhan_EUC (&$str)
 space_hanzen_EUC (&$str)
 katakana_zenhan_EUC (&$str)
 hiragana_zenhan_EUC (&$str)
 katakana_hanzen1_EUC (&$str)
 hiragana_hanzen1_EUC (&$str)
 katakana_hanzen2_EUC (&$str)
 hiragana_hanzen2_EUC (&$str)
 katakana_hiragana_EUC (&$str)
 hiragana_katakana_EUC (&$str)
 mb_convert_kana ($str, $option='KV', $encoding= '')
 mb_send_mail ($to, $subject, $message, $additional_headers='', $additional_parameter='')
 _check_encoding ($str, $encoding_number)
 mb_detect_encoding ($str, $encoding_list= '')
 mb_strlen ($str, $encoding='')
 mb_strwidth ($str, $encoding='')
 mb_strimwidth ($str, $start, $width, $trimmarker, $encoding= '')
 mb_substr ($str, $start, $length='notnumber', $encoding='')
 _sub_strcut ($arr, $start, $length)
 mb_strcut ($str, $start, $length=0, $encoding= '')
 _sub_strrpos ($ar_haystack, $ar_needle)
 mb_strrpos ($haystack, $needle, $encoding= '')
 _sub_strpos ($ar_haystack, $ar_needle, $offset)
 mb_strpos ($haystack, $needle, $offset=0, $encoding= '')
 _sub_substr_count ($ar_haystack, $ar_needle)
 mb_substr_count ($haystack, $needle, $encoding= '')

Variables

 $mbemu_internals ['ini_file'] = parse_ini_file(dirname(__FILE__).'/mb-emulator.ini')
 $mbemu_internals ['language'] = $mbemu_internals['ini_file']['language']
 $mbemu_internals ['internal_encoding'] = $mbemu_internals['ini_file']['internal_encoding']
 $mbemu_internals ['lang_array']
 $mbemu_internals ['encoding']
 $mbemu_internals ['substitute_character'] = $mbemu_internals['ini_file']['substitute_character']
 $mbemu_internals ['regex']
return $encode
 $st = $s1.$s2.$s3.$s4.$s5.$s6.$s7.$s8.$s9.$s10
 $s1 = mb_convert_encoding($s1, $to_encoding, $encode)
 $s2 = mb_convert_encoding($s2, $to_encoding, $encode)
 $s3 = mb_convert_encoding($s3, $to_encoding, $encode)
 $s4 = mb_convert_encoding($s4, $to_encoding, $encode)
 $s5 = mb_convert_encoding($s5, $to_encoding, $encode)
 $s6 = mb_convert_encoding($s6, $to_encoding, $encode)
 $s7 = mb_convert_encoding($s7, $to_encoding, $encode)
 $s8 = mb_convert_encoding($s8, $to_encoding, $encode)
 $s9 = mb_convert_encoding($s9, $to_encoding, $encode)
 $s10 = mb_convert_encoding($s10, $to_encoding, $encode)


Enumeration Type Documentation

Definition at line 12 of file mb-emulator.php.

Definition at line 13 of file mb-emulator.php.

Definition at line 11 of file mb-emulator.php.


Function Documentation

_check_encoding ( str,
encoding_number 
)

Definition at line 774 of file mb-emulator.php.

References $mbemu_internals.

Referenced by mb_detect_encoding(), and mb_send_mail().

_euctosjis ( &$  str  ) 

Definition at line 262 of file mb-emulator.php.

References $mbemu_internals.

Referenced by mb_convert_encoding().

_euctoutf8 ( &$  str  ) 

Definition at line 426 of file mb-emulator.php.

References $mbemu_internals, $st, and _ucs2utf8().

Referenced by mb_convert_encoding().

_jistosjis ( &$  str  ) 

Definition at line 335 of file mb-emulator.php.

References $mbemu_internals, and $st.

Referenced by mb_convert_encoding().

_sjistoeuc ( &$  str  ) 

Definition at line 240 of file mb-emulator.php.

References $mbemu_internals.

Referenced by mb_convert_encoding().

_sjistojis ( &$  str  ) 

Definition at line 284 of file mb-emulator.php.

References $mbemu_internals.

Referenced by mb_convert_encoding().

_sjistoutf8 ( &$  str  ) 

Definition at line 371 of file mb-emulator.php.

References $mbemu_internals, $st, and _ucs2utf8().

Referenced by mb_convert_encoding().

_sub_jtosj ( match  ) 

Definition at line 321 of file mb-emulator.php.

References $mbemu_internals, and $s.

_sub_strcut ( arr,
start,
length 
)

Definition at line 968 of file mb-emulator.php.

References $s.

Referenced by mb_strcut().

_sub_strpos ( ar_haystack,
ar_needle,
offset 
)

Definition at line 1058 of file mb-emulator.php.

Referenced by mb_strpos().

_sub_strrpos ( ar_haystack,
ar_needle 
)

Definition at line 1014 of file mb-emulator.php.

Referenced by mb_strrpos().

_sub_substr_count ( ar_haystack,
ar_needle 
)

Definition at line 1101 of file mb-emulator.php.

Referenced by mb_substr_count().

_ucs2utf8 ( uni  ) 

Definition at line 355 of file mb-emulator.php.

Referenced by _euctoutf8(), _sjistoutf8(), and _utf16toutf8().

_utf16toutf8 ( &$  str  ) 

Definition at line 485 of file mb-emulator.php.

References $mbemu_internals, $st, and _ucs2utf8().

Referenced by mb_convert_encoding().

_utf8toeuc ( &$  str  ) 

Definition at line 449 of file mb-emulator.php.

References $mbemu_internals, $st, and _utf8ucs2().

Referenced by mb_convert_encoding().

_utf8tosjis ( &$  str  ) 

Definition at line 406 of file mb-emulator.php.

References $mbemu_internals, $st, and _utf8ucs2().

Referenced by mb_convert_encoding().

_utf8toutf16 ( &$  str  ) 

Definition at line 473 of file mb-emulator.php.

References $mbemu_internals, $st, and _utf8ucs2().

Referenced by mb_convert_encoding().

_utf8ucs2 ( st  ) 

Definition at line 391 of file mb-emulator.php.

References $st.

Referenced by _utf8toeuc(), _utf8tosjis(), _utf8toutf16(), mb_strimwidth(), and mb_strwidth().

alpha_hanzen_EUC ( &$  str  ) 

Definition at line 530 of file mb-emulator.php.

References sub_hanzen_EUC().

Referenced by mb_convert_kana().

alpha_zenhan_EUC ( &$  str  ) 

Definition at line 526 of file mb-emulator.php.

References sub_zenhan_EUC().

Referenced by mb_convert_kana().

alphanum_hanzen_EUC ( &$  str  ) 

Definition at line 547 of file mb-emulator.php.

References sub_hanzen_EUC().

Referenced by mb_convert_kana().

alphanum_zenhan_EUC ( &$  str  ) 

Definition at line 543 of file mb-emulator.php.

References sub_zenhan_EUC().

Referenced by mb_convert_kana().

hiragana_hanzen1_EUC ( &$  str  ) 

Definition at line 612 of file mb-emulator.php.

References $mbemu_internals.

Referenced by mb_convert_kana().

hiragana_hanzen2_EUC ( &$  str  ) 

Definition at line 649 of file mb-emulator.php.

References $mbemu_internals.

Referenced by mb_convert_kana().

hiragana_katakana_EUC ( &$  str  ) 

Definition at line 679 of file mb-emulator.php.

Referenced by mb_convert_kana().

hiragana_zenhan_EUC ( &$  str  ) 

Definition at line 576 of file mb-emulator.php.

References $mbemu_internals.

Referenced by mb_convert_kana().

katakana_hanzen1_EUC ( &$  str  ) 

Definition at line 592 of file mb-emulator.php.

References $mbemu_internals.

Referenced by mb_convert_kana().

katakana_hanzen2_EUC ( &$  str  ) 

Definition at line 632 of file mb-emulator.php.

References $mbemu_internals.

Referenced by mb_convert_kana().

katakana_hiragana_EUC ( &$  str  ) 

Definition at line 666 of file mb-emulator.php.

Referenced by mb_convert_kana().

katakana_zenhan_EUC ( &$  str  ) 

Definition at line 560 of file mb-emulator.php.

References $mbemu_internals.

Referenced by mb_convert_kana().

mb_convert_encoding ( str,
to_encoding,
from_encoding = '' 
)

mb_convert_kana ( str,
option = 'KV',
encoding = '' 
)

mb_detect_encoding ( str,
encoding_list = '' 
)

mb_detect_order ( encoding_list = ''  ) 

Definition at line 46 of file mb-emulator.php.

References $encode, and $mbemu_internals.

Referenced by mb_detect_encoding().

mb_get_info ( type = 'all'  ) 

Definition at line 112 of file mb-emulator.php.

References $a, and mb_internal_encoding().

mb_internal_encoding ( encoding = ''  ) 

mb_language ( language = ''  ) 

mb_send_mail ( to,
subject,
message,
additional_headers = '',
additional_parameter = '' 
)

mb_strcut ( str,
start,
length = 0,
encoding = '' 
)

mb_strimwidth ( str,
start,
width,
trimmarker,
encoding = '' 
)

mb_strlen ( str,
encoding = '' 
)

Definition at line 801 of file mb-emulator.php.

References $mbemu_internals, mb_convert_encoding(), and mb_detect_encoding().

mb_strpos ( haystack,
needle,
offset = 0,
encoding = '' 
)

mb_strrpos ( haystack,
needle,
encoding = '' 
)

mb_strwidth ( str,
encoding = '' 
)

Definition at line 823 of file mb-emulator.php.

References $mbemu_internals, _utf8ucs2(), mb_convert_encoding(), and mb_detect_encoding().

Referenced by mb_strimwidth().

mb_substitute_character ( subchar = ''  ) 

Definition at line 132 of file mb-emulator.php.

References $mbemu_internals.

mb_substr ( str,
start,
length = 'notnumber',
encoding = '' 
)

Definition at line 939 of file mb-emulator.php.

References $mbemu_internals, mb_convert_encoding(), and mb_detect_encoding().

Referenced by mb_strimwidth().

mb_substr_count ( haystack,
needle,
encoding = '' 
)

num_hanzen_EUC ( &$  str  ) 

Definition at line 539 of file mb-emulator.php.

References sub_hanzen_EUC().

Referenced by mb_convert_kana().

num_zenhan_EUC ( &$  str  ) 

Definition at line 535 of file mb-emulator.php.

References sub_zenhan_EUC().

Referenced by mb_convert_kana().

space_hanzen_EUC ( &$  str  ) 

Definition at line 556 of file mb-emulator.php.

References sub_hanzen_EUC().

Referenced by mb_convert_kana().

space_zenhan_EUC ( &$  str  ) 

Definition at line 552 of file mb-emulator.php.

References sub_zenhan_EUC().

Referenced by mb_convert_kana().

sub_hanzen_EUC ( &$  str,
match 
)

sub_zenhan_EUC ( &$  str,
match 
)


Variable Documentation

return $encode

Definition at line 1161 of file mb-emulator.php.

Referenced by mb_detect_encoding(), and mb_detect_order().

$mbemu_internals['regex']

Initial value:

 array(
        0 => "[\x01-\x7F]", // for ASCII
        1 => "[\xA1-\xFE]([\xA1-\xFE])|[\x01-\x7F]|\x8E([\xA0-\xDF])", // for EUC-JP
        2 => "[\x81-\x9F\xE0-\xFC]([\x40-\xFC])|[\x01-\x7F]|[\xA0-\xDF]", // for Shift_JIS
        3 => "(?:^|\x1B\(\x42)([\x01-\x1A,\x1C-\x7F]*)|(?:\x1B\\$\x42([\x01-\x1A,\x1C-\x7F]*))|(?:\x1B\(I([\x01-\x1A,\x1C-\x7F]*))", // for JIS
        4 => "[\x01-\x7F]|[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF][\x80-\xBF]", // for UTF-8
        5 => "..", // for UTF-16
        6 => "." // for ISO-8859-1
        )

Definition at line 68 of file mb-emulator.php.

$mbemu_internals['substitute_character'] = $mbemu_internals['ini_file']['substitute_character']

Definition at line 66 of file mb-emulator.php.

$mbemu_internals['encoding']

Initial value:

 array (
        'AUTO' => 0xFF,
        'ASCII' => 0,
        'EUC-JP' => 1,
        'EUC' => 1,
        'SJIS' => 2,
        'SHIFT-JIS' => 2,
        'SHIFT_JIS' => 2,
        'SJIS-WIN' => 2,
        'JIS' => 3,
        'ISO-2022-JP' => 3,
        'UTF-8' => 4,
        'UTF8' => 4,
        'UTF-16'=>5,
        'ISO-8859-1' => 6
        )

Definition at line 28 of file mb-emulator.php.

$mbemu_internals['lang_array']

Initial value:

 array (
        'Japanese', 'ja','jp', 'English', 'en', 'uni'
        )

Definition at line 24 of file mb-emulator.php.

$mbemu_internals['internal_encoding'] = $mbemu_internals['ini_file']['internal_encoding']

Definition at line 23 of file mb-emulator.php.

$mbemu_internals['language'] = $mbemu_internals['ini_file']['language']

Definition at line 22 of file mb-emulator.php.

$mbemu_internals['ini_file'] = parse_ini_file(dirname(__FILE__).'/mb-emulator.ini')

$s1 = mb_convert_encoding($s1, $to_encoding, $encode)

Definition at line 1166 of file mb-emulator.php.

$s10 = mb_convert_encoding($s10, $to_encoding, $encode)

Definition at line 1175 of file mb-emulator.php.

$s2 = mb_convert_encoding($s2, $to_encoding, $encode)

Definition at line 1167 of file mb-emulator.php.

$s3 = mb_convert_encoding($s3, $to_encoding, $encode)

Definition at line 1168 of file mb-emulator.php.

$s4 = mb_convert_encoding($s4, $to_encoding, $encode)

Definition at line 1169 of file mb-emulator.php.

$s5 = mb_convert_encoding($s5, $to_encoding, $encode)

Definition at line 1170 of file mb-emulator.php.

$s6 = mb_convert_encoding($s6, $to_encoding, $encode)

Definition at line 1171 of file mb-emulator.php.

$s7 = mb_convert_encoding($s7, $to_encoding, $encode)

Definition at line 1172 of file mb-emulator.php.

$s8 = mb_convert_encoding($s8, $to_encoding, $encode)

Definition at line 1173 of file mb-emulator.php.

$s9 = mb_convert_encoding($s9, $to_encoding, $encode)

Definition at line 1174 of file mb-emulator.php.

$st = $s1.$s2.$s3.$s4.$s5.$s6.$s7.$s8.$s9.$s10



Generated on Wed Jun 25 17:26:01 2008 by  doxygen 1.5.5