version 1.1.1.3, 2012/10/09 09:19:18
|
version 1.1.1.5, 2014/06/15 19:46:05
|
Line 1
|
Line 1
|
/-- This set of tests is for UTF-8 support, and is relevant only to the 8-bit | /-- This set of tests is for UTF-8 support but not Unicode property support, |
library. --/ | and is relevant only to the 8-bit library. --/ |
|
|
|
< forbid W |
|
|
/X(\C{3})/8 |
/X(\C{3})/8 |
X\x{1234} |
X\x{1234} |
|
|
Line 47
|
Line 49
|
|
|
/ÃÃÃxxx/8 |
/ÃÃÃxxx/8 |
|
|
/ÃÃÃxxx/8?DZSS | /ÃÃÃxxx/8?DZSSO |
|
|
/abc/8 | /badutf/8 |
Ã] | \xdf |
à | \xef |
ÃÃÃ | \xef\x80 |
ÃÃÃ\? | \xf7 |
\xe1\x88 | \xf7\x80 |
\P\xe1\x88 | \xf7\x80\x80 |
\P\P\xe1\x88 | \xfb |
XX\xea | \xfb\x80 |
\O0XX\xea | \xfb\x80\x80 |
\O1XX\xea | \xfb\x80\x80\x80 |
\O2XX\xea | \xfd |
XX\xf1 | \xfd\x80 |
XX\xf8 | \xfd\x80\x80 |
XX\xfc | \xfd\x80\x80\x80 |
ZZ\xea\xaf\x20YY | \xfd\x80\x80\x80\x80 |
ZZ\xfd\xbf\xbf\x2f\xbf\xbfYY | \xdf\x7f |
ZZ\xfd\xbf\xbf\xbf\x2f\xbfYY | \xef\x7f\x80 |
ZZ\xfd\xbf\xbf\xbf\xbf\x2fYY | \xef\x80\x7f |
ZZ\xffYY | \xf7\x7f\x80\x80 |
ZZ\xfeYY | \xf7\x80\x7f\x80 |
| \xf7\x80\x80\x7f |
| \xfb\x7f\x80\x80\x80 |
| \xfb\x80\x7f\x80\x80 |
| \xfb\x80\x80\x7f\x80 |
| \xfb\x80\x80\x80\x7f |
| \xfd\x7f\x80\x80\x80\x80 |
| \xfd\x80\x7f\x80\x80\x80 |
| \xfd\x80\x80\x7f\x80\x80 |
| \xfd\x80\x80\x80\x7f\x80 |
| \xfd\x80\x80\x80\x80\x7f |
| \xed\xa0\x80 |
| \xc0\x8f |
| \xe0\x80\x8f |
| \xf0\x80\x80\x8f |
| \xf8\x80\x80\x80\x8f |
| \xfc\x80\x80\x80\x80\x8f |
| \x80 |
| \xfe |
| \xff |
|
|
|
/badutf/8 |
|
\xfb\x80\x80\x80\x80 |
|
\xfd\x80\x80\x80\x80\x80 |
|
\xf7\xbf\xbf\xbf |
|
|
|
/shortutf/8 |
|
\P\P\xdf |
|
\P\P\xef |
|
\P\P\xef\x80 |
|
\P\P\xf7 |
|
\P\P\xf7\x80 |
|
\P\P\xf7\x80\x80 |
|
\P\P\xfb |
|
\P\P\xfb\x80 |
|
\P\P\xfb\x80\x80 |
|
\P\P\xfb\x80\x80\x80 |
|
\P\P\xfd |
|
\P\P\xfd\x80 |
|
\P\P\xfd\x80\x80 |
|
\P\P\xfd\x80\x80\x80 |
|
\P\P\xfd\x80\x80\x80\x80 |
|
|
/anything/8 |
/anything/8 |
\xc0\x80 |
\xc0\x80 |
\xc1\x8f |
\xc1\x8f |
Line 200 correctly, but that messes up comparisons). --/
|
Line 243 correctly, but that messes up comparisons). --/
|
/-- This tests the stricter UTF-8 check according to RFC 3629. --/ |
/-- This tests the stricter UTF-8 check according to RFC 3629. --/ |
|
|
/X/8 |
/X/8 |
\x{0}\x{d7ff}\x{e000}\x{10ffff} |
|
\x{d800} |
\x{d800} |
\x{d800}\? |
\x{d800}\? |
\x{da00} |
\x{da00} |
Line 217 correctly, but that messes up comparisons). --/
|
Line 259 correctly, but that messes up comparisons). --/
|
/(*UTF8)\x{1234}/ |
/(*UTF8)\x{1234}/ |
abcd\x{1234}pqr |
abcd\x{1234}pqr |
|
|
/(*CRLF)(*UTF8)(*BSR_UNICODE)a\Rb/I | /(*CRLF)(*UTF)(*BSR_UNICODE)a\Rb/I |
|
|
/\h/SI8 |
/\h/SI8 |
ABC\x{09} |
ABC\x{09} |
Line 312 correctly, but that messes up comparisons). --/
|
Line 354 correctly, but that messes up comparisons). --/
|
|
|
/\x{a0}+\s!/8BZT1 |
/\x{a0}+\s!/8BZT1 |
\x{a0}\x20! |
\x{a0}\x20! |
|
|
|
/A/8 |
|
\x{ff000041} |
|
\x{7f000041} |
|
|
|
/(*UTF8)abc/9 |
|
|
|
/abc/89 |
|
|
/-- End of testinput15 --/ |
/-- End of testinput15 --/ |