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";
92 convertInvalidString("\x81", "%", "SJIS-mac", "UTF-8");
93 convertInvalidString("\x81\x20", "%", "SJIS-mac", "UTF-8");
94 convertInvalidString("\xED\x9F", "%", "SJIS-mac", "UTF-8");
101 Unicode -> SJIS-mac conversion works on all valid characters
102 Unicode -> SJIS-mac conversion works on all invalid characters