Lines Matching refs:B

50 		/* ESC ( B at the beginning is redundant, since ASCII mode is the default */
51 if (substr($from, 0, 3) == "\x1B(B")
66 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'JIS');
68 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'ISO-2022-JP');
76 testInvalid("\x1B(B" . chr($i), "\x00%", 'JIS');
78 testInvalid("\x1B(B" . chr($i), "\x00%", 'ISO-2022-JP');
90 testValid("\x1B(I" . $kana . "\x1B(B", $utf16BE, 'JIS', false);
94 testValid("\x1B(J" . $jisx0201 . "\x1B(B", $utf16BE, 'JIS', $utf16BE > "\x00\x80");
101 testInvalid("\x1B(I" . chr($i) . "\x1B(B", "\x00%", 'JIS');
102 testInvalid("\x1B(J" . chr($i) . "\x1B(B", "\x00%", 'JIS');
109 testValid("\x1B\$B" . $jisx0208 . "\x1B(B", $utf16BE, 'JIS');
110 testValid("\x1B\$B" . $jisx0208 . "\x1B(B", $utf16BE, 'ISO-2022-JP');
118 testInvalid("\x1B\$B" . $testString . "\x1B(B", "\x00%", 'JIS');
119 testInvalid("\x1B\$B" . $testString . "\x1B(B", "\x00%", 'ISO-2022-JP');
126 testInvalid("\x1B\$B" . chr($i), "\x00%", 'JIS');
127 testInvalid("\x1B\$B" . chr($i), "\x00%", 'ISO-2022-JP');
131 testValidString("\x30\x00\x00A", "\x1B\$B\x21\x21\x1B(BA", "UTF-16BE", "JIS", false);
132 testValidString("\x30\x00\x00A", "\x1B\$B\x21\x21\x1B(BA", "UTF-16BE", "ISO-2022-JP", false);
140 testValid("\x1B\$(D" . $jisx0212 . "\x1B(B", $utf16BE, 'JIS', false);
148 testInvalid("\x1B\$(D" . $testString . "\x1B(B", "\x00%", 'JIS');
155 testInvalid("\x1B\$(D" . chr($i) . "\x1B(B", "\x00%\x00%", 'JIS');
158 testValidString("\x00\xA1", "\x1B\$(D\x22\x42\x1B(B", "UTF-16BE", "JIS", false);
165 …Escapes = ["\x1B\$@" => true, "\x1B\$B" => true, "\x1B\$(@" => true, "\x1B\$(B" => true, "\x1B\$(D…
166 $validIso2022jpEscapes = ["\x1B\$@" => true, "\x1B\$B" => true, "\x1B(B" => true, "\x1B(J" => true];
173 testValid($escapeSequence . "\x1B(B", "", 'JIS', false);
175 identifyInvalidString($escapeSequence . "\x1B(B", 'JIS');
178 testValid($escapeSequence . "\x1B(B", "", 'ISO-2022-JP', false);
180 identifyInvalidString($escapeSequence . "\x1B(B", 'ISO-2022-JP');
187 testValid($escapeSequence . "\x1B(B", "", 'JIS', false);
189 identifyInvalidString($escapeSequence . "\x1B(B", 'JIS');
192 testValid($escapeSequence . "\x1B(B", "", 'ISO-2022-JP', false);
194 identifyInvalidString($escapeSequence . "\x1B(B", 'ISO-2022-JP');
211 testValidString("\x22\x25", "\x1B\$B!B\x1B(B", 'UTF-16BE', $encoding, false);
212 testValidString("\xFF\x0D", "\x1B\$B!]\x1B(B", 'UTF-16BE', $encoding, false);
213 testValidString("\xFF\xE0", "\x1B\$B!q\x1B(B", 'UTF-16BE', $encoding, false);
214 testValidString("\xFF\xE1", "\x1B\$B!r\x1B(B", 'UTF-16BE', $encoding, false);
215 testValidString("\xFF\xE2", "\x1B\$B\"L\x1B(B", 'UTF-16BE', $encoding, false);
217 testValidString("\x00\xA5", "\x1B(J\x5C\x1B(B", 'UTF-16BE', $encoding, false);
219 testValidString("\x20\x3E", "\x1B\$B!1\x1B(B", 'UTF-16BE', 'ISO-2022-JP', false);
225 "\xA3" => "\x1B(I\x23\x1B(B",
226 "\xB1" => "\x1B(I\x31\x1B(B",
227 "\xC2" => "\x1B(I\x42\x1B(B",
228 "\xDF" => "\x1B(I\x5F\x1B(B"
249 convertInvalidString("\x1B\$B!", "%", "JIS", "UTF-8"); // Truncated character
250 convertInvalidString("\x1B\$B!", "%", "ISO-2022-JP", "UTF-8"); // Truncated character