| 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 fram 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} |
| 670 |
\x{6ef} |
\x{6ef} |
| 671 |
\x{6fa} |
\x{6fa} |
| 672 |
** Failers |
** Failers |
| 673 |
\x{600} |
\x{604} |
| 674 |
\x{650} |
\x{650} |
| 675 |
\x{651} |
\x{651} |
| 676 |
\x{652} |
\x{652} |
| 717 |
\x{1049f} |
\x{1049f} |
| 718 |
\x{104aa} |
\x{104aa} |
| 719 |
|
|
| 720 |
/\p{Zl}{2,3}+/8BZ |
/\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 |
\xe2\x80\xa8\xe2\x80\xa8 |
\x{102A4}\x{AA52}\x{A91D}\x{1C46}\x{10283}\x{1092E}\x{1C6B}\x{A93B}\x{A8BF}\x{1BA0}\x{A50A}==== |
| 722 |
\x{2028}\x{2028}\x{2028} |
|
| 723 |
|
/\x{a77d}\x{1d79}/8i |
| 724 |
|
\x{a77d}\x{1d79} |
| 725 |
|
\x{1d79}\x{a77d} |
| 726 |
|
|
| 727 |
|
/\x{a77d}\x{1d79}/8 |
| 728 |
|
\x{a77d}\x{1d79} |
| 729 |
|
** Failers |
| 730 |
|
\x{1d79}\x{a77d} |
| 731 |
|
|
| 732 |
|
/(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 |
/\p{Zl}/8BZ |
/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 |
|
/^\w+/8W |
| 756 |
|
Az_\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}1\x{660}\x{bef}\x{16ee} |
| 757 |
|
|
| 758 |
|
/^[[:xdigit:]]*/8W |
| 759 |
|
1a\x{660}\x{bef}\x{16ee} |
| 760 |
|
|
| 761 |
|
/^\d+/8W |
| 762 |
|
1\x{660}\x{bef}\x{16ee} |
| 763 |
|
|
| 764 |
|
/^[[:digit:]]+/8W |
| 765 |
|
1\x{660}\x{bef}\x{16ee} |
| 766 |
|
|
| 767 |
|
/^>\s+/8W |
| 768 |
|
>\x{20}\x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{9}\x{b} |
| 769 |
|
|
| 770 |
|
/^>\pZ+/8W |
| 771 |
|
>\x{20}\x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{9}\x{b} |
| 772 |
|
|
| 773 |
|
/^>[[:space:]]*/8W |
| 774 |
|
>\x{20}\x{a0}\x{1680}\x{2028}\x{2029}\x{202f}\x{9}\x{b} |
| 775 |
|
|
| 776 |
/\p{Lu}{3}+/8BZ |
/^>[[:blank:]]*/8W |
| 777 |
|
>\x{20}\x{a0}\x{1680}\x{180e}\x{2000}\x{202f}\x{9}\x{b}\x{2028} |
| 778 |
|
|
| 779 |
/\pL{2}+/8BZ |
/^[[:alpha:]]*/8W |
| 780 |
|
Az\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d} |
| 781 |
|
|
| 782 |
/\p{Cc}{2}+/8BZ |
/^[[:alnum:]]*/8W |
| 783 |
|
Az\x{aa}\x{c0}\x{1c5}\x{2b0}\x{3b6}\x{1d7c9}\x{2fa1d}1\x{660}\x{bef}\x{16ee} |
| 784 |
|
|
| 785 |
|
/^[[:cntrl:]]*/8W |
| 786 |
|
\x{0}\x{09}\x{1f}\x{7f}\x{9f} |
| 787 |
|
|
| 788 |
|
/^[[:graph:]]*/8W |
| 789 |
|
A\x{a1}\x{a0} |
| 790 |
|
|
| 791 |
|
/^[[:print:]]*/8W |
| 792 |
|
A z\x{a0}\x{a1} |
| 793 |
|
|
| 794 |
|
/^[[:punct:]]*/8W |
| 795 |
|
.+\x{a1}\x{a0} |
| 796 |
|
|
| 797 |
|
/\p{Zs}*?\R/ |
| 798 |
|
** Failers |
| 799 |
|
a\xFCb |
| 800 |
|
|
| 801 |
|
/\p{Zs}*\R/ |
| 802 |
|
** Failers |
| 803 |
|
a\xFCb |
| 804 |
|
|
| 805 |
|
/^[\p{Batak}]/8 |
| 806 |
|
\x{1bc0} |
| 807 |
|
\x{1bff} |
| 808 |
|
** Failers |
| 809 |
|
\x{1bf4} |
| 810 |
|
|
| 811 |
|
/^[\p{Brahmi}]/8 |
| 812 |
|
\x{11000} |
| 813 |
|
\x{1106f} |
| 814 |
|
** Failers |
| 815 |
|
\x{1104e} |
| 816 |
|
|
| 817 |
|
/^[\p{Mandaic}]/8 |
| 818 |
|
\x{840} |
| 819 |
|
\x{85e} |
| 820 |
|
** Failers |
| 821 |
|
\x{85c} |
| 822 |
|
\x{85d} |
| 823 |
|
|
| 824 |
/ End of testinput6 / |
/-- End of testinput6 --/ |