/[pcre]/code/trunk/testdata/testinput12
ViewVC logotype

Contents of /code/trunk/testdata/testinput12

Parent Directory Parent Directory | Revision Log Revision Log


Revision 450 - (hide annotations) (download)
Wed Sep 16 10:56:40 2009 UTC (5 years, 2 months ago) by ph10
File size: 2697 byte(s)
Minor doc fix; update tests by adding comments to each file, and generally 
tidying.

1 ph10 450 /-- 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 ph10 448 /[\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     /\p{^Lu}/8i
135     1234
136     ** Failers
137     ABC
138    
139     /\P{Lu}/8i
140     1234
141     ** Failers
142     ABC
143    
144     /\p{Ll}/8i
145     a
146     Az
147     ** Failers
148     ABC
149    
150     /\p{Lu}/8i
151     A
152     a\x{10a0}B
153     ** Failers
154     a
155     \x{1d00}
156    
157     /[\x{c0}\x{391}]/8i
158     \x{c0}
159     \x{e0}
160    
161 ph10 450 /-- The next two are special cases where the lengths of the different cases of
162     the same character differ. The first went wrong with heap frame storage; the
163     second was broken in all cases. --/
164 ph10 448
165     /^\x{023a}+?(\x{0130}+)/8i
166     \x{023a}\x{2c65}\x{0130}
167    
168     /^\x{023a}+([^X])/8i
169     \x{023a}\x{2c65}X
170    
171     /\x{c0}+\x{116}+/8i
172     \x{c0}\x{e0}\x{116}\x{117}
173    
174     /[\x{c0}\x{116}]+/8i
175     \x{c0}\x{e0}\x{116}\x{117}
176    
177     /(\x{de})\1/8i
178     \x{de}\x{de}
179     \x{de}\x{fe}
180     \x{fe}\x{fe}
181     \x{fe}\x{de}
182    
183     /^\x{c0}$/8i
184     \x{c0}
185     \x{e0}
186    
187     /^\x{e0}$/8i
188     \x{c0}
189     \x{e0}
190    
191 ph10 450 /-- The next two should be Perl-compatible, but it fails to match \x{e0}. PCRE
192 ph10 448 will match it only with UCP support, because without that it has no notion
193 ph10 450 of case for anything other than the ASCII letters. --/
194 ph10 448
195     /((?i)[\x{c0}])/8
196     \x{c0}
197     \x{e0}
198    
199     /(?i:[\x{c0}])/8
200     \x{c0}
201     \x{e0}
202    
203 ph10 450 /-- End of testinput12 --/

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12