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

Contents of /code/trunk/testdata/testinput5

Parent Directory Parent Directory | Revision Log Revision Log


Revision 190 - (hide annotations) (download)
Thu Jul 19 10:38:20 2007 UTC (7 years, 3 months ago) by ph10
File size: 5541 byte(s)
Fix bug with .*$ when run in not-DOTALL UTF-8 mode; small performance 
improvement for .* in DOTALL UTF-8 mode.

1 ph10 162 /\x{100}/8DZ
2 nigel 49
3 ph10 162 /\x{1000}/8DZ
4 nigel 49
5 ph10 162 /\x{10000}/8DZ
6 nigel 49
7 ph10 162 /\x{100000}/8DZ
8 nigel 49
9 ph10 162 /\x{1000000}/8DZ
10 nigel 49
11 ph10 162 /\x{4000000}/8DZ
12 nigel 49
13 ph10 162 /\x{7fffFFFF}/8DZ
14 nigel 49
15 ph10 162 /[\x{ff}]/8DZ
16 nigel 49
17 ph10 162 /[\x{100}]/8DZ
18 nigel 49
19 nigel 63 /\x{ffffffff}/8
20 nigel 49
21 nigel 63 /\x{100000000}/8
22 nigel 49
23 nigel 63 /^\x{100}a\x{1234}/8
24     \x{100}a\x{1234}bcd
25 nigel 49
26 ph10 161 /\x80/8DZ
27 nigel 49
28 ph10 161 /\xff/8DZ
29 nigel 49
30 ph10 161 /\x{0041}\x{2262}\x{0391}\x{002e}/DZ8
31 nigel 63 \x{0041}\x{2262}\x{0391}\x{002e}
32    
33 ph10 161 /\x{D55c}\x{ad6d}\x{C5B4}/DZ8
34 nigel 63 \x{D55c}\x{ad6d}\x{C5B4}
35 nigel 49
36 ph10 161 /\x{65e5}\x{672c}\x{8a9e}/DZ8
37 nigel 63 \x{65e5}\x{672c}\x{8a9e}
38 nigel 49
39 ph10 161 /\x{80}/DZ8
40 nigel 49
41 ph10 161 /\x{084}/DZ8
42 nigel 63
43 ph10 161 /\x{104}/DZ8
44 nigel 63
45 ph10 161 /\x{861}/DZ8
46 nigel 63
47 ph10 161 /\x{212ab}/DZ8
48 nigel 63
49 ph10 161 /.{3,5}X/DZ8
50 nigel 63 \x{212ab}\x{212ab}\x{212ab}\x{861}X
51    
52    
53 ph10 161 /.{3,5}?/DZ8
54 nigel 63 \x{212ab}\x{212ab}\x{212ab}\x{861}
55    
56 ph10 161 /-- These tests are here rather than in testinput4 because Perl 5.6 has some
57     problems with UTF-8 support, in the area of \x{..} where the value is < 255.
58     It grumbles about invalid UTF-8 strings. --/
59 nigel 63
60     /^[a\x{c0}]b/8
61     \x{c0}b
62    
63     /^([a\x{c0}]*?)aa/8
64     a\x{c0}aaaa/
65    
66     /^([a\x{c0}]*?)aa/8
67     a\x{c0}aaaa/
68     a\x{c0}a\x{c0}aaa/
69    
70     /^([a\x{c0}]*)aa/8
71     a\x{c0}aaaa/
72     a\x{c0}a\x{c0}aaa/
73    
74     /^([a\x{c0}]*)a\x{c0}/8
75     a\x{c0}aaaa/
76     a\x{c0}a\x{c0}aaa/
77    
78     /-- --/
79    
80     /(?<=\C)X/8
81     Should produce an error diagnostic
82    
83 ph10 161 /-- This one is here not because it's different to Perl, but because the way
84     the captured single-byte is displayed. (In Perl it becomes a character, and you
85     can't tell the difference.) --/
86 nigel 63
87     /X(\C)(.*)/8
88     X\x{1234}
89     X\nabc
90    
91 ph10 161 /^[ab]/8DZ
92 nigel 63 bar
93 nigel 49 *** Failers
94 nigel 63 c
95     \x{ff}
96     \x{100}
97 nigel 49
98 ph10 161 /^[^ab]/8DZ
99 nigel 63 c
100     \x{ff}
101     \x{100}
102     *** Failers
103     aaa
104    
105 ph10 161 /[^ab\xC0-\xF0]/8SDZ
106 nigel 63 \x{f1}
107     \x{bf}
108     \x{100}
109     \x{1000}
110 nigel 49 *** Failers
111 nigel 63 \x{c0}
112     \x{f0}
113 nigel 49
114 ph10 161 /Ā{3,4}/8SDZ
115 nigel 63 \x{100}\x{100}\x{100}\x{100\x{100}
116 nigel 49
117 ph10 161 /(\x{100}+|x)/8SDZ
118 nigel 49
119 ph10 161 /(\x{100}*a|x)/8SDZ
120 nigel 63
121 ph10 161 /(\x{100}{0,2}a|x)/8SDZ
122 nigel 63
123 ph10 161 /(\x{100}{1,2}a|x)/8SDZ
124 nigel 63
125     /\x{100}*(\d+|"(?1)")/8
126     1234
127     "1234"
128     \x{100}1234
129     "\x{100}1234"
130     \x{100}\x{100}12ab
131     \x{100}\x{100}"12"
132 nigel 49 *** Failers
133 nigel 63 \x{100}\x{100}abcd
134 nigel 49
135 ph10 161 /\x{100}/8DZ
136 nigel 63
137 ph10 161 /\x{100}*/8DZ
138 nigel 63
139 ph10 161 /a\x{100}*/8DZ
140 nigel 63
141 ph10 161 /ab\x{100}*/8DZ
142 nigel 63
143 ph10 161 /a\x{100}\x{101}*/8DZ
144 nigel 63
145 ph10 161 /a\x{100}\x{101}+/8DZ
146 nigel 63
147 ph10 161 /\x{100}*A/8DZ
148 nigel 63 A
149    
150 ph10 161 /\x{100}*\d(?R)/8DZ
151 nigel 63
152 ph10 161 /[^\x{c4}]/DZ
153 nigel 63
154 ph10 161 /[^\x{c4}]/8DZ
155 nigel 63
156 ph10 162 /[\x{100}]/8DZ
157 nigel 63 \x{100}
158     Z\x{100}
159     \x{100}Z
160     *** Failers
161    
162 ph10 162 /[Z\x{100}]/8DZ
163 nigel 63 Z\x{100}
164     \x{100}
165     \x{100}Z
166     *** Failers
167    
168     /[\x{200}-\x{100}]/8
169    
170     /[Ā-Ą]/8
171     \x{100}
172     \x{104}
173     *** Failers
174     \x{105}
175     \x{ff}
176    
177 ph10 161 /[z-\x{100}]/8DZ
178 nigel 63
179 ph10 161 /[z\Qa-d]Ā\E]/8DZ
180 nigel 63 \x{100}
181     Ā
182    
183 ph10 161 /[\xFF]/DZ
184 nigel 67 >\xff<
185    
186 ph10 161 /[\xff]/DZ8
187 nigel 67 >\x{ff}<
188    
189 ph10 161 /[^\xFF]/DZ
190 nigel 67
191 ph10 161 /[^\xff]/8DZ
192 nigel 67
193 nigel 71 /[Ä-Ü]/8
194     Ö # Matches without Study
195     \x{d6}
196    
197     /[Ä-Ü]/8S
198     Ö <-- Same with Study
199     \x{d6}
200    
201     /[\x{c4}-\x{dc}]/8
202     Ö # Matches without Study
203     \x{d6}
204    
205     /[\x{c4}-\x{dc}]/8S
206     Ö <-- Same with Study
207     \x{d6}
208    
209     /[]/8
210    
211     //8
212    
213     /xxx/8
214    
215 ph10 161 /xxx/8?DZ
216 nigel 71
217     /abc/8
218 nigel 73 ]
219    
220    
221     \?
222 nigel 71
223 nigel 73 /anything/8
224     \xc0\x80
225     \xc1\x8f
226     \xe0\x9f\x80
227     \xf0\x8f\x80\x80
228     \xf8\x87\x80\x80\x80
229     \xfc\x83\x80\x80\x80\x80
230     \xfe\x80\x80\x80\x80\x80
231     \xff\x80\x80\x80\x80\x80
232     \xc3\x8f
233     \xe0\xaf\x80
234     \xe1\x80\x80
235     \xf0\x9f\x80\x80
236     \xf1\x8f\x80\x80
237     \xf8\x88\x80\x80\x80
238     \xf9\x87\x80\x80\x80
239     \xfc\x84\x80\x80\x80\x80
240     \xfd\x83\x80\x80\x80\x80
241    
242 ph10 161 /\x{100}abc(xyz(?1))/8DZ
243 nigel 73
244 ph10 161 /[^\x{100}]abc(xyz(?1))/8DZ
245 nigel 73
246 ph10 161 /[ab\x{100}]abc(xyz(?1))/8DZ
247 nigel 73
248 ph10 161 /(\x{100}(b(?2)c))?/DZ8
249 nigel 73
250 ph10 161 /(\x{100}(b(?2)c)){0,2}/DZ8
251 nigel 73
252 ph10 161 /(\x{100}(b(?1)c))?/DZ8
253 nigel 73
254 ph10 161 /(\x{100}(b(?1)c)){0,2}/DZ8
255 nigel 73
256 nigel 75 /\W/8
257     A.B
258     A\x{100}B
259    
260     /\w/8
261     \x{100}X
262    
263 nigel 87 /a\x{1234}b/P8
264     a\x{1234}b
265    
266 ph10 161 /^\ሴ/8DZ
267 nigel 87
268 nigel 91 /\777/I
269    
270     /\777/8I
271     \x{1ff}
272     \777
273 nigel 93
274 ph10 161 /\x{100}*\d/8DZ
275 nigel 91
276 ph10 161 /\x{100}*\s/8DZ
277 nigel 93
278 ph10 161 /\x{100}*\w/8DZ
279 nigel 93
280 ph10 161 /\x{100}*\D/8DZ
281 nigel 93
282 ph10 161 /\x{100}*\S/8DZ
283 nigel 93
284 ph10 161 /\x{100}*\W/8DZ
285 nigel 93
286 ph10 161 /\x{100}+\x{200}/8DZ
287 nigel 93
288 ph10 161 /\x{100}+X/8DZ
289 nigel 93
290 ph10 161 /X+\x{200}/8DZ
291 nigel 93
292     /()()()()()()()()()()
293     ()()()()()()()()()()
294     ()()()()()()()()()()
295     ()()()()()()()()()()
296     A (x) (?41) B/8x
297     AxxB
298    
299 ph10 162 /^[\x{100}\E-\Q\E\x{150}]/BZ8
300 nigel 93
301 ph10 162 /^[\QĀ\E-\QŐ\E]/BZ8
302 nigel 93
303 ph10 162 /^[\QĀ\E-\QŐ\E/BZ8
304 nigel 93
305     /^abc./mgx8<any>
306     abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x{0085}abc7 \x{2028}abc8 \x{2029}abc9 JUNK
307    
308     /abc.$/mgx8<any>
309     abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x{0085} abc7\x{2028} abc8\x{2029} abc9
310    
311     /^a\Rb/8
312     a\nb
313     a\rb
314     a\r\nb
315     a\x0bb
316     a\x0cb
317     a\x{85}b
318     a\x{2028}b
319     a\x{2029}b
320     ** Failers
321     a\n\rb
322    
323     /^a\R*b/8
324     ab
325     a\nb
326     a\rb
327     a\r\nb
328     a\x0bb
329     a\x0c\x{2028}\x{2029}b
330     a\x{85}b
331     a\n\rb
332     a\n\r\x{85}\x0cb
333    
334     /^a\R+b/8
335     a\nb
336     a\rb
337     a\r\nb
338     a\x0bb
339     a\x0c\x{2028}\x{2029}b
340     a\x{85}b
341     a\n\rb
342     a\n\r\x{85}\x0cb
343     ** Failers
344     ab
345    
346     /^a\R{1,3}b/8
347     a\nb
348     a\n\rb
349     a\n\r\x{85}b
350     a\r\n\r\nb
351     a\r\n\r\n\r\nb
352     a\n\r\n\rb
353     a\n\n\r\nb
354     ** Failers
355     a\n\n\n\rb
356     a\r
357    
358 ph10 178 /\H\h\V\v/8
359     X X\x0a
360     X\x09X\x0b
361     ** Failers
362     \x{a0} X\x0a
363    
364     /\H*\h+\V?\v{3,4}/8
365     \x09\x20\x{a0}X\x0a\x0b\x0c\x0d\x0a
366     \x09\x20\x{a0}\x0a\x0b\x0c\x0d\x0a
367     \x09\x20\x{a0}\x0a\x0b\x0c
368     ** Failers
369     \x09\x20\x{a0}\x0a\x0b
370    
371     /\H\h\V\v/8
372     \x{3001}\x{3000}\x{2030}\x{2028}
373     X\x{180e}X\x{85}
374     ** Failers
375     \x{2009} X\x0a
376    
377     /\H*\h+\V?\v{3,4}/8
378     \x{1680}\x{180e}\x{2007}X\x{2028}\x{2029}\x0c\x0d\x0a
379     \x09\x{205f}\x{a0}\x0a\x{2029}\x0c\x{2028}\x0a
380     \x09\x20\x{202f}\x0a\x0b\x0c
381     ** Failers
382     \x09\x{200a}\x{a0}\x{2028}\x0b
383    
384     /[\h]/8BZ
385     >\x{1680}
386    
387     /[\h]{3,}/8BZ
388     >\x{1680}\x{180e}\x{2000}\x{2003}\x{200a}\x{202f}\x{205f}\x{3000}<
389    
390     /[\v]/8BZ
391    
392     /[\H]/8BZ
393    
394     /[\V]/8BZ
395    
396 ph10 190 /.*$/8<any>
397     \x{1ec5}
398    
399 nigel 49 / End of testinput5 /

Properties

Name Value
svn:keywords "Author Date Id Revision Url"

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12