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

Contents of /code/trunk/testdata/testinput5

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1370 - (show annotations)
Wed Oct 9 10:18:26 2013 UTC (6 years, 4 months ago) by ph10
File size: 11673 byte(s)
Error occurred while calculating annotation data.
Add \o{} and tidy up \x{} handling. Minor update to RunTest.
1 /-- This set of tests checks the API, internals, and non-Perl stuff for UTF
2 support, excluding Unicode properties. However, tests that give different
3 results in 8-bit and 16-bit modes are excluded (see tests 16 and 17). --/
4
5 /\x{110000}/8DZ
6
7 /\o{4200000}/8DZ
8
9 /\x{ffffffff}/8
10
11 /\o{37777777777}/8
12
13 /\x{100000000}/8
14
15 /\o{77777777777}/8
16
17 /\x{d800}/8
18
19 /\o{154000}/8
20
21 /\x{dfff}/8
22
23 /\o{157777}/8
24
25 /\x{d7ff}/8
26
27 /\o{153777}/8
28
29 /\x{e000}/8
30
31 /\o{170000}/8
32
33 /^\x{100}a\x{1234}/8
34 \x{100}a\x{1234}bcd
35
36 /\x{0041}\x{2262}\x{0391}\x{002e}/DZ8
37 \x{0041}\x{2262}\x{0391}\x{002e}
38
39 /.{3,5}X/DZ8
40 \x{212ab}\x{212ab}\x{212ab}\x{861}X
41
42 /.{3,5}?/DZ8
43 \x{212ab}\x{212ab}\x{212ab}\x{861}
44
45 /(?<=\C)X/8
46 Should produce an error diagnostic
47
48 /^[ab]/8DZ
49 bar
50 *** Failers
51 c
52 \x{ff}
53 \x{100}
54
55 /^[^ab]/8DZ
56 c
57 \x{ff}
58 \x{100}
59 *** Failers
60 aaa
61
62 /\x{100}*(\d+|"(?1)")/8
63 1234
64 "1234"
65 \x{100}1234
66 "\x{100}1234"
67 \x{100}\x{100}12ab
68 \x{100}\x{100}"12"
69 *** Failers
70 \x{100}\x{100}abcd
71
72 /\x{100}*/8DZ
73
74 /a\x{100}*/8DZ
75
76 /ab\x{100}*/8DZ
77
78 /\x{100}*A/8DZ
79 A
80
81 /\x{100}*\d(?R)/8DZ
82
83 /[Z\x{100}]/8DZ
84 Z\x{100}
85 \x{100}
86 \x{100}Z
87 *** Failers
88
89 /[\x{200}-\x{100}]/8
90
91 /[Ā-Ą]/8
92 \x{100}
93 \x{104}
94 *** Failers
95 \x{105}
96 \x{ff}
97
98 /[z-\x{100}]/8DZ
99
100 /[z\Qa-d]Ā\E]/8DZ
101 \x{100}
102 Ā
103
104 /[\xFF]/DZ
105 >\xff<
106
107 /[^\xFF]/DZ
108
109 /[Ä-Ü]/8
110 Ö # Matches without Study
111 \x{d6}
112
113 /[Ä-Ü]/8S
114 Ö <-- Same with Study
115 \x{d6}
116
117 /[\x{c4}-\x{dc}]/8
118 Ö # Matches without Study
119 \x{d6}
120
121 /[\x{c4}-\x{dc}]/8S
122 Ö <-- Same with Study
123 \x{d6}
124
125 /[^\x{100}]abc(xyz(?1))/8DZ
126
127 /[ab\x{100}]abc(xyz(?1))/8DZ
128
129 /(\x{100}(b(?2)c))?/DZ8
130
131 /(\x{100}(b(?2)c)){0,2}/DZ8
132
133 /(\x{100}(b(?1)c))?/DZ8
134
135 /(\x{100}(b(?1)c)){0,2}/DZ8
136
137 /\W/8
138 A.B
139 A\x{100}B
140
141 /\w/8
142 \x{100}X
143
144 /^\ሴ/8DZ
145
146 /\x{100}*\d/8DZ
147
148 /\x{100}*\s/8DZ
149
150 /\x{100}*\w/8DZ
151
152 /\x{100}*\D/8DZ
153
154 /\x{100}*\S/8DZ
155
156 /\x{100}*\W/8DZ
157
158 /()()()()()()()()()()
159 ()()()()()()()()()()
160 ()()()()()()()()()()
161 ()()()()()()()()()()
162 A (x) (?41) B/8x
163 AxxB
164
165 /^[\x{100}\E-\Q\E\x{150}]/BZ8
166
167 /^[\QĀ\E-\QŐ\E]/BZ8
168
169 /^abc./mgx8<any>
170 abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x{0085}abc7 \x{2028}abc8 \x{2029}abc9 JUNK
171
172 /abc.$/mgx8<any>
173 abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x{0085} abc7\x{2028} abc8\x{2029} abc9
174
175 /^a\Rb/8<bsr_unicode>
176 a\nb
177 a\rb
178 a\r\nb
179 a\x0bb
180 a\x0cb
181 a\x{85}b
182 a\x{2028}b
183 a\x{2029}b
184 ** Failers
185 a\n\rb
186
187 /^a\R*b/8<bsr_unicode>
188 ab
189 a\nb
190 a\rb
191 a\r\nb
192 a\x0bb
193 a\x0c\x{2028}\x{2029}b
194 a\x{85}b
195 a\n\rb
196 a\n\r\x{85}\x0cb
197
198 /^a\R+b/8<bsr_unicode>
199 a\nb
200 a\rb
201 a\r\nb
202 a\x0bb
203 a\x0c\x{2028}\x{2029}b
204 a\x{85}b
205 a\n\rb
206 a\n\r\x{85}\x0cb
207 ** Failers
208 ab
209
210 /^a\R{1,3}b/8<bsr_unicode>
211 a\nb
212 a\n\rb
213 a\n\r\x{85}b
214 a\r\n\r\nb
215 a\r\n\r\n\r\nb
216 a\n\r\n\rb
217 a\n\n\r\nb
218 ** Failers
219 a\n\n\n\rb
220 a\r
221
222 /\H\h\V\v/8
223 X X\x0a
224 X\x09X\x0b
225 ** Failers
226 \x{a0} X\x0a
227
228 /\H*\h+\V?\v{3,4}/8
229 \x09\x20\x{a0}X\x0a\x0b\x0c\x0d\x0a
230 \x09\x20\x{a0}\x0a\x0b\x0c\x0d\x0a
231 \x09\x20\x{a0}\x0a\x0b\x0c
232 ** Failers
233 \x09\x20\x{a0}\x0a\x0b
234
235 /\H\h\V\v/8
236 \x{3001}\x{3000}\x{2030}\x{2028}
237 X\x{180e}X\x{85}
238 ** Failers
239 \x{2009} X\x0a
240
241 /\H*\h+\V?\v{3,4}/8
242 \x{1680}\x{180e}\x{2007}X\x{2028}\x{2029}\x0c\x0d\x0a
243 \x09\x{205f}\x{a0}\x0a\x{2029}\x0c\x{2028}\x0a
244 \x09\x20\x{202f}\x0a\x0b\x0c
245 ** Failers
246 \x09\x{200a}\x{a0}\x{2028}\x0b
247
248 /[\h]/8BZ
249 >\x{1680}
250
251 /[\h]{3,}/8BZ
252 >\x{1680}\x{180e}\x{2000}\x{2003}\x{200a}\x{202f}\x{205f}\x{3000}<
253
254 /[\v]/8BZ
255
256 /[\H]/8BZ
257
258 /[\V]/8BZ
259
260 /.*$/8<any>
261 \x{1ec5}
262
263 /a\Rb/I8<bsr_anycrlf>
264 a\rb
265 a\nb
266 a\r\nb
267 ** Failers
268 a\x{85}b
269 a\x0bb
270
271 /a\Rb/I8<bsr_unicode>
272 a\rb
273 a\nb
274 a\r\nb
275 a\x{85}b
276 a\x0bb
277 ** Failers
278 a\x{85}b\<bsr_anycrlf>
279 a\x0bb\<bsr_anycrlf>
280
281 /a\R?b/I8<bsr_anycrlf>
282 a\rb
283 a\nb
284 a\r\nb
285 ** Failers
286 a\x{85}b
287 a\x0bb
288
289 /a\R?b/I8<bsr_unicode>
290 a\rb
291 a\nb
292 a\r\nb
293 a\x{85}b
294 a\x0bb
295 ** Failers
296 a\x{85}b\<bsr_anycrlf>
297 a\x0bb\<bsr_anycrlf>
298
299 /.*a.*=.b.*/8<ANY>
300 QQQ\x{2029}ABCaXYZ=!bPQR
301 ** Failers
302 a\x{2029}b
303 \x61\xe2\x80\xa9\x62
304
305 /[[:a\x{100}b:]]/8
306
307 /a[^]b/<JS>8
308 a\x{1234}b
309 a\nb
310 ** Failers
311 ab
312
313 /a[^]+b/<JS>8
314 aXb
315 a\nX\nX\x{1234}b
316 ** Failers
317 ab
318
319 /(\x{de})\1/
320 \x{de}\x{de}
321
322 /X/8f<any>
323 A\x{1ec5}ABCXYZ
324
325 /Xa{2,4}b/8
326 X\P
327 Xa\P
328 Xaa\P
329 Xaaa\P
330 Xaaaa\P
331
332 /Xa{2,4}?b/8
333 X\P
334 Xa\P
335 Xaa\P
336 Xaaa\P
337 Xaaaa\P
338
339 /Xa{2,4}+b/8
340 X\P
341 Xa\P
342 Xaa\P
343 Xaaa\P
344 Xaaaa\P
345
346 /X\x{123}{2,4}b/8
347 X\P
348 X\x{123}\P
349 X\x{123}\x{123}\P
350 X\x{123}\x{123}\x{123}\P
351 X\x{123}\x{123}\x{123}\x{123}\P
352
353 /X\x{123}{2,4}?b/8
354 X\P
355 X\x{123}\P
356 X\x{123}\x{123}\P
357 X\x{123}\x{123}\x{123}\P
358 X\x{123}\x{123}\x{123}\x{123}\P
359
360 /X\x{123}{2,4}+b/8
361 X\P
362 X\x{123}\P
363 X\x{123}\x{123}\P
364 X\x{123}\x{123}\x{123}\P
365 X\x{123}\x{123}\x{123}\x{123}\P
366
367 /X\x{123}{2,4}b/8
368 Xx\P
369 X\x{123}x\P
370 X\x{123}\x{123}x\P
371 X\x{123}\x{123}\x{123}x\P
372 X\x{123}\x{123}\x{123}\x{123}x\P
373
374 /X\x{123}{2,4}?b/8
375 Xx\P
376 X\x{123}x\P
377 X\x{123}\x{123}x\P
378 X\x{123}\x{123}\x{123}x\P
379 X\x{123}\x{123}\x{123}\x{123}x\P
380
381 /X\x{123}{2,4}+b/8
382 Xx\P
383 X\x{123}x\P
384 X\x{123}\x{123}x\P
385 X\x{123}\x{123}\x{123}x\P
386 X\x{123}\x{123}\x{123}\x{123}x\P
387
388 /X\d{2,4}b/8
389 X\P
390 X3\P
391 X33\P
392 X333\P
393 X3333\P
394
395 /X\d{2,4}?b/8
396 X\P
397 X3\P
398 X33\P
399 X333\P
400 X3333\P
401
402 /X\d{2,4}+b/8
403 X\P
404 X3\P
405 X33\P
406 X333\P
407 X3333\P
408
409 /X\D{2,4}b/8
410 X\P
411 Xa\P
412 Xaa\P
413 Xaaa\P
414 Xaaaa\P
415
416 /X\D{2,4}?b/8
417 X\P
418 Xa\P
419 Xaa\P
420 Xaaa\P
421 Xaaaa\P
422
423 /X\D{2,4}+b/8
424 X\P
425 Xa\P
426 Xaa\P
427 Xaaa\P
428 Xaaaa\P
429
430 /X\D{2,4}b/8
431 X\P
432 X\x{123}\P
433 X\x{123}\x{123}\P
434 X\x{123}\x{123}\x{123}\P
435 X\x{123}\x{123}\x{123}\x{123}\P
436
437 /X\D{2,4}?b/8
438 X\P
439 X\x{123}\P
440 X\x{123}\x{123}\P
441 X\x{123}\x{123}\x{123}\P
442 X\x{123}\x{123}\x{123}\x{123}\P
443
444 /X\D{2,4}+b/8
445 X\P
446 X\x{123}\P
447 X\x{123}\x{123}\P
448 X\x{123}\x{123}\x{123}\P
449 X\x{123}\x{123}\x{123}\x{123}\P
450
451 /X[abc]{2,4}b/8
452 X\P
453 Xa\P
454 Xaa\P
455 Xaaa\P
456 Xaaaa\P
457
458 /X[abc]{2,4}?b/8
459 X\P
460 Xa\P
461 Xaa\P
462 Xaaa\P
463 Xaaaa\P
464
465 /X[abc]{2,4}+b/8
466 X\P
467 Xa\P
468 Xaa\P
469 Xaaa\P
470 Xaaaa\P
471
472 /X[abc\x{123}]{2,4}b/8
473 X\P
474 X\x{123}\P
475 X\x{123}\x{123}\P
476 X\x{123}\x{123}\x{123}\P
477 X\x{123}\x{123}\x{123}\x{123}\P
478
479 /X[abc\x{123}]{2,4}?b/8
480 X\P
481 X\x{123}\P
482 X\x{123}\x{123}\P
483 X\x{123}\x{123}\x{123}\P
484 X\x{123}\x{123}\x{123}\x{123}\P
485
486 /X[abc\x{123}]{2,4}+b/8
487 X\P
488 X\x{123}\P
489 X\x{123}\x{123}\P
490 X\x{123}\x{123}\x{123}\P
491 X\x{123}\x{123}\x{123}\x{123}\P
492
493 /X[^a]{2,4}b/8
494 X\P
495 Xz\P
496 Xzz\P
497 Xzzz\P
498 Xzzzz\P
499
500 /X[^a]{2,4}?b/8
501 X\P
502 Xz\P
503 Xzz\P
504 Xzzz\P
505 Xzzzz\P
506
507 /X[^a]{2,4}+b/8
508 X\P
509 Xz\P
510 Xzz\P
511 Xzzz\P
512 Xzzzz\P
513
514 /X[^a]{2,4}b/8
515 X\P
516 X\x{123}\P
517 X\x{123}\x{123}\P
518 X\x{123}\x{123}\x{123}\P
519 X\x{123}\x{123}\x{123}\x{123}\P
520
521 /X[^a]{2,4}?b/8
522 X\P
523 X\x{123}\P
524 X\x{123}\x{123}\P
525 X\x{123}\x{123}\x{123}\P
526 X\x{123}\x{123}\x{123}\x{123}\P
527
528 /X[^a]{2,4}+b/8
529 X\P
530 X\x{123}\P
531 X\x{123}\x{123}\P
532 X\x{123}\x{123}\x{123}\P
533 X\x{123}\x{123}\x{123}\x{123}\P
534
535 /(Y)X\1{2,4}b/8
536 YX\P
537 YXY\P
538 YXYY\P
539 YXYYY\P
540 YXYYYY\P
541
542 /(Y)X\1{2,4}?b/8
543 YX\P
544 YXY\P
545 YXYY\P
546 YXYYY\P
547 YXYYYY\P
548
549 /(Y)X\1{2,4}+b/8
550 YX\P
551 YXY\P
552 YXYY\P
553 YXYYY\P
554 YXYYYY\P
555
556 /(\x{123})X\1{2,4}b/8
557 \x{123}X\P
558 \x{123}X\x{123}\P
559 \x{123}X\x{123}\x{123}\P
560 \x{123}X\x{123}\x{123}\x{123}\P
561 \x{123}X\x{123}\x{123}\x{123}\x{123}\P
562
563 /(\x{123})X\1{2,4}?b/8
564 \x{123}X\P
565 \x{123}X\x{123}\P
566 \x{123}X\x{123}\x{123}\P
567 \x{123}X\x{123}\x{123}\x{123}\P
568 \x{123}X\x{123}\x{123}\x{123}\x{123}\P
569
570 /(\x{123})X\1{2,4}+b/8
571 \x{123}X\P
572 \x{123}X\x{123}\P
573 \x{123}X\x{123}\x{123}\P
574 \x{123}X\x{123}\x{123}\x{123}\P
575 \x{123}X\x{123}\x{123}\x{123}\x{123}\P
576
577 /\bthe cat\b/8
578 the cat\P
579 the cat\P\P
580
581 /abcd*/8
582 xxxxabcd\P
583 xxxxabcd\P\P
584
585 /abcd*/i8
586 xxxxabcd\P
587 xxxxabcd\P\P
588 XXXXABCD\P
589 XXXXABCD\P\P
590
591 /abc\d*/8
592 xxxxabc1\P
593 xxxxabc1\P\P
594
595 /(a)bc\1*/8
596 xxxxabca\P
597 xxxxabca\P\P
598
599 /abc[de]*/8
600 xxxxabcde\P
601 xxxxabcde\P\P
602
603 /X\W{3}X/8
604 \PX
605
606 /\sxxx\s/8T1
607 AB\x{85}xxx\x{a0}XYZ
608 AB\x{a0}xxx\x{85}XYZ
609
610 /\S \S/8T1
611 \x{a2} \x{84}
612
613 'A#хц'8x<any>BZ
614
615 'A#хц
616 PQ'8x<any>BZ
617
618 /a+#хaa
619 z#XX?/8x<any>BZ
620
621 /a+#хaa
622 z#х?/8x<any>BZ
623
624 /\g{A}xxx#bXX(?'A'123) (?'A'456)/8x<any>BZ
625
626 /\g{A}xxx#bх(?'A'123) (?'A'456)/8x<any>BZ
627
628 /^\cģ/8
629
630 /(\R*)(.)/s8
631 \r\n
632 \r\r\n\n\r
633 \r\r\n\n\r\n
634
635 /(\R)*(.)/s8
636 \r\n
637 \r\r\n\n\r
638 \r\r\n\n\r\n
639
640 /[^\x{1234}]+/iS8I
641
642 /[^\x{1234}]+?/iS8I
643
644 /[^\x{1234}]++/iS8I
645
646 /[^\x{1234}]{2}/iS8I
647
648 //<bsr_anycrlf><bsr_unicode>
649
650 /f.*/
651 \P\Pfor
652
653 /f.*/s
654 \P\Pfor
655
656 /f.*/8
657 \P\Pfor
658
659 /f.*/8s
660 \P\Pfor
661
662 /\x{d7ff}\x{e000}/8
663
664 /\x{d800}/8
665
666 /\x{dfff}/8
667
668 /\h+/8
669 \x{1681}\x{200b}\x{1680}\x{2000}\x{202f}\x{3000}
670 \x{3001}\x{2fff}\x{200a}\x{a0}\x{2000}
671
672 /[\h\x{e000}]+/8BZ
673 \x{1681}\x{200b}\x{1680}\x{2000}\x{202f}\x{3000}
674 \x{3001}\x{2fff}\x{200a}\x{a0}\x{2000}
675
676 /\H+/8
677 \x{1680}\x{180e}\x{167f}\x{1681}\x{180d}\x{180f}
678 \x{2000}\x{200a}\x{1fff}\x{200b}
679 \x{202f}\x{205f}\x{202e}\x{2030}\x{205e}\x{2060}
680 \x{a0}\x{3000}\x{9f}\x{a1}\x{2fff}\x{3001}
681
682 /[\H\x{d7ff}]+/8BZ
683 \x{1680}\x{180e}\x{167f}\x{1681}\x{180d}\x{180f}
684 \x{2000}\x{200a}\x{1fff}\x{200b}
685 \x{202f}\x{205f}\x{202e}\x{2030}\x{205e}\x{2060}
686 \x{a0}\x{3000}\x{9f}\x{a1}\x{2fff}\x{3001}
687
688 /\v+/8
689 \x{2027}\x{2030}\x{2028}\x{2029}
690 \x09\x0e\x{84}\x{86}\x{85}\x0a\x0b\x0c\x0d
691
692 /[\v\x{e000}]+/8BZ
693 \x{2027}\x{2030}\x{2028}\x{2029}
694 \x09\x0e\x{84}\x{86}\x{85}\x0a\x0b\x0c\x0d
695
696 /\V+/8
697 \x{2028}\x{2029}\x{2027}\x{2030}
698 \x{85}\x0a\x0b\x0c\x0d\x09\x0e\x{84}\x{86}
699
700 /[\V\x{d7ff}]+/8BZ
701 \x{2028}\x{2029}\x{2027}\x{2030}
702 \x{85}\x0a\x0b\x0c\x0d\x09\x0e\x{84}\x{86}
703
704 /\R+/8<bsr_unicode>
705 \x{2027}\x{2030}\x{2028}\x{2029}
706 \x09\x0e\x{84}\x{86}\x{85}\x0a\x0b\x0c\x0d
707
708 /(..)\1/8
709 ab\P
710 aba\P
711 abab\P
712
713 /(..)\1/8i
714 ab\P
715 abA\P
716 aBAb\P
717
718 /(..)\1{2,}/8
719 ab\P
720 aba\P
721 abab\P
722 ababa\P
723 ababab\P
724 ababab\P\P
725 abababa\P
726 abababa\P\P
727
728 /(..)\1{2,}/8i
729 ab\P
730 aBa\P
731 aBAb\P
732 AbaBA\P
733 abABAb\P
734 aBAbaB\P\P
735 abABabA\P
736 abaBABa\P\P
737
738 /(..)\1{2,}?x/8i
739 ab\P
740 abA\P
741 aBAb\P
742 abaBA\P
743 abAbaB\P
744 abaBabA\P
745 abAbABaBx\P
746
747 /./8<CRLF>
748 \r\P
749 \r\P\P
750
751 /.{2,3}/8<CRLF>
752 \r\P
753 \r\P\P
754 \r\r\P
755 \r\r\P\P
756 \r\r\r\P
757 \r\r\r\P\P
758
759 /.{2,3}?/8<CRLF>
760 \r\P
761 \r\P\P
762 \r\r\P
763 \r\r\P\P
764 \r\r\r\P
765 \r\r\r\P\P
766
767 /[^\x{100}][^\x{1234}][^\x{ffff}][^\x{10000}][^\x{10ffff}]/8BZ
768
769 /[^\x{100}][^\x{1234}][^\x{ffff}][^\x{10000}][^\x{10ffff}]/8BZi
770
771 /[^\x{100}]*[^\x{10000}]+[^\x{10ffff}]??[^\x{8000}]{4,}[^\x{7fff}]{2,9}?[^\x{fffff}]{5,6}+/8BZ
772
773 /[^\x{100}]*[^\x{10000}]+[^\x{10ffff}]??[^\x{8000}]{4,}[^\x{7fff}]{2,9}?[^\x{fffff}]{5,6}+/8BZi
774
775 /(?<=\x{1234}\x{1234})\bxy/I8
776
777 /(?<!^)ETA/8
778 ETA
779
780 /\u0100/<JS>8BZ
781
782 /[\u0100-\u0200]/<JS>8BZ
783
784 /\ud800/<JS>8
785
786 /-- End of testinput5 --/

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5