Lines Matching refs:EUC
2 Exhaustive test of EUC-JP-2004 encoding verification and conversion
15 $validChars = array(); /* EUC-JP-2004 string -> UTF-32BE */
16 $fromUnicode = array(); /* UTF-16BE -> EUC-JP-2004 */
17 $fp = fopen(__DIR__ . '/data/EUC-JP-2004.txt', 'r+');
58 testAllValidChars($validChars, 'EUC-JP-2004', 'UTF-32BE');
59 echo "EUC-JP-2004 verification and conversion works for all valid characters\n";
62 testAllInvalidChars($invalidChars, $validChars, 'EUC-JP-2004', 'UTF-32BE', "\x00\x00\x00%");
63 testTruncatedChars($truncated, 'EUC-JP-2004', 'UTF-32BE', "\x00\x00\x00%");
64 echo "EUC-JP-2004 verification and conversion rejects all invalid characters\n";
66 testAllValidChars($fromUnicode, 'UTF-16BE', 'EUC-JP-2004', false);
67 echo "Unicode -> EUC-JP-2004 conversion works on all valid characters\n";
70 convertAllInvalidChars($invalidChars, $fromUnicode, 'UTF-16BE', 'EUC-JP-2004', '%');
71 echo "Unicode -> EUC-JP-2004 conversion works on all invalid characters\n";
75 convertInvalidString("\x80", "%", "EUC-JP-2004", "UTF-8");
76 convertInvalidString("\xFE\xFF", "%", "EUC-JP-2004", "UTF-8");
81 EUC-JP-2004 verification and conversion works for all valid characters
82 EUC-JP-2004 verification and conversion rejects all invalid characters
83 Unicode -> EUC-JP-2004 conversion works on all valid characters
84 Unicode -> EUC-JP-2004 conversion works on all invalid characters