Lines Matching refs:SJIS
18 $fp = fopen(__DIR__ . '/data/MacJapanese-SJIS.txt', 'r+');
74 testAllValidChars($validChars, 'SJIS-mac', 'UTF-32BE');
79 testAllInvalidChars($invalidChars, $validChars, 'SJIS-mac', 'UTF-32BE', "\x00\x00\x00%");
80 testTruncatedChars($truncated, 'SJIS-mac', 'UTF-32BE', "\x00\x00\x00%");
83 testAllValidChars($fromUnicode, 'UTF-16BE', 'SJIS-mac', false);
84 echo "Unicode -> SJIS-mac conversion works on all valid characters\n";
87 convertAllInvalidChars($invalidChars, $fromUnicode, 'UTF-16BE', 'SJIS-mac', '%');
88 echo "Unicode -> SJIS-mac conversion works on all invalid characters\n";
91 convertValidString("\x20\x26\x6B\xAA", "\x81\x63\x9F\x6F", "UTF-16BE", "SJIS-mac");
95 convertInvalidString("\x20\x10\xF8\x7A", "\x81\x5D%", "UTF-16BE", "SJIS-mac");
96 convertInvalidString("\x20\x10\x20\xDD", "\x81\x5D%", "UTF-16BE", "SJIS-mac");
97 convertInvalidString("\x20\x10\xF8\x7F", "\x81\x5D%", "UTF-16BE", "SJIS-mac");
98 convertInvalidString("\x21\xE6\xF8\x7E", "\x86\xD0%", "UTF-16BE", "SJIS-mac");
100 convertInvalidString("\xF8\x60\x00\x30\x12\x34", "%%%", "UTF-16BE", "SJIS-mac");
101 convertInvalidString("\xF8\x61\x00\x46\x00\x41\x12\x34", "%%%%", "UTF-16BE", "SJIS-mac");
102 convertInvalidString("\xF8\x62\x00\x58\x00\x49\x00\x49\x12\x34", "%%%%%", "UTF-16BE", "SJIS-mac");
106 convertInvalidString("\x81", "%", "SJIS-mac", "UTF-8");
107 convertInvalidString("\x81\x20", "%", "SJIS-mac", "UTF-8");
108 convertInvalidString("\xED\x9F", "%", "SJIS-mac", "UTF-8");
115 Unicode -> SJIS-mac conversion works on all valid characters
116 Unicode -> SJIS-mac conversion works on all invalid characters