Lines Matching refs:mb_convert_kana
2 Testing mb_convert_kana() function
20 echo "'A': " . $zenKakuA . ' => ' . mb_convert_kana($zenKakuA, 'AK', 'utf-8') . "\n";
22 echo "'a': " . $zenKakuB . ' => ' . mb_convert_kana($zenKakuB, 'ak', 'utf-8') . "\n";
23 echo "'a': " . $zenKakuC . ' => ' . mb_convert_kana($zenKakuC, 'ak', 'utf-8') . "\n";
24 echo "'a': " . $zenKakuD . ' => ' . mb_convert_kana($zenKakuD, 'ak', 'utf-8') . "\n";
25 echo "'a': " . $zenKakuE . ' => ' . mb_convert_kana($zenKakuE, 'ak', 'utf-8') . "\n";
26 echo "'a': " . $zenKakuF . ' => ' . mb_convert_kana($zenKakuF, 'ak', 'utf-8') . "\n";
29 echo "'A': " . $hanKakuA . ' => ' . mb_convert_kana($hanKakuA, 'AK', 'utf-8') . "\n";
30 echo "'A': " . $hanKakuB . ' => ' . mb_convert_kana($hanKakuB, 'AK', 'utf-8') . "\n";
31 echo "'A': " . $hanKakuC . ' => ' . mb_convert_kana($hanKakuC, 'AK', 'utf-8') . "\n";
32 echo "'A': " . $hanKakuD . ' => ' . mb_convert_kana($hanKakuD, 'AK', 'utf-8') . "\n\n";
34 echo "Convert ASCII letter to full-width: A -> ", bin2hex(mb_convert_kana("\x00A", 'A', 'UTF-16BE')…
35 echo "Convert ASCII letter to full-width: A -> ", bin2hex(mb_convert_kana("\x00A", 'R', 'UTF-16BE')…
36 echo "Convert ASCII numeral to full-width: 1 -> ", bin2hex(mb_convert_kana("\x001", 'N', 'UTF-16BE'…
37 echo "Convert ASCII space to full-width: ", bin2hex(mb_convert_kana("\x00 ", 'S', 'UTF-16BE')), "\n…
41 echo bin2hex(mb_convert_kana("\xFF\x76\xFF\x9E", 'KV', 'UTF-16BE')), "\n";
42 echo bin2hex(mb_convert_kana("\xFF\x73\xFF\x9E", 'KV', 'UTF-16BE')), "\n";
43 echo bin2hex(mb_convert_kana("\xFF\x8A\xFF\x9F", 'KV', 'UTF-16BE')), "\n";
44 echo bin2hex(mb_convert_kana("\xFF\x8A\x00A", 'KV', 'UTF-16BE')), "\n";
45 echo bin2hex(mb_convert_kana("\xFF\x76\xFF\x9E", 'HV', 'UTF-16BE')), "\n";
46 echo bin2hex(mb_convert_kana("\xFF\x8A\xFF\x9F", 'HV', 'UTF-16BE')), "\n";
47 echo bin2hex(mb_convert_kana("\xFF\x8A\x00A", 'HV', 'UTF-16BE')), "\n";
49 echo bin2hex(mb_convert_kana("\xFF\x70", 'K', 'UTF-16BE')), "\n";
50 echo bin2hex(mb_convert_kana("\xFF\x70", 'H', 'UTF-16BE')), "\n\n";
53 echo bin2hex(mb_convert_kana("\x00\x5C\x00\xA5\x00\x7E\x20\x3E\x00\x27\x00\x22", 'M', 'UTF-16BE')),…
54 echo bin2hex(mb_convert_kana("\xFF\xE5\xFF\x3C\xFF\xE3\x20\x3E\x20\x18\x20\x19\x20\x1C\x20\x1D", 'm…
57 echo bin2hex(mb_convert_kana("\xFF\x01", 'a', 'UTF-16BE')), "\n";
58 echo bin2hex(mb_convert_kana("\xFF\x21", 'r', 'UTF-16BE')), "\n";
59 echo bin2hex(mb_convert_kana("\xFF\x10", 'n', 'UTF-16BE')), "\n";
60 echo bin2hex(mb_convert_kana("\x30\x00", 's', 'UTF-16BE')), "\n";
61 echo bin2hex(mb_convert_kana("\x22\x12", 'a', 'UTF-16BE')), "\n\n";
64 echo bin2hex(mb_convert_kana("\x30\x41", 'h', 'UTF-16BE')), "\n";
65 echo bin2hex(mb_convert_kana("\x30\x01", 'h', 'UTF-16BE')), "\n";
66 echo bin2hex(mb_convert_kana("\x30\x02", 'h', 'UTF-16BE')), "\n";
67 echo bin2hex(mb_convert_kana("\x30\x0C", 'h', 'UTF-16BE')), "\n";
68 echo bin2hex(mb_convert_kana("\x30\x0D", 'h', 'UTF-16BE')), "\n";
69 echo bin2hex(mb_convert_kana("\x30\x9B", 'h', 'UTF-16BE')), "\n";
70 echo bin2hex(mb_convert_kana("\x30\x9C", 'h', 'UTF-16BE')), "\n";
71 echo bin2hex(mb_convert_kana("\x30\xFC", 'h', 'UTF-16BE')), "\n";
72 echo bin2hex(mb_convert_kana("\x30\xFB", 'h', 'UTF-16BE')), "\n";
73 echo bin2hex(mb_convert_kana("\x30\x01", 'k', 'UTF-16BE')), "\n";
74 echo bin2hex(mb_convert_kana("\x30\x02", 'k', 'UTF-16BE')), "\n";
75 echo bin2hex(mb_convert_kana("\x30\x0C", 'k', 'UTF-16BE')), "\n";
76 echo bin2hex(mb_convert_kana("\x30\x0D", 'k', 'UTF-16BE')), "\n";
77 echo bin2hex(mb_convert_kana("\x30\x9B", 'k', 'UTF-16BE')), "\n";
78 echo bin2hex(mb_convert_kana("\x30\x9C", 'k', 'UTF-16BE')), "\n";
79 echo bin2hex(mb_convert_kana("\x30\xFC", 'k', 'UTF-16BE')), "\n";
80 echo bin2hex(mb_convert_kana("\x30\xFB", 'k', 'UTF-16BE')), "\n";
81 echo bin2hex(mb_convert_kana("fooあいうエオ", "rnaskh", "UTF-8")), "\n";
83 echo bin2hex(mb_convert_kana("\x30\x52", 'h', 'UTF-16BE')), "\n\n";
86 echo bin2hex(mb_convert_kana("\x30\x41", 'C', 'UTF-16BE')), "\n";
87 echo bin2hex(mb_convert_kana("\x30\x9D", 'C', 'UTF-16BE')), "\n";
88 echo bin2hex(mb_convert_kana("\x30\x9E", 'C', 'UTF-16BE')), "\n\n";
91 echo bin2hex(mb_convert_kana("\x30\xA1", 'c', 'UTF-16BE')), "\n";
92 echo bin2hex(mb_convert_kana("\x30\xFD", 'c', 'UTF-16BE')), "\n";
93 echo bin2hex(mb_convert_kana("\x30\xFE", 'c', 'UTF-16BE')), "\n\n";
95 echo bin2hex(mb_convert_kana("\x00\x00", 'A', 'UTF-16BE')), "\n";
101 mb_convert_kana('abc', $flags, 'UTF-8');
102 echo "BAD! mb_convert_kana should have thrown an exception for flags: $flags\n";
130 mb_convert_kana($zenKakuA, 'Z', 'UTF-8');
137 $converted = mb_convert_kana("\xb9\xde\xde", 'HV', 'JIS');
141 // Regression test: the old implementation of mb_convert_kana would swallow
143 if (mb_convert_kana("abc\x00abc", 'c', 'ASCII') !== "abc\x00abc")
144 echo "mb_convert_kana is swallowing zero bytes!\n";
223 mb_convert_kana(): Argument #2 ($mode) must not combine 'A' and 'a' flags
224 mb_convert_kana(): Argument #2 ($mode) must not combine 'A' and 'a' flags
225 mb_convert_kana(): Argument #2 ($mode) must not combine 'A' and 'r' flags
226 mb_convert_kana(): Argument #2 ($mode) must not combine 'A' and 'r' flags
227 mb_convert_kana(): Argument #2 ($mode) must not combine 'A' and 'n' flags
228 mb_convert_kana(): Argument #2 ($mode) must not combine 'A' and 'n' flags
229 mb_convert_kana(): Argument #2 ($mode) must not combine 'R' and 'a' flags
230 mb_convert_kana(): Argument #2 ($mode) must not combine 'R' and 'a' flags
231 mb_convert_kana(): Argument #2 ($mode) must not combine 'N' and 'a' flags
232 mb_convert_kana(): Argument #2 ($mode) must not combine 'N' and 'a' flags
233 mb_convert_kana(): Argument #2 ($mode) must not combine 'R' and 'r' flags
234 mb_convert_kana(): Argument #2 ($mode) must not combine 'R' and 'r' flags
235 mb_convert_kana(): Argument #2 ($mode) must not combine 'N' and 'n' flags
236 mb_convert_kana(): Argument #2 ($mode) must not combine 'N' and 'n' flags
237 mb_convert_kana(): Argument #2 ($mode) must not combine 'S' and 's' flags
238 mb_convert_kana(): Argument #2 ($mode) must not combine 'S' and 's' flags
239 mb_convert_kana(): Argument #2 ($mode) must not combine 'H' and 'K' flags
240 mb_convert_kana(): Argument #2 ($mode) must not combine 'H' and 'K' flags
241 mb_convert_kana(): Argument #2 ($mode) must not combine 'C' and 'c' flags
242 mb_convert_kana(): Argument #2 ($mode) must not combine 'C' and 'c' flags
243 mb_convert_kana(): Argument #2 ($mode) must not combine 'M' and 'm' flags
244 mb_convert_kana(): Argument #2 ($mode) must not combine 'M' and 'm' flags
245 mb_convert_kana(): Argument #2 ($mode) must not combine 'h' and 'C' flags
246 mb_convert_kana(): Argument #2 ($mode) must not combine 'h' and 'C' flags
247 mb_convert_kana(): Argument #2 ($mode) must not combine 'h' and 'c' flags
248 mb_convert_kana(): Argument #2 ($mode) must not combine 'h' and 'c' flags
249 mb_convert_kana(): Argument #2 ($mode) must not combine 'k' and 'C' flags
250 mb_convert_kana(): Argument #2 ($mode) must not combine 'k' and 'C' flags
251 mb_convert_kana(): Argument #2 ($mode) must not combine 'k' and 'c' flags
252 mb_convert_kana(): Argument #2 ($mode) must not combine 'k' and 'c' flags
253 mb_convert_kana(): Argument #2 ($mode) contains invalid flag: 'Z'