/[pcre]/code/branches/pcre16/testdata/testinput12
ViewVC logotype

Contents of /code/branches/pcre16/testdata/testinput12

Parent Directory Parent Directory | Revision Log Revision Log


Revision 507 - (show annotations)
Wed Mar 10 16:08:01 2010 UTC (5 years, 3 months ago) by ph10
Original Path: code/trunk/testdata/testinput12
File size: 2995 byte(s)
Error occurred while calculating annotation data.
Tidies for 8.02-RC1 release.
1 /-- These tests for Unicode property support test PCRE's API and show some of
2 the compiled code. They are not Perl-compatible. --/
3
4 /[\p{L}]/DZ
5
6 /[\p{^L}]/DZ
7
8 /[\P{L}]/DZ
9
10 /[\P{^L}]/DZ
11
12 /[abc\p{L}\x{0660}]/8DZ
13
14 /[\p{Nd}]/8DZ
15 1234
16
17 /[\p{Nd}+-]+/8DZ
18 1234
19 12-34
20 12+\x{661}-34
21 ** Failers
22 abcd
23
24 /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8iDZ
25
26 /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8DZ
27
28 /AB\x{1fb0}/8DZ
29
30 /AB\x{1fb0}/8DZi
31
32 /[\x{105}-\x{109}]/8iDZ
33 \x{104}
34 \x{105}
35 \x{109}
36 ** Failers
37 \x{100}
38 \x{10a}
39
40 /[z-\x{100}]/8iDZ
41 Z
42 z
43 \x{39c}
44 \x{178}
45 |
46 \x{80}
47 \x{ff}
48 \x{100}
49 \x{101}
50 ** Failers
51 \x{102}
52 Y
53 y
54
55 /[z-\x{100}]/8DZi
56
57 /(?:[\PPa*]*){8,}/
58
59 /[\P{Any}]/BZ
60
61 /[\P{Any}\E]/BZ
62
63 /(\P{Yi}+\277)/
64
65 /(\P{Yi}+\277)?/
66
67 /(?<=\P{Yi}{3}A)X/
68
69 /\p{Yi}+(\P{Yi}+)(?1)/
70
71 /(\P{Yi}{2}\277)?/
72
73 /[\P{Yi}A]/
74
75 /[\P{Yi}\P{Yi}\P{Yi}A]/
76
77 /[^\P{Yi}A]/
78
79 /[^\P{Yi}\P{Yi}\P{Yi}A]/
80
81 /(\P{Yi}*\277)*/
82
83 /(\P{Yi}*?\277)*/
84
85 /(\p{Yi}*+\277)*/
86
87 /(\P{Yi}?\277)*/
88
89 /(\P{Yi}??\277)*/
90
91 /(\p{Yi}?+\277)*/
92
93 /(\P{Yi}{0,3}\277)*/
94
95 /(\P{Yi}{0,3}?\277)*/
96
97 /(\p{Yi}{0,3}+\277)*/
98
99 /\p{Zl}{2,3}+/8BZ
100 \xe2\x80\xa8\xe2\x80\xa8
101 \x{2028}\x{2028}\x{2028}
102
103 /\p{Zl}/8BZ
104
105 /\p{Lu}{3}+/8BZ
106
107 /\pL{2}+/8BZ
108
109 /\p{Cc}{2}+/8BZ
110
111 /^\p{Cs}/8
112 \?\x{dfff}
113 ** Failers
114 \x{09f}
115
116 /^\p{Sc}+/8
117 $\x{a2}\x{a3}\x{a4}\x{a5}\x{a6}
118 \x{9f2}
119 ** Failers
120 X
121 \x{2c2}
122
123 /^\p{Zs}/8
124 \ \
125 \x{a0}
126 \x{1680}
127 \x{180e}
128 \x{2000}
129 \x{2001}
130 ** Failers
131 \x{2028}
132 \x{200d}
133
134 /-- These four are here rather than in test 6 because Perl has problems with
135 the negative versions of the properties. --/
136
137 /\p{^Lu}/8i
138 1234
139 ** Failers
140 ABC
141
142 /\P{Lu}/8i
143 1234
144 ** Failers
145 ABC
146
147 /\p{Ll}/8i
148 a
149 Az
150 ** Failers
151 ABC
152
153 /\p{Lu}/8i
154 A
155 a\x{10a0}B
156 ** Failers
157 a
158 \x{1d00}
159
160 /[\x{c0}\x{391}]/8i
161 \x{c0}
162 \x{e0}
163
164 /-- The next two are special cases where the lengths of the different cases of
165 the same character differ. The first went wrong with heap frame storage; the
166 second was broken in all cases. --/
167
168 /^\x{023a}+?(\x{0130}+)/8i
169 \x{023a}\x{2c65}\x{0130}
170
171 /^\x{023a}+([^X])/8i
172 \x{023a}\x{2c65}X
173
174 /\x{c0}+\x{116}+/8i
175 \x{c0}\x{e0}\x{116}\x{117}
176
177 /[\x{c0}\x{116}]+/8i
178 \x{c0}\x{e0}\x{116}\x{117}
179
180 /(\x{de})\1/8i
181 \x{de}\x{de}
182 \x{de}\x{fe}
183 \x{fe}\x{fe}
184 \x{fe}\x{de}
185
186 /^\x{c0}$/8i
187 \x{c0}
188 \x{e0}
189
190 /^\x{e0}$/8i
191 \x{c0}
192 \x{e0}
193
194 /-- The next two should be Perl-compatible, but it fails to match \x{e0}. PCRE
195 will match it only with UCP support, because without that it has no notion
196 of case for anything other than the ASCII letters. --/
197
198 /((?i)[\x{c0}])/8
199 \x{c0}
200 \x{e0}
201
202 /(?i:[\x{c0}])/8
203 \x{c0}
204 \x{e0}
205
206 /-- This should be Perl-compatible but Perl 5.11 gets \x{300} wrong. --/8
207
208 /^\X/8
209 A
210 A\x{300}BC
211 A\x{300}\x{301}\x{302}BC
212 *** Failers
213 \x{300}
214
215 /-- End of testinput12 --/

  ViewVC Help
Powered by ViewVC 1.1.5