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

Contents of /code/trunk/testdata/testinput7

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1438 - (hide annotations) (download)
Fri Jan 10 16:13:10 2014 UTC (3 months, 1 week ago) by ph10
File size: 13696 byte(s)
Fix caseless character class bug for characters within a range that have more 
than one other case.

1 ph10 836 /-- These tests for Unicode property support test PCRE's API and show some of
2     the compiled code. They are not Perl-compatible. --/
3 nigel 77
4 ph10 836 /[\p{L}]/DZ
5 nigel 77
6 ph10 836 /[\p{^L}]/DZ
7 nigel 77
8 ph10 836 /[\P{L}]/DZ
9 nigel 77
10 ph10 836 /[\P{^L}]/DZ
11 nigel 77
12 ph10 836 /[abc\p{L}\x{0660}]/8DZ
13 nigel 77
14 ph10 836 /[\p{Nd}]/8DZ
15 nigel 77 1234
16    
17 ph10 836 /[\p{Nd}+-]+/8DZ
18 nigel 77 1234
19     12-34
20 ph10 836 12+\x{661}-34
21     ** Failers
22     abcd
23 nigel 77
24 ph10 836 /[\x{105}-\x{109}]/8iDZ
25     \x{104}
26     \x{105}
27     \x{109}
28     ** Failers
29     \x{100}
30     \x{10a}
31 nigel 77
32 ph10 836 /[z-\x{100}]/8iDZ
33     Z
34     z
35     \x{39c}
36     \x{178}
37     |
38     \x{80}
39     \x{ff}
40     \x{100}
41     \x{101}
42     ** Failers
43     \x{102}
44     Y
45     y
46 nigel 77
47 ph10 836 /[z-\x{100}]/8DZi
48 nigel 77
49 ph10 836 /(?:[\PPa*]*){8,}/
50 nigel 77
51 ph10 836 /[\P{Any}]/BZ
52 nigel 77
53 ph10 836 /[\P{Any}\E]/BZ
54 nigel 77
55 ph10 836 /(\P{Yi}+\277)/
56 nigel 77
57 ph10 836 /(\P{Yi}+\277)?/
58 nigel 77
59 ph10 836 /(?<=\P{Yi}{3}A)X/
60 nigel 77
61 ph10 836 /\p{Yi}+(\P{Yi}+)(?1)/
62 nigel 77
63 ph10 836 /(\P{Yi}{2}\277)?/
64 nigel 77
65 ph10 836 /[\P{Yi}A]/
66 nigel 77
67 ph10 836 /[\P{Yi}\P{Yi}\P{Yi}A]/
68 nigel 77
69 ph10 836 /[^\P{Yi}A]/
70 nigel 77
71 ph10 836 /[^\P{Yi}\P{Yi}\P{Yi}A]/
72 nigel 77
73 ph10 836 /(\P{Yi}*\277)*/
74 nigel 77
75 ph10 836 /(\P{Yi}*?\277)*/
76 nigel 77
77 ph10 836 /(\p{Yi}*+\277)*/
78 nigel 77
79 ph10 836 /(\P{Yi}?\277)*/
80 nigel 77
81 ph10 836 /(\P{Yi}??\277)*/
82 nigel 77
83 ph10 836 /(\p{Yi}?+\277)*/
84 nigel 77
85 ph10 836 /(\P{Yi}{0,3}\277)*/
86 nigel 77
87 ph10 836 /(\P{Yi}{0,3}?\277)*/
88 nigel 77
89 ph10 836 /(\p{Yi}{0,3}+\277)*/
90 nigel 77
91 ph10 836 /\p{Zl}{2,3}+/8BZ
92 chpe 1090 


93 ph10 836 \x{2028}\x{2028}\x{2028}
94 nigel 77
95 ph10 836 /\p{Zl}/8BZ
96 nigel 77
97 ph10 836 /\p{Lu}{3}+/8BZ
98 nigel 77
99 ph10 836 /\pL{2}+/8BZ
100 nigel 77
101 ph10 836 /\p{Cc}{2}+/8BZ
102 nigel 77
103 chpe 1362 /^\p{Cf}/8
104     \x{180e}
105     \x{061c}
106     \x{2066}
107     \x{2067}
108     \x{2068}
109     \x{2069}
110    
111 ph10 836 /^\p{Cs}/8
112     \?\x{dfff}
113     ** Failers
114     \x{09f}
115 nigel 77
116 chpe 1362 /^\p{Mn}/8
117     \x{1a1b}
118    
119     /^\p{Pe}/8
120     \x{2309}
121     \x{230b}
122    
123     /^\p{Ps}/8
124     \x{2308}
125     \x{230a}
126    
127 ph10 836 /^\p{Sc}+/8
128     $\x{a2}\x{a3}\x{a4}\x{a5}\x{a6}
129     \x{9f2}
130     ** Failers
131     X
132     \x{2c2}
133 nigel 77
134 ph10 836 /^\p{Zs}/8
135     \ \
136     \x{a0}
137     \x{1680}
138     \x{2000}
139     \x{2001}
140     ** Failers
141     \x{2028}
142     \x{200d}
143 nigel 77
144 ph10 1351 /-- These are here rather than in test 6 because Perl has problems with
145     the negative versions of the properties and behaves has changed how
146     it behaves for caseless matching. --/
147 nigel 77
148 ph10 836 /\p{^Lu}/8i
149     1234
150     ** Failers
151     ABC
152 nigel 77
153 ph10 836 /\P{Lu}/8i
154     1234
155     ** Failers
156     ABC
157 nigel 77
158 ph10 836 /\p{Ll}/8i
159 nigel 77 a
160 ph10 836 Az
161     ** Failers
162     ABC
163 nigel 77
164 ph10 836 /\p{Lu}/8i
165     A
166     a\x{10a0}B
167     ** Failers
168 nigel 77 a
169 ph10 836 \x{1d00}
170 nigel 77
171 ph10 1351 /\p{Lu}/8i
172     A
173     aZ
174     ** Failers
175     abc
176    
177 ph10 836 /[\x{c0}\x{391}]/8i
178     \x{c0}
179     \x{e0}
180 nigel 77
181 ph10 836 /-- The next two are special cases where the lengths of the different cases of
182     the same character differ. The first went wrong with heap frame storage; the
183     second was broken in all cases. --/
184 nigel 77
185 ph10 836 /^\x{023a}+?(\x{0130}+)/8i
186     \x{023a}\x{2c65}\x{0130}
187    
188     /^\x{023a}+([^X])/8i
189     \x{023a}\x{2c65}X
190 nigel 77
191 ph10 836 /\x{c0}+\x{116}+/8i
192     \x{c0}\x{e0}\x{116}\x{117}
193 nigel 77
194 ph10 836 /[\x{c0}\x{116}]+/8i
195     \x{c0}\x{e0}\x{116}\x{117}
196 nigel 77
197 ph10 836 /(\x{de})\1/8i
198     \x{de}\x{de}
199     \x{de}\x{fe}
200     \x{fe}\x{fe}
201     \x{fe}\x{de}
202 nigel 77
203 ph10 836 /^\x{c0}$/8i
204     \x{c0}
205     \x{e0}
206 nigel 77
207 ph10 836 /^\x{e0}$/8i
208     \x{c0}
209     \x{e0}
210 nigel 77
211 ph10 836 /-- The next two should be Perl-compatible, but it fails to match \x{e0}. PCRE
212     will match it only with UCP support, because without that it has no notion
213     of case for anything other than the ASCII letters. --/
214 nigel 77
215 ph10 836 /((?i)[\x{c0}])/8
216     \x{c0}
217     \x{e0}
218 nigel 77
219 ph10 836 /(?i:[\x{c0}])/8
220     \x{c0}
221     \x{e0}
222 nigel 77
223 ph10 836 /-- These are PCRE's extra properties to help with Unicodizing \d etc. --/
224 nigel 77
225 ph10 836 /^\p{Xan}/8
226 nigel 77 ABCD
227 ph10 836 1234
228     \x{6ca}
229     \x{a6c}
230     \x{10a7}
231     ** Failers
232     _ABC
233 nigel 77
234 ph10 836 /^\p{Xan}+/8
235     ABCD1234\x{6ca}\x{a6c}\x{10a7}_
236     ** Failers
237     _ABC
238 nigel 77
239 ph10 836 /^\p{Xan}+?/8
240     \x{6ca}\x{a6c}\x{10a7}_
241 nigel 77
242 ph10 836 /^\p{Xan}*/8
243     ABCD1234\x{6ca}\x{a6c}\x{10a7}_
244 nigel 77
245 ph10 836 /^\p{Xan}{2,9}/8
246     ABCD1234\x{6ca}\x{a6c}\x{10a7}_
247 nigel 77
248 ph10 836 /^\p{Xan}{2,9}?/8
249     \x{6ca}\x{a6c}\x{10a7}_
250 nigel 77
251 ph10 836 /^[\p{Xan}]/8
252     ABCD1234_
253     1234abcd_
254     \x{6ca}
255     \x{a6c}
256     \x{10a7}
257     ** Failers
258     _ABC
259    
260     /^[\p{Xan}]+/8
261     ABCD1234\x{6ca}\x{a6c}\x{10a7}_
262     ** Failers
263     _ABC
264 nigel 77
265 ph10 836 /^>\p{Xsp}/8
266     >\x{1680}\x{2028}\x{0b}
267     >\x{a0}
268     ** Failers
269     \x{0b}
270 nigel 77
271 ph10 836 /^>\p{Xsp}+/8
272     > \x{09}\x{0a}\x{0c}\x{0d}\x{a0}\x{1680}\x{2028}\x{0b}
273 nigel 77
274 ph10 836 /^>\p{Xsp}+?/8
275     >\x{1680}\x{2028}\x{0b}
276 nigel 77
277 ph10 836 /^>\p{Xsp}*/8
278     > \x{09}\x{0a}\x{0c}\x{0d}\x{a0}\x{1680}\x{2028}\x{0b}
279 nigel 77
280 ph10 836 /^>\p{Xsp}{2,9}/8
281     > \x{09}\x{0a}\x{0c}\x{0d}\x{a0}\x{1680}\x{2028}\x{0b}
282 nigel 77
283 ph10 836 /^>\p{Xsp}{2,9}?/8
284     > \x{09}\x{0a}\x{0c}\x{0d}\x{a0}\x{1680}\x{2028}\x{0b}
285 nigel 77
286 ph10 836 /^>[\p{Xsp}]/8
287     >\x{2028}\x{0b}
288    
289     /^>[\p{Xsp}]+/8
290     > \x{09}\x{0a}\x{0c}\x{0d}\x{a0}\x{1680}\x{2028}\x{0b}
291 nigel 77
292 ph10 836 /^>\p{Xps}/8
293     >\x{1680}\x{2028}\x{0b}
294     >\x{a0}
295     ** Failers
296     \x{0b}
297 nigel 77
298 ph10 836 /^>\p{Xps}+/8
299     > \x{09}\x{0a}\x{0c}\x{0d}\x{a0}\x{1680}\x{2028}\x{0b}
300 nigel 77
301 ph10 836 /^>\p{Xps}+?/8
302     >\x{1680}\x{2028}\x{0b}
303 nigel 77
304 ph10 836 /^>\p{Xps}*/8
305     > \x{09}\x{0a}\x{0c}\x{0d}\x{a0}\x{1680}\x{2028}\x{0b}
306 nigel 77
307 ph10 836 /^>\p{Xps}{2,9}/8
308     > \x{09}\x{0a}\x{0c}\x{0d}\x{a0}\x{1680}\x{2028}\x{0b}
309 nigel 77
310 ph10 836 /^>\p{Xps}{2,9}?/8
311     > \x{09}\x{0a}\x{0c}\x{0d}\x{a0}\x{1680}\x{2028}\x{0b}
312 nigel 77
313 ph10 836 /^>[\p{Xps}]/8
314     >\x{2028}\x{0b}
315    
316     /^>[\p{Xps}]+/8
317     > \x{09}\x{0a}\x{0c}\x{0d}\x{a0}\x{1680}\x{2028}\x{0b}
318 nigel 77
319 ph10 836 /^\p{Xwd}/8
320     ABCD
321     1234
322     \x{6ca}
323     \x{a6c}
324     \x{10a7}
325     _ABC
326     ** Failers
327     []
328 nigel 77
329 ph10 836 /^\p{Xwd}+/8
330     ABCD1234\x{6ca}\x{a6c}\x{10a7}_
331 nigel 77
332 ph10 836 /^\p{Xwd}+?/8
333     \x{6ca}\x{a6c}\x{10a7}_
334 nigel 77
335 ph10 836 /^\p{Xwd}*/8
336     ABCD1234\x{6ca}\x{a6c}\x{10a7}_
337 nigel 77
338 ph10 836 /^\p{Xwd}{2,9}/8
339     A_B12\x{6ca}\x{a6c}\x{10a7}
340 nigel 77
341 ph10 836 /^\p{Xwd}{2,9}?/8
342     \x{6ca}\x{a6c}\x{10a7}_
343 nigel 77
344 ph10 836 /^[\p{Xwd}]/8
345     ABCD1234_
346     1234abcd_
347     \x{6ca}
348     \x{a6c}
349     \x{10a7}
350     _ABC
351     ** Failers
352     []
353    
354     /^[\p{Xwd}]+/8
355     ABCD1234\x{6ca}\x{a6c}\x{10a7}_
356 nigel 77
357 ph10 836 /-- A check not in UTF-8 mode --/
358 nigel 77
359 ph10 836 /^[\p{Xwd}]+/
360     ABCD1234_
361 nigel 91
362 ph10 836 /-- Some negative checks --/
363 nigel 91
364 ph10 836 /^[\P{Xwd}]+/8
365     !.+\x{019}\x{35a}AB
366 nigel 91
367 ph10 836 /^[\p{^Xwd}]+/8
368     !.+\x{019}\x{35a}AB
369 nigel 91
370 ph10 836 /[\D]/WBZ8
371     1\x{3c8}2
372 nigel 91
373 ph10 836 /[\d]/WBZ8
374     >\x{6f4}<
375 nigel 91
376 ph10 836 /[\S]/WBZ8
377     \x{1680}\x{6f4}\x{1680}
378 nigel 91
379 ph10 836 /[\s]/WBZ8
380     >\x{1680}<
381 nigel 91
382 ph10 836 /[\W]/WBZ8
383     A\x{1712}B
384 nigel 91
385 ph10 836 /[\w]/WBZ8
386     >\x{1723}<
387 nigel 91
388 ph10 836 /\D/WBZ8
389     1\x{3c8}2
390 nigel 91
391 ph10 836 /\d/WBZ8
392     >\x{6f4}<
393 nigel 91
394 ph10 836 /\S/WBZ8
395     \x{1680}\x{6f4}\x{1680}
396 nigel 93
397 ph10 836 /\s/WBZ8
398     >\x{1680}>
399 nigel 93
400 ph10 836 /\W/WBZ8
401     A\x{1712}B
402 nigel 93
403 ph10 836 /\w/WBZ8
404     >\x{1723}<
405 nigel 93
406 ph10 836 /[[:alpha:]]/WBZ
407 nigel 93
408 ph10 836 /[[:lower:]]/WBZ
409 nigel 93
410 ph10 836 /[[:upper:]]/WBZ
411 nigel 93
412 ph10 836 /[[:alnum:]]/WBZ
413 nigel 93
414 ph10 836 /[[:ascii:]]/WBZ
415 nigel 93
416 ph10 836 /[[:cntrl:]]/WBZ
417 nigel 93
418 ph10 836 /[[:digit:]]/WBZ
419 nigel 93
420 ph10 836 /[[:graph:]]/WBZ
421 nigel 93
422 ph10 836 /[[:print:]]/WBZ
423 nigel 93
424 ph10 836 /[[:punct:]]/WBZ
425 nigel 93
426 ph10 836 /[[:space:]]/WBZ
427 nigel 93
428 ph10 836 /[[:word:]]/WBZ
429 nigel 93
430 ph10 836 /[[:xdigit:]]/WBZ
431 nigel 93
432 ph10 836 /-- Unicode properties for \b abd \B --/
433 nigel 93
434 ph10 836 /\b...\B/8W
435     abc_
436     \x{37e}abc\x{376}
437     \x{37e}\x{376}\x{371}\x{393}\x{394}
438     !\x{c0}++\x{c1}\x{c2}
439     !\x{c0}+++++
440 nigel 93
441 ph10 836 /-- Without PCRE_UCP, non-ASCII always fail, even if < 256 --/
442 ph10 131
443 ph10 836 /\b...\B/8
444     abc_
445 ph10 131 ** Failers
446 ph10 836 \x{37e}abc\x{376}
447     \x{37e}\x{376}\x{371}\x{393}\x{394}
448     !\x{c0}++\x{c1}\x{c2}
449     !\x{c0}+++++
450 ph10 131
451 ph10 836 /-- With PCRE_UCP, non-UTF8 chars that are < 256 still check properties --/
452 ph10 141
453 ph10 836 /\b...\B/W
454     abc_
455     !\x{c0}++\x{c1}\x{c2}
456     !\x{c0}+++++
457 ph10 143
458 ph10 836 /-- Some of these are silly, but they check various combinations --/
459 ph10 175
460 ph10 836 /[[:^alpha:][:^cntrl:]]+/8WBZ
461     123
462     abc
463 ph10 175
464 ph10 836 /[[:^cntrl:][:^alpha:]]+/8WBZ
465     123
466     abc
467 ph10 175
468 ph10 836 /[[:alpha:]]+/8WBZ
469     abc
470 ph10 178
471 ph10 836 /[[:^alpha:]\S]+/8WBZ
472     123
473 ph10 341 abc
474 ph10 231
475 ph10 836 /[^\d]+/8WBZ
476     abc123
477     abc\x{123}
478     \x{660}abc
479 ph10 341
480 ph10 836 /\p{Lu}+9\p{Lu}+B\p{Lu}+b/BZ
481 ph10 341
482 ph10 836 /\p{^Lu}+9\p{^Lu}+B\p{^Lu}+b/BZ
483 ph10 341
484 ph10 836 /\P{Lu}+9\P{Lu}+B\P{Lu}+b/BZ
485 ph10 341
486 ph10 836 /\p{Han}+X\p{Greek}+\x{370}/BZ8
487 ph10 383
488 ph10 836 /\p{Xan}+!\p{Xan}+A/BZ
489 ph10 383
490 ph10 836 /\p{Xsp}+!\p{Xsp}\t/BZ
491 ph10 576
492 ph10 836 /\p{Xps}+!\p{Xps}\t/BZ
493 ph10 389
494 ph10 836 /\p{Xwd}+!\p{Xwd}_/BZ
495 ph10 398
496 ph10 836 /A+\p{N}A+\dB+\p{N}*B+\d*/WBZ
497 ph10 426
498 ph10 836 /-- These behaved oddly in Perl, so they are kept in this test --/
499 ph10 426
500 ph10 836 /(\x{23a}\x{23a}\x{23a})?\1/8i
501     \x{23a}\x{23a}\x{23a}\x{2c65}\x{2c65}
502 ph10 428
503 ph10 836 /(ȺȺȺ)?\1/8i
504     ȺȺȺⱥⱥ
505 ph10 428
506 ph10 836 /(\x{23a}\x{23a}\x{23a})?\1/8i
507     \x{23a}\x{23a}\x{23a}\x{2c65}\x{2c65}\x{2c65}
508 ph10 428
509 ph10 836 /(ȺȺȺ)?\1/8i
510     ȺȺȺⱥⱥⱥ
511 ph10 428
512 ph10 836 /(\x{23a}\x{23a}\x{23a})\1/8i
513     \x{23a}\x{23a}\x{23a}\x{2c65}\x{2c65}
514 ph10 428
515 ph10 836 /(ȺȺȺ)\1/8i
516     ȺȺȺⱥⱥ
517 ph10 428
518 ph10 836 /(\x{23a}\x{23a}\x{23a})\1/8i
519     \x{23a}\x{23a}\x{23a}\x{2c65}\x{2c65}\x{2c65}
520 ph10 428
521 ph10 836 /(ȺȺȺ)\1/8i
522     ȺȺȺⱥⱥⱥ
523 ph10 435
524 ph10 836 /(\x{2c65}\x{2c65})\1/8i
525     \x{2c65}\x{2c65}\x{23a}\x{23a}
526 ph10 473
527 ph10 836 /(ⱥⱥ)\1/8i
528     ⱥⱥȺȺ
529 ph10 473
530 ph10 836 /(\x{23a}\x{23a}\x{23a})\1Y/8i
531     X\x{23a}\x{23a}\x{23a}\x{2c65}\x{2c65}\x{2c65}YZ
532 ph10 473
533 ph10 836 /(\x{2c65}\x{2c65})\1Y/8i
534     X\x{2c65}\x{2c65}\x{23a}\x{23a}YZ
535 ph10 473
536 ph10 836 /-- --/
537 ph10 553
538 ph10 836 /-- These scripts weren't yet in Perl when I added Unicode 6.0.0 to PCRE --/
539 ph10 553
540 ph10 836 /^[\p{Batak}]/8
541     \x{1bc0}
542     \x{1bff}
543 ph10 637 ** Failers
544 ph10 836 \x{1bf4}
545 ph10 637
546 ph10 836 /^[\p{Brahmi}]/8
547     \x{11000}
548     \x{1106f}
549 ph10 637 ** Failers
550 ph10 836 \x{1104e}
551 ph10 637
552 ph10 836 /^[\p{Mandaic}]/8
553     \x{840}
554     \x{85e}
555 ph10 637 ** Failers
556 ph10 836 \x{85c}
557     \x{85d}
558 ph10 637
559 ph10 836 /-- --/
560 ph10 637
561 ph10 836 /(\X*)(.)/s8
562     A\x{300}
563 ph10 637
564 ph10 836 /^S(\X*)e(\X*)$/8
565     Stéréo
566    
567     /^\X/8
568     ́réo
569 ph10 637
570 ph10 836 /^a\X41z/<JS>
571     aX41z
572     *** Failers
573     aAz
574 ph10 637
575 ph10 836 /(?<=ab\Cde)X/8
576 ph10 637
577 ph10 935 /\X/
578     a\P
579     a\P\P
580    
581     /\Xa/
582     aa\P
583     aa\P\P
584    
585     /\X{2}/
586     aa\P
587     aa\P\P
588    
589     /\X+a/
590     a\P
591     aa\P
592     aa\P\P
593    
594     /\X+?a/
595     a\P
596     ab\P
597     aa\P
598     aa\P\P
599     aba\P
600 ph10 942
601     /-- These Unicode 6.1.0 scripts are not known to Perl. --/
602 ph10 935
603 ph10 942 /\p{Chakma}\d/8W
604     \x{11100}\x{1113c}
605    
606     /\p{Takri}\d/8W
607     \x{11680}\x{116c0}
608    
609 ph10 973 /^\X/8
610     A\P
611     A\P\P
612     A\x{300}\x{301}\P
613     A\x{300}\x{301}\P\P
614     A\x{301}\P
615     A\x{301}\P\P
616    
617     /^\X{2,3}/8
618     A\P
619     A\P\P
620     AA\P
621     AA\P\P
622     A\x{300}\x{301}\P
623     A\x{300}\x{301}\P\P
624     A\x{300}\x{301}A\x{300}\x{301}\P
625     A\x{300}\x{301}A\x{300}\x{301}\P\P
626    
627     /^\X{2}/8
628     AA\P
629     AA\P\P
630     A\x{300}\x{301}A\x{300}\x{301}\P
631     A\x{300}\x{301}A\x{300}\x{301}\P\P
632    
633     /^\X+/8
634     AA\P
635     AA\P\P
636    
637     /^\X+?Z/8
638     AA\P
639     AA\P\P
640    
641 ph10 1046 /A\x{3a3}B/8iDZ
642    
643     /\x{3a3}B/8iDZ
644    
645     /[\x{3a3}]/8iBZ
646    
647     /[^\x{3a3}]/8iBZ
648    
649     /[\x{3a3}]+/8iBZ
650    
651     /[^\x{3a3}]+/8iBZ
652    
653     /a*\x{3a3}/8iBZ
654    
655     /\x{3a3}+a/8iBZ
656    
657     /\x{3a3}*\x{3c2}/8iBZ
658    
659     /\x{3a3}{3}/8i+
660     \x{3a3}\x{3c3}\x{3c2}\x{3a3}\x{3c3}\x{3c2}
661    
662     /\x{3a3}{2,4}/8i+
663     \x{3a3}\x{3c3}\x{3c2}\x{3a3}\x{3c3}\x{3c2}
664    
665     /\x{3a3}{2,4}?/8i+
666     \x{3a3}\x{3c3}\x{3c2}\x{3a3}\x{3c3}\x{3c2}
667    
668     /\x{3a3}+./8i+
669     \x{3a3}\x{3c3}\x{3c2}\x{3a3}\x{3c3}\x{3c2}
670    
671     /\x{3a3}++./8i+
672     ** Failers
673     \x{3a3}\x{3c3}\x{3c2}\x{3a3}\x{3c3}\x{3c2}
674    
675 ph10 1048 /\x{3a3}*\x{3c2}/8iBZ
676    
677     /[^\x{3a3}]*\x{3c2}/8iBZ
678    
679     /[^a]*\x{3c2}/8iBZ
680    
681 ph10 1218 /ist/8iBZ
682     ikt
683    
684     /is+t/8i
685     iSs\x{17f}t
686     ikt
687    
688     /is+?t/8i
689     ikt
690    
691     /is?t/8i
692     ikt
693    
694     /is{2}t/8i
695     iskt
696 ph10 1260
697     /-- This property is a PCRE special --/
698 ph10 1218
699 ph10 1260 /^\p{Xuc}/8
700     $abc
701     @abc
702     `abc
703     \x{1234}abc
704     ** Failers
705     abc
706    
707     /^\p{Xuc}+/8
708     $@`\x{a0}\x{1234}\x{e000}**
709     ** Failers
710     \x{9f}
711    
712     /^\p{Xuc}+?/8
713     $@`\x{a0}\x{1234}\x{e000}**
714     ** Failers
715     \x{9f}
716    
717     /^\p{Xuc}+?\*/8
718     $@`\x{a0}\x{1234}\x{e000}**
719     ** Failers
720     \x{9f}
721    
722     /^\p{Xuc}++/8
723     $@`\x{a0}\x{1234}\x{e000}**
724     ** Failers
725     \x{9f}
726    
727     /^\p{Xuc}{3,5}/8
728     $@`\x{a0}\x{1234}\x{e000}**
729     ** Failers
730     \x{9f}
731    
732     /^\p{Xuc}{3,5}?/8
733     $@`\x{a0}\x{1234}\x{e000}**
734     ** Failers
735     \x{9f}
736    
737     /^[\p{Xuc}]/8
738     $@`\x{a0}\x{1234}\x{e000}**
739     ** Failers
740     \x{9f}
741    
742     /^[\p{Xuc}]+/8
743     $@`\x{a0}\x{1234}\x{e000}**
744     ** Failers
745     \x{9f}
746    
747     /^\P{Xuc}/8
748     abc
749     ** Failers
750     $abc
751     @abc
752     `abc
753     \x{1234}abc
754    
755     /^[\P{Xuc}]/8
756     abc
757     ** Failers
758     $abc
759     @abc
760     `abc
761     \x{1234}abc
762 ph10 1363
763     /-- Some auto-possessification tests --/
764 ph10 1260
765 ph10 1363 /\pN+\z/BZ
766    
767     /\PN+\z/BZ
768    
769     /\pN+/BZ
770    
771     /\PN+/BZ
772    
773     /\p{Any}+\p{Any} \p{Any}+\P{Any} \p{Any}+\p{L&} \p{Any}+\p{L} \p{Any}+\p{Lu} \p{Any}+\p{Han} \p{Any}+\p{Xan} \p{Any}+\p{Xsp} \p{Any}+\p{Xps} \p{Xwd}+\p{Any} \p{Any}+\p{Xuc}/BWZx
774    
775     /\p{L&}+\p{Any} \p{L&}+\p{L&} \P{L&}+\p{L&} \p{L&}+\p{L} \p{L&}+\p{Lu} \p{L&}+\p{Han} \p{L&}+\p{Xan} \p{L&}+\P{Xan} \p{L&}+\p{Xsp} \p{L&}+\p{Xps} \p{Xwd}+\p{L&} \p{L&}+\p{Xuc}/BWZx
776    
777     /\p{N}+\p{Any} \p{N}+\p{L&} \p{N}+\p{L} \p{N}+\P{L} \p{N}+\P{N} \p{N}+\p{Lu} \p{N}+\p{Han} \p{N}+\p{Xan} \p{N}+\p{Xsp} \p{N}+\p{Xps} \p{Xwd}+\p{N} \p{N}+\p{Xuc}/BWZx
778    
779     /\p{Lu}+\p{Any} \p{Lu}+\p{L&} \p{Lu}+\p{L} \p{Lu}+\p{Lu} \P{Lu}+\p{Lu} \p{Lu}+\p{Nd} \p{Lu}+\P{Nd} \p{Lu}+\p{Han} \p{Lu}+\p{Xan} \p{Lu}+\p{Xsp} \p{Lu}+\p{Xps} \p{Xwd}+\p{Lu} \p{Lu}+\p{Xuc}/BWZx
780    
781     /\p{Han}+\p{Lu} \p{Han}+\p{L&} \p{Han}+\p{L} \p{Han}+\p{Lu} \p{Han}+\p{Arabic} \p{Arabic}+\p{Arabic} \p{Han}+\p{Xan} \p{Han}+\p{Xsp} \p{Han}+\p{Xps} \p{Xwd}+\p{Han} \p{Han}+\p{Xuc}/BWZx
782    
783     /\p{Xan}+\p{Any} \p{Xan}+\p{L&} \P{Xan}+\p{L&} \p{Xan}+\p{L} \p{Xan}+\p{Lu} \p{Xan}+\p{Han} \p{Xan}+\p{Xan} \p{Xan}+\P{Xan} \p{Xan}+\p{Xsp} \p{Xan}+\p{Xps} \p{Xwd}+\p{Xan} \p{Xan}+\p{Xuc}/BWZx
784    
785     /\p{Xsp}+\p{Any} \p{Xsp}+\p{L&} \p{Xsp}+\p{L} \p{Xsp}+\p{Lu} \p{Xsp}+\p{Han} \p{Xsp}+\p{Xan} \p{Xsp}+\p{Xsp} \P{Xsp}+\p{Xsp} \p{Xsp}+\p{Xps} \p{Xwd}+\p{Xsp} \p{Xsp}+\p{Xuc}/BWZx
786    
787     /\p{Xwd}+\p{Any} \p{Xwd}+\p{L&} \p{Xwd}+\p{L} \p{Xwd}+\p{Lu} \p{Xwd}+\p{Han} \p{Xwd}+\p{Xan} \p{Xwd}+\p{Xsp} \p{Xwd}+\p{Xps} \p{Xwd}+\p{Xwd} \p{Xwd}+\P{Xwd} \p{Xwd}+\p{Xuc}/BWZx
788    
789     /\p{Xuc}+\p{Any} \p{Xuc}+\p{L&} \p{Xuc}+\p{L} \p{Xuc}+\p{Lu} \p{Xuc}+\p{Han} \p{Xuc}+\p{Xan} \p{Xuc}+\p{Xsp} \p{Xuc}+\p{Xps} \p{Xwd}+\p{Xuc} \p{Xuc}+\p{Xuc} \p{Xuc}+\P{Xuc}/BWZx
790    
791     /\p{N}+\p{Ll} \p{N}+\p{Nd} \p{N}+\P{Nd}/BWZx
792    
793     /\p{Xan}+\p{L} \p{Xan}+\p{N} \p{Xan}+\p{C} \p{Xan}+\P{L} \P{Xan}+\p{N} \p{Xan}+\P{C}/BWZx
794    
795     /\p{L}+\p{Xan} \p{N}+\p{Xan} \p{C}+\p{Xan} \P{L}+\p{Xan} \p{N}+\p{Xan} \P{C}+\p{Xan} \p{L}+\P{Xan}/BWZx
796    
797     /\p{Xan}+\p{Lu} \p{Xan}+\p{Nd} \p{Xan}+\p{Cc} \p{Xan}+\P{Ll} \P{Xan}+\p{No} \p{Xan}+\P{Cf}/BWZx
798    
799     /\p{Lu}+\p{Xan} \p{Nd}+\p{Xan} \p{Cs}+\p{Xan} \P{Lt}+\p{Xan} \p{Nl}+\p{Xan} \P{Cc}+\p{Xan} \p{Lt}+\P{Xan}/BWZx
800    
801     /\w+\p{P} \w+\p{Po} \w+\s \p{Xan}+\s \s+\p{Xan} \s+\w/BWZx
802    
803     /\w+\P{P} \W+\p{Po} \w+\S \P{Xan}+\s \s+\P{Xan} \s+\W/BWZx
804    
805     /\w+\p{Po} \w+\p{Pc} \W+\p{Po} \W+\p{Pc} \w+\P{Po} \w+\P{Pc}/BWZx
806    
807     /\p{Nl}+\p{Xan} \P{Nl}+\p{Xan} \p{Nl}+\P{Xan} \P{Nl}+\P{Xan}/BWZx
808    
809     /\p{Xan}+\p{Nl} \P{Xan}+\p{Nl} \p{Xan}+\P{Nl} \P{Xan}+\P{Nl}/BWZx
810    
811     /\p{Xan}+\p{Nd} \P{Xan}+\p{Nd} \p{Xan}+\P{Nd} \P{Xan}+\P{Nd}/BWZx
812    
813     /-- End auto-possessification tests --/
814    
815 ph10 1372 /\w+/8CWBZ
816     abcd
817    
818 ph10 1380 /[\p{N}]?+/BZO
819    
820     /[\p{L}ab]{2,3}+/BZO
821    
822 ph10 1387 /\D+\X \d+\X \S+\X \s+\X \W+\X \w+\X \C+\X \R+\X \H+\X \h+\X \V+\X \v+\X a+\X \n+\X .+\X/BZx
823    
824     /.+\X/BZxs
825    
826     /\X+$/BZxm
827    
828     /\X+\D \X+\d \X+\S \X+\s \X+\W \X+\w \X+. \X+\C \X+\R \X+\H \X+\h \X+\V \X+\v \X+\X \X+\Z \X+\z \X+$/BZx
829    
830     /\d+\s{0,5}=\s*\S?=\w{0,4}\W*/8WBZ
831    
832 ph10 1438 /[RST]+/8iWBZ
833    
834     /[R-T]+/8iWBZ
835    
836     /[Q-U]+/8iWBZ
837    
838 ph10 450 /-- End of testinput7 --/

Properties

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12