Lines Matching refs:ASCII
17 testValidString(chr($i), chr($i), 'ASCII', 'HZ');
19 echo "Tested ASCII -> HZ\n";
23 testValidString(chr($i), chr($i), 'HZ', 'ASCII');
25 echo "Tested HZ -> ASCII\n";
28 testInvalidString(chr($i), '%', 'HZ', 'ASCII');
30 echo "Tested non-ASCII bytes in ASCII mode\n";
32 testValidString('~~', '~', 'HZ', 'ASCII');
33 testValidString("~\n", '', 'HZ', 'ASCII', false);
34 testValidString('~{~}', '', 'HZ', 'ASCII', false);
35 testValidString("~{~\n~}", '', 'HZ', 'ASCII', false);
40 // Try invalid ~ escapes both in ASCII and GB modes
42 testInvalidString("~" . chr($i), '%', 'HZ', 'ASCII');
44 testInvalidString("~{~" . chr($i) . "~}", '%', 'HZ', 'ASCII');
100 // Although they do not appear in the Unicode -> GB2312 map, ASCII characters *are*
130 Tested ASCII -> HZ
131 Tested HZ -> ASCII
132 Tested non-ASCII bytes in ASCII mode