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) |
enum MB_CASE_LOWER |
Definition at line 12 of file mb-emulator.php.
enum MB_CASE_TITLE |
Definition at line 13 of file mb-emulator.php.
enum MB_CASE_UPPER |
Definition at line 11 of file mb-emulator.php.
_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 | ) |
_sub_strcut | ( | $ | arr, | |
$ | start, | |||
$ | length | |||
) |
_sub_strpos | ( | $ | ar_haystack, | |
$ | ar_needle, | |||
$ | offset | |||
) |
_sub_strrpos | ( | $ | ar_haystack, | |
$ | ar_needle | |||
) |
_sub_substr_count | ( | $ | ar_haystack, | |
$ | ar_needle | |||
) |
_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 | ) |
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 | ) |
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 = '' | |||
) |
Definition at line 150 of file mb-emulator.php.
References $mbemu_internals, _euctosjis(), _euctoutf8(), _jistosjis(), _sjistoeuc(), _sjistojis(), _sjistoutf8(), _utf16toutf8(), _utf8toeuc(), _utf8tosjis(), _utf8toutf16(), and mb_detect_encoding().
Referenced by ADMIN::action_regfile(), ITEM::createDraftFromRequest(), mb_convert_kana(), mb_send_mail(), mb_strcut(), mb_strimwidth(), mb_strlen(), mb_strpos(), mb_strrpos(), mb_strwidth(), mb_substr(), mb_substr_count(), selector(), and uniDecode().
mb_convert_kana | ( | $ | str, | |
$ | option = 'KV' , |
|||
$ | encoding = '' | |||
) |
Definition at line 692 of file mb-emulator.php.
References alpha_hanzen_EUC(), alpha_zenhan_EUC(), alphanum_hanzen_EUC(), alphanum_zenhan_EUC(), hiragana_hanzen1_EUC(), hiragana_hanzen2_EUC(), hiragana_katakana_EUC(), hiragana_zenhan_EUC(), katakana_hanzen1_EUC(), katakana_hanzen2_EUC(), katakana_hiragana_EUC(), katakana_zenhan_EUC(), mb_convert_encoding(), mb_internal_encoding(), num_hanzen_EUC(), num_zenhan_EUC(), space_hanzen_EUC(), and space_zenhan_EUC().
mb_detect_encoding | ( | $ | str, | |
$ | encoding_list = '' | |||
) |
Definition at line 780 of file mb-emulator.php.
References $encode, $mbemu_internals, _check_encoding(), and mb_detect_order().
Referenced by mb_convert_encoding(), mb_strcut(), mb_strimwidth(), mb_strlen(), mb_strpos(), mb_strrpos(), mb_strwidth(), mb_substr(), and mb_substr_count().
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' |
) |
mb_internal_encoding | ( | $ | encoding = '' |
) |
Definition at line 99 of file mb-emulator.php.
References $mbemu_internals.
Referenced by mb_convert_kana(), mb_get_info(), mb_send_mail(), NOTIFICATION::notify(), MEMBER::sendActivationLink(), and ACTION::sendMessage().
mb_language | ( | $ | language = '' |
) |
Definition at line 80 of file mb-emulator.php.
References $language, and $mbemu_internals.
Referenced by mb_send_mail(), NOTIFICATION::notify(), MEMBER::sendActivationLink(), and ACTION::sendMessage().
mb_send_mail | ( | $ | to, | |
$ | subject, | |||
$ | message, | |||
$ | additional_headers = '' , |
|||
$ | additional_parameter = '' | |||
) |
Definition at line 729 of file mb-emulator.php.
References _check_encoding(), mb_convert_encoding(), mb_internal_encoding(), and mb_language().
Referenced by NOTIFICATION::notify(), MEMBER::sendActivationLink(), and ACTION::sendMessage().
mb_strcut | ( | $ | str, | |
$ | start, | |||
$ | length = 0 , |
|||
$ | encoding = '' | |||
) |
Definition at line 991 of file mb-emulator.php.
References $mbemu_internals, _sub_strcut(), mb_convert_encoding(), and mb_detect_encoding().
mb_strimwidth | ( | $ | str, | |
$ | start, | |||
$ | width, | |||
$ | trimmarker, | |||
$ | encoding = '' | |||
) |
Definition at line 863 of file mb-emulator.php.
References $mbemu_internals, _utf8ucs2(), mb_convert_encoding(), mb_detect_encoding(), mb_strwidth(), and mb_substr().
Referenced by shorten().
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 = '' | |||
) |
Definition at line 1075 of file mb-emulator.php.
References $mbemu_internals, _sub_strpos(), mb_convert_encoding(), and mb_detect_encoding().
mb_strrpos | ( | $ | haystack, | |
$ | needle, | |||
$ | encoding = '' | |||
) |
Definition at line 1032 of file mb-emulator.php.
References $mbemu_internals, _sub_strrpos(), mb_convert_encoding(), and mb_detect_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 = '' |
) |
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 = '' | |||
) |
Definition at line 1119 of file mb-emulator.php.
References $mbemu_internals, _sub_substr_count(), mb_convert_encoding(), and mb_detect_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 | |||
) |
Definition at line 512 of file mb-emulator.php.
References $mbemu_internals.
Referenced by alpha_hanzen_EUC(), alphanum_hanzen_EUC(), num_hanzen_EUC(), and space_hanzen_EUC().
sub_zenhan_EUC | ( | &$ | str, | |
$ | match | |||
) |
Definition at line 497 of file mb-emulator.php.
References $mbemu_internals.
Referenced by alpha_zenhan_EUC(), alphanum_zenhan_EUC(), num_zenhan_EUC(), and space_zenhan_EUC().
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') |
Definition at line 20 of file mb-emulator.php.
Referenced by _check_encoding(), _euctosjis(), _euctoutf8(), _jistosjis(), _sjistoeuc(), _sjistojis(), _sjistoutf8(), _sub_jtosj(), _utf16toutf8(), _utf8toeuc(), _utf8tosjis(), _utf8toutf16(), hiragana_hanzen1_EUC(), hiragana_hanzen2_EUC(), hiragana_zenhan_EUC(), katakana_hanzen1_EUC(), katakana_hanzen2_EUC(), katakana_zenhan_EUC(), mb_convert_encoding(), mb_detect_encoding(), mb_detect_order(), mb_internal_encoding(), mb_language(), mb_strcut(), mb_strimwidth(), mb_strlen(), mb_strpos(), mb_strrpos(), mb_strwidth(), mb_substitute_character(), mb_substr(), mb_substr_count(), sub_hanzen_EUC(), sub_zenhan_EUC(), and ticketForPlugin().
$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 |
Definition at line 1163 of file mb-emulator.php.
Referenced by _euctoutf8(), _jistosjis(), _sjistoutf8(), _utf16toutf8(), _utf8toeuc(), _utf8tosjis(), _utf8toutf16(), and _utf8ucs2().