| 1 |
|
/-- This set of tests is for Unicode property support. It is compatible with |
| 2 |
|
Perl 5.10, but not 5.8 because it tests some extra properties that are |
| 3 |
|
not in the earlier release. --/ |
| 4 |
|
|
| 5 |
/^\pC\pL\pM\pN\pP\pS\pZ</8 |
/^\pC\pL\pM\pN\pP\pS\pZ</8 |
| 6 |
\x7f\x{c0}\x{30f}\x{660}\x{66c}\x{f01}\x{1680}< |
\x7f\x{c0}\x{30f}\x{660}\x{66c}\x{f01}\x{1680}< |
| 7 |
\np\x{300}9!\$ < |
\np\x{300}9!\$ < |
| 64 |
** Failers |
** Failers |
| 65 |
\x{09f} |
\x{09f} |
| 66 |
|
|
|
/^\p{Cs}/8 |
|
|
\?\x{dfff} |
|
|
** Failers |
|
|
\x{09f} |
|
|
|
|
| 67 |
/^\p{Ll}/8 |
/^\p{Ll}/8 |
| 68 |
a |
a |
| 69 |
** Failers |
** Failers |
| 198 |
} |
} |
| 199 |
\x{f3b} |
\x{f3b} |
| 200 |
|
|
|
/^\p{Sc}+/8 |
|
|
$\x{a2}\x{a3}\x{a4}\x{a5}\x{a6} |
|
|
\x{9f2} |
|
|
** Failers |
|
|
X |
|
|
\x{2c2} |
|
|
|
|
| 201 |
/^\p{Sk}/8 |
/^\p{Sk}/8 |
| 202 |
\x{2c2} |
\x{2c2} |
| 203 |
** Failers |
** Failers |
| 229 |
X |
X |
| 230 |
\x{2028} |
\x{2028} |
| 231 |
|
|
|
/^\p{Zs}/8 |
|
|
\ \ |
|
|
\x{a0} |
|
|
\x{1680} |
|
|
\x{180e} |
|
|
\x{2000} |
|
|
\x{2001} |
|
|
** Failers |
|
|
\x{2028} |
|
|
\x{200d} |
|
|
|
|
| 232 |
/\p{Nd}+(..)/8 |
/\p{Nd}+(..)/8 |
| 233 |
\x{660}\x{661}\x{662}ABC |
\x{660}\x{661}\x{662}ABC |
| 234 |
|
|
| 272 |
** Failers |
** Failers |
| 273 |
\x{660}\x{661}\x{662}ABC |
\x{660}\x{661}\x{662}ABC |
| 274 |
|
|
|
/\p{Lu}/8i |
|
|
A |
|
|
a\x{10a0}B |
|
|
** Failers |
|
|
a |
|
|
\x{1d00} |
|
|
|
|
|
/\p{^Lu}/8i |
|
|
1234 |
|
|
** Failers |
|
|
ABC |
|
|
|
|
|
/\P{Lu}/8i |
|
|
1234 |
|
|
** Failers |
|
|
ABC |
|
|
|
|
| 275 |
/(?<=A\p{Nd})XYZ/8 |
/(?<=A\p{Nd})XYZ/8 |
| 276 |
A2XYZ |
A2XYZ |
| 277 |
123A5XYZPQR |
123A5XYZPQR |
| 287 |
** Failers |
** Failers |
| 288 |
WXYZ |
WXYZ |
| 289 |
|
|
|
/[\p{L}]/DZ |
|
|
|
|
|
/[\p{^L}]/DZ |
|
|
|
|
|
/[\P{L}]/DZ |
|
|
|
|
|
/[\P{^L}]/DZ |
|
|
|
|
|
/[abc\p{L}\x{0660}]/8DZ |
|
|
|
|
|
/[\p{Nd}]/8DZ |
|
|
1234 |
|
|
|
|
|
/[\p{Nd}+-]+/8DZ |
|
|
1234 |
|
|
12-34 |
|
|
12+\x{661}-34 |
|
|
** Failers |
|
|
abcd |
|
|
|
|
| 290 |
/[\P{Nd}]+/8 |
/[\P{Nd}]+/8 |
| 291 |
abcd |
abcd |
| 292 |
** Failers |
** Failers |
| 338 |
** Failers |
** Failers |
| 339 |
ABC |
ABC |
| 340 |
|
|
|
/\p{Ll}/8i |
|
|
a |
|
|
Az |
|
|
** Failers |
|
|
ABC |
|
|
|
|
|
/^\x{c0}$/8i |
|
|
\x{c0} |
|
|
\x{e0} |
|
|
|
|
|
/^\x{e0}$/8i |
|
|
\x{c0} |
|
|
\x{e0} |
|
|
|
|
| 341 |
/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8 |
/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8 |
| 342 |
A\x{391}\x{10427}\x{ff3a}\x{1fb0} |
A\x{391}\x{10427}\x{ff3a}\x{1fb0} |
| 343 |
** Failers |
** Failers |
| 355 |
A\x{391}\x{10427}\x{ff5a}\x{1fb0} |
A\x{391}\x{10427}\x{ff5a}\x{1fb0} |
| 356 |
A\x{391}\x{10427}\x{ff3a}\x{1fb8} |
A\x{391}\x{10427}\x{ff3a}\x{1fb8} |
| 357 |
|
|
|
/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8iDZ |
|
|
|
|
|
/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8DZ |
|
|
|
|
|
/AB\x{1fb0}/8DZ |
|
|
|
|
|
/AB\x{1fb0}/8DZi |
|
|
|
|
| 358 |
/\x{391}+/8i |
/\x{391}+/8i |
| 359 |
\x{391}\x{3b1}\x{3b1}\x{3b1}\x{391} |
\x{391}\x{3b1}\x{3b1}\x{3b1}\x{391} |
| 360 |
|
|
| 370 |
\x{3b1} |
\x{3b1} |
| 371 |
\x{ff5a} |
\x{ff5a} |
| 372 |
|
|
|
/[\x{c0}\x{391}]/8i |
|
|
\x{c0} |
|
|
\x{e0} |
|
|
|
|
|
/[\x{105}-\x{109}]/8iDZ |
|
|
\x{104} |
|
|
\x{105} |
|
|
\x{109} |
|
|
** Failers |
|
|
\x{100} |
|
|
\x{10a} |
|
|
|
|
|
/[z-\x{100}]/8iDZ |
|
|
Z |
|
|
z |
|
|
\x{39c} |
|
|
\x{178} |
|
|
| |
|
|
\x{80} |
|
|
\x{ff} |
|
|
\x{100} |
|
|
\x{101} |
|
|
** Failers |
|
|
\x{102} |
|
|
Y |
|
|
y |
|
|
|
|
|
/[z-\x{100}]/8DZi |
|
|
|
|
|
/^\X/8 |
|
|
A |
|
|
A\x{300}BC |
|
|
A\x{300}\x{301}\x{302}BC |
|
|
*** Failers |
|
|
\x{300} |
|
|
|
|
| 373 |
/^[\X]/8 |
/^[\X]/8 |
| 374 |
X123 |
X123 |
| 375 |
*** Failers |
*** Failers |
| 633 |
/([\pL]=(abc))*X/ |
/([\pL]=(abc))*X/ |
| 634 |
L=abcX |
L=abcX |
| 635 |
|
|
|
/The next two should be Perl-compatible, but it fails to match \x{e0}. PCRE |
|
|
will match it only with UCP support, because without that it has no notion |
|
|
of case for anything other than the ASCII letters. / |
|
|
|
|
|
/((?i)[\x{c0}])/8 |
|
|
\x{c0} |
|
|
\x{e0} |
|
|
|
|
|
/(?i:[\x{c0}])/8 |
|
|
\x{c0} |
|
|
\x{e0} |
|
|
|
|
| 636 |
/^\p{Balinese}\p{Cuneiform}\p{Nko}\p{Phags_Pa}\p{Phoenician}/8 |
/^\p{Balinese}\p{Cuneiform}\p{Nko}\p{Phags_Pa}\p{Phoenician}/8 |
| 637 |
\x{1b00}\x{12000}\x{7c0}\x{a840}\x{10900} |
\x{1b00}\x{12000}\x{7c0}\x{a840}\x{10900} |
| 638 |
|
|
|
/The next two are special cases where the lengths of the different cases of the |
|
|
same character differ. The first went wrong with heap frame storage; the 2nd |
|
|
was broken in all cases./ |
|
|
|
|
|
/^\x{023a}+?(\x{0130}+)/8i |
|
|
\x{023a}\x{2c65}\x{0130} |
|
|
|
|
|
/^\x{023a}+([^X])/8i |
|
|
\x{023a}\x{2c65}X |
|
|
|
|
| 639 |
/Check property support in non-UTF-8 mode/ |
/Check property support in non-UTF-8 mode/ |
| 640 |
|
|
| 641 |
/\p{L}{4}/ |
/\p{L}{4}/ |
| 654 |
/[\PPP\x8a]{1,}\x80/ |
/[\PPP\x8a]{1,}\x80/ |
| 655 |
A\x80 |
A\x80 |
| 656 |
|
|
|
/(?:[\PPa*]*){8,}/ |
|
|
|
|
|
/[\P{Any}]/BZ |
|
|
|
|
|
/[\P{Any}\E]/BZ |
|
|
|
|
|
/(\P{Yi}+\277)/ |
|
|
|
|
|
/(\P{Yi}+\277)?/ |
|
|
|
|
|
/(?<=\P{Yi}{3}A)X/ |
|
|
|
|
|
/\p{Yi}+(\P{Yi}+)(?1)/ |
|
|
|
|
|
/(\P{Yi}{2}\277)?/ |
|
|
|
|
|
/[\P{Yi}A]/ |
|
|
|
|
|
/[\P{Yi}\P{Yi}\P{Yi}A]/ |
|
|
|
|
|
/[^\P{Yi}A]/ |
|
|
|
|
|
/[^\P{Yi}\P{Yi}\P{Yi}A]/ |
|
|
|
|
|
/(\P{Yi}*\277)*/ |
|
|
|
|
|
/(\P{Yi}*?\277)*/ |
|
|
|
|
|
/(\p{Yi}*+\277)*/ |
|
|
|
|
|
/(\P{Yi}?\277)*/ |
|
|
|
|
|
/(\P{Yi}??\277)*/ |
|
|
|
|
|
/(\p{Yi}?+\277)*/ |
|
|
|
|
|
/(\P{Yi}{0,3}\277)*/ |
|
|
|
|
|
/(\P{Yi}{0,3}?\277)*/ |
|
|
|
|
|
/(\p{Yi}{0,3}+\277)*/ |
|
|
|
|
| 657 |
/^[\p{Arabic}]/8 |
/^[\p{Arabic}]/8 |
| 658 |
\x{60e} |
\x{60e} |
| 659 |
\x{656} |
\x{656} |
| 717 |
\x{1049f} |
\x{1049f} |
| 718 |
\x{104aa} |
\x{104aa} |
| 719 |
|
|
|
/\p{Zl}{2,3}+/8BZ |
|
|
\xe2\x80\xa8\xe2\x80\xa8 |
|
|
\x{2028}\x{2028}\x{2028} |
|
|
|
|
|
/\p{Zl}/8BZ |
|
|
|
|
|
/\p{Lu}{3}+/8BZ |
|
|
|
|
|
/\pL{2}+/8BZ |
|
|
|
|
|
/\p{Cc}{2}+/8BZ |
|
|
|
|
|
/\x{c0}+\x{116}+/8i |
|
|
\x{c0}\x{e0}\x{116}\x{117} |
|
|
|
|
|
/[\x{c0}\x{116}]+/8i |
|
|
\x{c0}\x{e0}\x{116}\x{117} |
|
|
|
|
| 720 |
/\p{Carian}\p{Cham}\p{Kayah_Li}\p{Lepcha}\p{Lycian}\p{Lydian}\p{Ol_Chiki}\p{Rejang}\p{Saurashtra}\p{Sundanese}\p{Vai}/8 |
/\p{Carian}\p{Cham}\p{Kayah_Li}\p{Lepcha}\p{Lycian}\p{Lydian}\p{Ol_Chiki}\p{Rejang}\p{Saurashtra}\p{Sundanese}\p{Vai}/8 |
| 721 |
\x{102A4}\x{AA52}\x{A91D}\x{1C46}\x{10283}\x{1092E}\x{1C6B}\x{A93B}\x{A8BF}\x{1BA0}\x{A50A}==== |
\x{102A4}\x{AA52}\x{A91D}\x{1C46}\x{10283}\x{1092E}\x{1C6B}\x{A93B}\x{A8BF}\x{1BA0}\x{A50A}==== |
| 722 |
|
|
| 729 |
** Failers |
** Failers |
| 730 |
\x{1d79}\x{a77d} |
\x{1d79}\x{a77d} |
| 731 |
|
|
| 732 |
/ End of testinput6 / |
/(A)\1/8i |
| 733 |
|
AA |
| 734 |
|
Aa |
| 735 |
|
aa |
| 736 |
|
aA |
| 737 |
|
|
| 738 |
|
/(\x{10a})\1/8i |
| 739 |
|
\x{10a}\x{10a} |
| 740 |
|
\x{10a}\x{10b} |
| 741 |
|
\x{10b}\x{10b} |
| 742 |
|
\x{10b}\x{10a} |
| 743 |
|
|
| 744 |
|
/The next two tests are for property support in non-UTF-8 mode/ |
| 745 |
|
|
| 746 |
|
/(?:\p{Lu}|\x20)+/ |
| 747 |
|
\x41\x20\x50\xC2\x54\xC9\x20\x54\x4F\x44\x41\x59 |
| 748 |
|
|
| 749 |
|
/[\p{Lu}\x20]+/ |
| 750 |
|
\x41\x20\x50\xC2\x54\xC9\x20\x54\x4F\x44\x41\x59 |
| 751 |
|
|
| 752 |
|
/\p{Avestan}\p{Bamum}\p{Egyptian_Hieroglyphs}\p{Imperial_Aramaic}\p{Inscriptional_Pahlavi}\p{Inscriptional_Parthian}\p{Javanese}\p{Kaithi}\p{Lisu}\p{Meetei_Mayek}\p{Old_South_Arabian}\p{Old_Turkic}\p{Samaritan}\p{Tai_Tham}\p{Tai_Viet}/8 |
| 753 |
|
\x{10b00}\x{a6ef}\x{13007}\x{10857}\x{10b78}\x{10b58}\x{a980}\x{110c1}\x{a4ff}\x{abc0}\x{10a7d}\x{10c48}\x{0800}\x{1aad}\x{aac0} |
| 754 |
|
|
| 755 |
|
/-- End of testinput6 --/ |