/[pcre]/code/trunk/testdata/testoutput11-32
ViewVC logotype

Contents of /code/trunk/testdata/testoutput11-32

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1348 - (show annotations)
Fri Jul 5 10:38:37 2013 UTC (6 years, 2 months ago) by ph10
File size: 19325 byte(s)
Implement PCRE_INFO_MATCH_EMPTY and fix 2 bugs concerned with scanning for 
empty string matching.
1 /-- These are a few representative patterns whose lengths and offsets are to be
2 shown when the link size is 2. This is just a doublecheck test to ensure the
3 sizes don't go horribly wrong when something is changed. The pattern contents
4 are all themselves checked in other tests. Unicode, including property support,
5 is required for these tests. --/
6
7 /((?i)b)/BM
8 Memory allocation (code space): 48
9 ------------------------------------------------------------------
10 0 9 Bra
11 2 5 CBra 1
12 5 /i b
13 7 5 Ket
14 9 9 Ket
15 11 End
16 ------------------------------------------------------------------
17
18 /(?s)(.*X|^B)/BM
19 Memory allocation (code space): 76
20 ------------------------------------------------------------------
21 0 16 Bra
22 2 7 CBra 1
23 5 AllAny*
24 7 X
25 9 5 Alt
26 11 ^
27 12 B
28 14 12 Ket
29 16 16 Ket
30 18 End
31 ------------------------------------------------------------------
32
33 /(?s:.*X|^B)/BM
34 Memory allocation (code space): 72
35 ------------------------------------------------------------------
36 0 15 Bra
37 2 6 Bra
38 4 AllAny*
39 6 X
40 8 5 Alt
41 10 ^
42 11 B
43 13 11 Ket
44 15 15 Ket
45 17 End
46 ------------------------------------------------------------------
47
48 /^[[:alnum:]]/BM
49 Memory allocation (code space): 60
50 ------------------------------------------------------------------
51 0 12 Bra
52 2 ^
53 3 [0-9A-Za-z]
54 12 12 Ket
55 14 End
56 ------------------------------------------------------------------
57
58 /#/IxMD
59 Memory allocation (code space): 20
60 ------------------------------------------------------------------
61 0 2 Bra
62 2 2 Ket
63 4 End
64 ------------------------------------------------------------------
65 Capturing subpattern count = 0
66 May match empty string
67 Options: extended
68 No first char
69 No need char
70
71 /a#/IxMD
72 Memory allocation (code space): 28
73 ------------------------------------------------------------------
74 0 4 Bra
75 2 a
76 4 4 Ket
77 6 End
78 ------------------------------------------------------------------
79 Capturing subpattern count = 0
80 Options: extended
81 First char = 'a'
82 No need char
83
84 /x?+/BM
85 Memory allocation (code space): 28
86 ------------------------------------------------------------------
87 0 4 Bra
88 2 x?+
89 4 4 Ket
90 6 End
91 ------------------------------------------------------------------
92
93 /x++/BM
94 Memory allocation (code space): 28
95 ------------------------------------------------------------------
96 0 4 Bra
97 2 x++
98 4 4 Ket
99 6 End
100 ------------------------------------------------------------------
101
102 /x{1,3}+/BM
103 Memory allocation (code space): 56
104 ------------------------------------------------------------------
105 0 11 Bra
106 2 7 Once
107 4 x
108 6 x{0,2}
109 9 7 Ket
110 11 11 Ket
111 13 End
112 ------------------------------------------------------------------
113
114 /(x)*+/BM
115 Memory allocation (code space): 52
116 ------------------------------------------------------------------
117 0 10 Bra
118 2 Braposzero
119 3 5 CBraPos 1
120 6 x
121 8 5 KetRpos
122 10 10 Ket
123 12 End
124 ------------------------------------------------------------------
125
126 /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/BM
127 Memory allocation (code space): 220
128 ------------------------------------------------------------------
129 0 52 Bra
130 2 ^
131 3 47 CBra 1
132 6 5 CBra 2
133 9 a+
134 11 5 Ket
135 13 13 CBra 3
136 16 [ab]+?
137 26 13 Ket
138 28 13 CBra 4
139 31 [bc]+
140 41 13 Ket
141 43 5 CBra 5
142 46 \w*
143 48 5 Ket
144 50 47 Ket
145 52 52 Ket
146 54 End
147 ------------------------------------------------------------------
148
149 |8J\$WE\<\.rX\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b|BM
150 Memory allocation (code space): 3296
151 ------------------------------------------------------------------
152 0 821 Bra
153 2 8J$WE<.rX+ix[d1b!H#?vV0vrK:ZH1=2M>iV;?aPhFB<*vW@QW@sO9}cfZA-i'w%hKd6gt1UJP,15_#QY$M^Mss_U/]&LK9[5vQub^w[KDD<EjmhUZ?.akp2dF>qmj;2}YWFdYx.Ap]hjCPTP(n28k+3;o&WXqs/gOXdr$:r'do0;b4c(f_Gr="\4)[01T7ajQJvL$W~mL_sS/4h:x*[ZN=KLs&L5zX//>it,o:aU(;Z>pW&T7oP'2K^E:x9'c[%z-,64JQ5AeH_G#KijUKghQw^\vea3a?kka_G$8#`*kynsxzBLru']k_[7FrVx}^=$blx>s-N%j;D*aZDnsw:YKZ%Q.Kne9#hP?+b3(SOvL,^;&u5@?5C5Bhb=m-vEh_L15Jl]U)0RP6{q%L^_z5E'Dw6X
154 820 \b
155 821 821 Ket
156 823 End
157 ------------------------------------------------------------------
158
159 |\$\<\.X\+ix\[d1b\!H\#\?vV0vrK\:ZH1\=2M\>iV\;\?aPhFB\<\*vW\@QW\@sO9\}cfZA\-i\'w\%hKd6gt1UJP\,15_\#QY\$M\^Mss_U\/\]\&LK9\[5vQub\^w\[KDD\<EjmhUZ\?\.akp2dF\>qmj\;2\}YWFdYx\.Ap\]hjCPTP\(n28k\+3\;o\&WXqs\/gOXdr\$\:r\'do0\;b4c\(f_Gr\=\"\\4\)\[01T7ajQJvL\$W\~mL_sS\/4h\:x\*\[ZN\=KLs\&L5zX\/\/\>it\,o\:aU\(\;Z\>pW\&T7oP\'2K\^E\:x9\'c\[\%z\-\,64JQ5AeH_G\#KijUKghQw\^\\vea3a\?kka_G\$8\#\`\*kynsxzBLru\'\]k_\[7FrVx\}\^\=\$blx\>s\-N\%j\;D\*aZDnsw\:YKZ\%Q\.Kne9\#hP\?\+b3\(SOvL\,\^\;\&u5\@\?5C5Bhb\=m\-vEh_L15Jl\]U\)0RP6\{q\%L\^_z5E\'Dw6X\b|BM
160 Memory allocation (code space): 3256
161 ------------------------------------------------------------------
162 0 811 Bra
163 2 $<.X+ix[d1b!H#?vV0vrK:ZH1=2M>iV;?aPhFB<*vW@QW@sO9}cfZA-i'w%hKd6gt1UJP,15_#QY$M^Mss_U/]&LK9[5vQub^w[KDD<EjmhUZ?.akp2dF>qmj;2}YWFdYx.Ap]hjCPTP(n28k+3;o&WXqs/gOXdr$:r'do0;b4c(f_Gr="\4)[01T7ajQJvL$W~mL_sS/4h:x*[ZN=KLs&L5zX//>it,o:aU(;Z>pW&T7oP'2K^E:x9'c[%z-,64JQ5AeH_G#KijUKghQw^\vea3a?kka_G$8#`*kynsxzBLru']k_[7FrVx}^=$blx>s-N%j;D*aZDnsw:YKZ%Q.Kne9#hP?+b3(SOvL,^;&u5@?5C5Bhb=m-vEh_L15Jl]U)0RP6{q%L^_z5E'Dw6X
164 810 \b
165 811 811 Ket
166 813 End
167 ------------------------------------------------------------------
168
169 /(a(?1)b)/BM
170 Memory allocation (code space): 64
171 ------------------------------------------------------------------
172 0 13 Bra
173 2 9 CBra 1
174 5 a
175 7 2 Recurse
176 9 b
177 11 9 Ket
178 13 13 Ket
179 15 End
180 ------------------------------------------------------------------
181
182 /(a(?1)+b)/BM
183 Memory allocation (code space): 80
184 ------------------------------------------------------------------
185 0 17 Bra
186 2 13 CBra 1
187 5 a
188 7 4 Once
189 9 2 Recurse
190 11 4 KetRmax
191 13 b
192 15 13 Ket
193 17 17 Ket
194 19 End
195 ------------------------------------------------------------------
196
197 /a(?P<name1>b|c)d(?P<longername2>e)/BM
198 Memory allocation (code space): 186
199 ------------------------------------------------------------------
200 0 24 Bra
201 2 a
202 4 5 CBra 1
203 7 b
204 9 4 Alt
205 11 c
206 13 9 Ket
207 15 d
208 17 5 CBra 2
209 20 e
210 22 5 Ket
211 24 24 Ket
212 26 End
213 ------------------------------------------------------------------
214
215 /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/BM
216 Memory allocation (code space): 155
217 ------------------------------------------------------------------
218 0 29 Bra
219 2 18 Bra
220 4 a
221 6 12 CBra 1
222 9 c
223 11 5 CBra 2
224 14 d
225 16 5 Ket
226 18 12 Ket
227 20 18 Ket
228 22 5 CBra 3
229 25 a
230 27 5 Ket
231 29 29 Ket
232 31 End
233 ------------------------------------------------------------------
234
235 /(?P<a>a)...(?P=a)bbb(?P>a)d/BM
236 Memory allocation (code space): 117
237 ------------------------------------------------------------------
238 0 24 Bra
239 2 5 CBra 1
240 5 a
241 7 5 Ket
242 9 Any
243 10 Any
244 11 Any
245 12 \1
246 14 bbb
247 20 2 Recurse
248 22 d
249 24 24 Ket
250 26 End
251 ------------------------------------------------------------------
252
253 /abc(?C255)de(?C)f/BM
254 Memory allocation (code space): 100
255 ------------------------------------------------------------------
256 0 22 Bra
257 2 abc
258 8 Callout 255 10 1
259 12 de
260 16 Callout 0 16 1
261 20 f
262 22 22 Ket
263 24 End
264 ------------------------------------------------------------------
265
266 /abcde/CBM
267 Memory allocation (code space): 156
268 ------------------------------------------------------------------
269 0 36 Bra
270 2 Callout 255 0 1
271 6 a
272 8 Callout 255 1 1
273 12 b
274 14 Callout 255 2 1
275 18 c
276 20 Callout 255 3 1
277 24 d
278 26 Callout 255 4 1
279 30 e
280 32 Callout 255 5 0
281 36 36 Ket
282 38 End
283 ------------------------------------------------------------------
284
285 /\x{100}/8BM
286 Memory allocation (code space): 28
287 ------------------------------------------------------------------
288 0 4 Bra
289 2 \x{100}
290 4 4 Ket
291 6 End
292 ------------------------------------------------------------------
293
294 /\x{1000}/8BM
295 Memory allocation (code space): 28
296 ------------------------------------------------------------------
297 0 4 Bra
298 2 \x{1000}
299 4 4 Ket
300 6 End
301 ------------------------------------------------------------------
302
303 /\x{10000}/8BM
304 Memory allocation (code space): 28
305 ------------------------------------------------------------------
306 0 4 Bra
307 2 \x{10000}
308 4 4 Ket
309 6 End
310 ------------------------------------------------------------------
311
312 /\x{100000}/8BM
313 Memory allocation (code space): 28
314 ------------------------------------------------------------------
315 0 4 Bra
316 2 \x{100000}
317 4 4 Ket
318 6 End
319 ------------------------------------------------------------------
320
321 /\x{10ffff}/8BM
322 Memory allocation (code space): 28
323 ------------------------------------------------------------------
324 0 4 Bra
325 2 \x{10ffff}
326 4 4 Ket
327 6 End
328 ------------------------------------------------------------------
329
330 /\x{110000}/8BM
331 Failed: character value in \x{...} sequence is too large at offset 9
332
333 /[\x{ff}]/8BM
334 Memory allocation (code space): 28
335 ------------------------------------------------------------------
336 0 4 Bra
337 2 \x{ff}
338 4 4 Ket
339 6 End
340 ------------------------------------------------------------------
341
342 /[\x{100}]/8BM
343 Memory allocation (code space): 28
344 ------------------------------------------------------------------
345 0 4 Bra
346 2 \x{100}
347 4 4 Ket
348 6 End
349 ------------------------------------------------------------------
350
351 /\x80/8BM
352 Memory allocation (code space): 28
353 ------------------------------------------------------------------
354 0 4 Bra
355 2 \x80
356 4 4 Ket
357 6 End
358 ------------------------------------------------------------------
359
360 /\xff/8BM
361 Memory allocation (code space): 28
362 ------------------------------------------------------------------
363 0 4 Bra
364 2 \x{ff}
365 4 4 Ket
366 6 End
367 ------------------------------------------------------------------
368
369 /\x{0041}\x{2262}\x{0391}\x{002e}/D8M
370 Memory allocation (code space): 52
371 ------------------------------------------------------------------
372 0 10 Bra
373 2 A\x{2262}\x{391}.
374 10 10 Ket
375 12 End
376 ------------------------------------------------------------------
377 Capturing subpattern count = 0
378 Options: utf
379 First char = 'A'
380 Need char = '.'
381
382 /\x{D55c}\x{ad6d}\x{C5B4}/D8M
383 Memory allocation (code space): 44
384 ------------------------------------------------------------------
385 0 8 Bra
386 2 \x{d55c}\x{ad6d}\x{c5b4}
387 8 8 Ket
388 10 End
389 ------------------------------------------------------------------
390 Capturing subpattern count = 0
391 Options: utf
392 First char = \x{d55c}
393 Need char = \x{c5b4}
394
395 /\x{65e5}\x{672c}\x{8a9e}/D8M
396 Memory allocation (code space): 44
397 ------------------------------------------------------------------
398 0 8 Bra
399 2 \x{65e5}\x{672c}\x{8a9e}
400 8 8 Ket
401 10 End
402 ------------------------------------------------------------------
403 Capturing subpattern count = 0
404 Options: utf
405 First char = \x{65e5}
406 Need char = \x{8a9e}
407
408 /[\x{100}]/8BM
409 Memory allocation (code space): 28
410 ------------------------------------------------------------------
411 0 4 Bra
412 2 \x{100}
413 4 4 Ket
414 6 End
415 ------------------------------------------------------------------
416
417 /[Z\x{100}]/8BM
418 Memory allocation (code space): 76
419 ------------------------------------------------------------------
420 0 16 Bra
421 2 [Z\x{100}]
422 16 16 Ket
423 18 End
424 ------------------------------------------------------------------
425
426 /^[\x{100}\E-\Q\E\x{150}]/B8M
427 Memory allocation (code space): 52
428 ------------------------------------------------------------------
429 0 10 Bra
430 2 ^
431 3 [\x{100}-\x{150}]
432 10 10 Ket
433 12 End
434 ------------------------------------------------------------------
435
436 /^[\QĀ\E-\QŐ\E]/B8M
437 Memory allocation (code space): 52
438 ------------------------------------------------------------------
439 0 10 Bra
440 2 ^
441 3 [\x{100}-\x{150}]
442 10 10 Ket
443 12 End
444 ------------------------------------------------------------------
445
446 /^[\QĀ\E-\QŐ\E/B8M
447 Failed: missing terminating ] for character class at offset 13
448
449 /[\p{L}]/BM
450 Memory allocation (code space): 48
451 ------------------------------------------------------------------
452 0 9 Bra
453 2 [\p{L}]
454 9 9 Ket
455 11 End
456 ------------------------------------------------------------------
457
458 /[\p{^L}]/BM
459 Memory allocation (code space): 48
460 ------------------------------------------------------------------
461 0 9 Bra
462 2 [\P{L}]
463 9 9 Ket
464 11 End
465 ------------------------------------------------------------------
466
467 /[\P{L}]/BM
468 Memory allocation (code space): 48
469 ------------------------------------------------------------------
470 0 9 Bra
471 2 [\P{L}]
472 9 9 Ket
473 11 End
474 ------------------------------------------------------------------
475
476 /[\P{^L}]/BM
477 Memory allocation (code space): 48
478 ------------------------------------------------------------------
479 0 9 Bra
480 2 [\p{L}]
481 9 9 Ket
482 11 End
483 ------------------------------------------------------------------
484
485 /[abc\p{L}\x{0660}]/8BM
486 Memory allocation (code space): 88
487 ------------------------------------------------------------------
488 0 19 Bra
489 2 [a-c\p{L}\x{660}]
490 19 19 Ket
491 21 End
492 ------------------------------------------------------------------
493
494 /[\p{Nd}]/8BM
495 Memory allocation (code space): 48
496 ------------------------------------------------------------------
497 0 9 Bra
498 2 [\p{Nd}]
499 9 9 Ket
500 11 End
501 ------------------------------------------------------------------
502
503 /[\p{Nd}+-]+/8BM
504 Memory allocation (code space): 84
505 ------------------------------------------------------------------
506 0 18 Bra
507 2 [+\-\p{Nd}]+
508 18 18 Ket
509 20 End
510 ------------------------------------------------------------------
511
512 /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8iBM
513 Memory allocation (code space): 60
514 ------------------------------------------------------------------
515 0 12 Bra
516 2 /i A\x{391}\x{10427}\x{ff3a}\x{1fb0}
517 12 12 Ket
518 14 End
519 ------------------------------------------------------------------
520
521 /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8BM
522 Memory allocation (code space): 60
523 ------------------------------------------------------------------
524 0 12 Bra
525 2 A\x{391}\x{10427}\x{ff3a}\x{1fb0}
526 12 12 Ket
527 14 End
528 ------------------------------------------------------------------
529
530 /[\x{105}-\x{109}]/8iBM
531 Memory allocation (code space): 48
532 ------------------------------------------------------------------
533 0 9 Bra
534 2 [\x{104}-\x{109}]
535 9 9 Ket
536 11 End
537 ------------------------------------------------------------------
538
539 /( ( (?(1)0|) )* )/xBM
540 Memory allocation (code space): 104
541 ------------------------------------------------------------------
542 0 23 Bra
543 2 19 CBra 1
544 5 Brazero
545 6 13 SCBra 2
546 9 6 Cond
547 11 1 Cond ref
548 13 0
549 15 2 Alt
550 17 8 Ket
551 19 13 KetRmax
552 21 19 Ket
553 23 23 Ket
554 25 End
555 ------------------------------------------------------------------
556
557 /( (?(1)0|)* )/xBM
558 Memory allocation (code space): 84
559 ------------------------------------------------------------------
560 0 18 Bra
561 2 14 CBra 1
562 5 Brazero
563 6 6 SCond
564 8 1 Cond ref
565 10 0
566 12 2 Alt
567 14 8 KetRmax
568 16 14 Ket
569 18 18 Ket
570 20 End
571 ------------------------------------------------------------------
572
573 /[a]/BM
574 Memory allocation (code space): 28
575 ------------------------------------------------------------------
576 0 4 Bra
577 2 a
578 4 4 Ket
579 6 End
580 ------------------------------------------------------------------
581
582 /[a]/8BM
583 Memory allocation (code space): 28
584 ------------------------------------------------------------------
585 0 4 Bra
586 2 a
587 4 4 Ket
588 6 End
589 ------------------------------------------------------------------
590
591 /[\xaa]/BM
592 Memory allocation (code space): 28
593 ------------------------------------------------------------------
594 0 4 Bra
595 2 \x{aa}
596 4 4 Ket
597 6 End
598 ------------------------------------------------------------------
599
600 /[\xaa]/8BM
601 Memory allocation (code space): 28
602 ------------------------------------------------------------------
603 0 4 Bra
604 2 \x{aa}
605 4 4 Ket
606 6 End
607 ------------------------------------------------------------------
608
609 /[^a]/BM
610 Memory allocation (code space): 28
611 ------------------------------------------------------------------
612 0 4 Bra
613 2 [^a]
614 4 4 Ket
615 6 End
616 ------------------------------------------------------------------
617
618 /[^a]/8BM
619 Memory allocation (code space): 28
620 ------------------------------------------------------------------
621 0 4 Bra
622 2 [^a]
623 4 4 Ket
624 6 End
625 ------------------------------------------------------------------
626
627 /[^\xaa]/BM
628 Memory allocation (code space): 28
629 ------------------------------------------------------------------
630 0 4 Bra
631 2 [^\x{aa}]
632 4 4 Ket
633 6 End
634 ------------------------------------------------------------------
635
636 /[^\xaa]/8BM
637 Memory allocation (code space): 28
638 ------------------------------------------------------------------
639 0 4 Bra
640 2 [^\x{aa}]
641 4 4 Ket
642 6 End
643 ------------------------------------------------------------------
644
645 /[^\d]/8WB
646 ------------------------------------------------------------------
647 0 9 Bra
648 2 [^\p{Nd}]
649 9 9 Ket
650 11 End
651 ------------------------------------------------------------------
652
653 /[[:^alpha:][:^cntrl:]]+/8WB
654 ------------------------------------------------------------------
655 0 18 Bra
656 2 [ -~\x80-\xff\P{L}]+
657 18 18 Ket
658 20 End
659 ------------------------------------------------------------------
660
661 /[[:^cntrl:][:^alpha:]]+/8WB
662 ------------------------------------------------------------------
663 0 18 Bra
664 2 [ -~\x80-\xff\P{L}]+
665 18 18 Ket
666 20 End
667 ------------------------------------------------------------------
668
669 /[[:alpha:]]+/8WB
670 ------------------------------------------------------------------
671 0 10 Bra
672 2 [\p{L}]+
673 10 10 Ket
674 12 End
675 ------------------------------------------------------------------
676
677 /[[:^alpha:]\S]+/8WB
678 ------------------------------------------------------------------
679 0 13 Bra
680 2 [\P{L}\P{Xsp}]+
681 13 13 Ket
682 15 End
683 ------------------------------------------------------------------
684
685 /abc(d|e)(*THEN)x(123(*THEN)4|567(b|q)(*THEN)xx)/B
686 ------------------------------------------------------------------
687 0 60 Bra
688 2 abc
689 8 5 CBra 1
690 11 d
691 13 4 Alt
692 15 e
693 17 9 Ket
694 19 *THEN
695 20 x
696 22 12 CBra 2
697 25 123
698 31 *THEN
699 32 4
700 34 24 Alt
701 36 567
702 42 5 CBra 3
703 45 b
704 47 4 Alt
705 49 q
706 51 9 Ket
707 53 *THEN
708 54 xx
709 58 36 Ket
710 60 60 Ket
711 62 End
712 ------------------------------------------------------------------
713
714 /-- End of testinput11 --/

  ViewVC Help
Powered by ViewVC 1.1.5