Lines Matching refs:EUC
2 Exhaustive test of EUC-JP encoding verification and conversion
15 /* Read in the table of all characters in EUC-JP */
16 readConversionTable(__DIR__ . '/data/EUC-JP.txt', $validChars, $fromUnicode, true);
21 /* Kuten code 0x2140 (EUC-JP 0xA1C0) is a backslash; this can be mapped to
41 /* Unicode 0x007E (tilde) can be represented in two different ways in EUC-JP
42 * When converting Unicode to EUC-JP, use the simpler representation */
52 /* In the JIS X 0212 character set, kuten code 0x2237 (EUC-JP 0x8FA2B7)
58 testAllValidChars($validChars, 'EUC-JP', 'UTF-32BE');
61 testAllInvalidChars($invalidChars, $validChars, 'EUC-JP', 'UTF-32BE', "\x00\x00\x00%");
62 testTruncatedChars($truncated, 'EUC-JP', 'UTF-32BE', "\x00\x00\x00%");
65 testValidString("\x8F\xA2\xB7", "\x00\x00\x00~", 'EUC-JP', 'UTF-32BE', false);
68 testAllValidChars($fromUnicode, 'UTF-32BE', 'EUC-JP', false);
69 echo "Unicode -> EUC-JP conversion works on all valid characters\n";
77 convertAllInvalidChars($invalidChars, $fromUnicode, 'UTF-32BE', 'EUC-JP', '%');
78 echo "Unicode -> EUC-JP conversion works on all invalid characters\n";
82 convertInvalidString("\x80", "%", "EUC-JP", "UTF-8");
83 convertInvalidString("\xFE\xFF", "%", "EUC-JP", "UTF-8");
91 Unicode -> EUC-JP conversion works on all valid characters
92 Unicode -> EUC-JP conversion works on all invalid characters