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

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

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: 19301 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): 17
9 ------------------------------------------------------------------
10 0 13 Bra
11 3 7 CBra 1
12 8 /i b
13 10 7 Ket
14 13 13 Ket
15 16 End
16 ------------------------------------------------------------------
17
18 /(?s)(.*X|^B)/BM
19 Memory allocation (code space): 25
20 ------------------------------------------------------------------
21 0 21 Bra
22 3 9 CBra 1
23 8 AllAny*
24 10 X
25 12 6 Alt
26 15 ^
27 16 B
28 18 15 Ket
29 21 21 Ket
30 24 End
31 ------------------------------------------------------------------
32
33 /(?s:.*X|^B)/BM
34 Memory allocation (code space): 23
35 ------------------------------------------------------------------
36 0 19 Bra
37 3 7 Bra
38 6 AllAny*
39 8 X
40 10 6 Alt
41 13 ^
42 14 B
43 16 13 Ket
44 19 19 Ket
45 22 End
46 ------------------------------------------------------------------
47
48 /^[[:alnum:]]/BM
49 Memory allocation (code space): 41
50 ------------------------------------------------------------------
51 0 37 Bra
52 3 ^
53 4 [0-9A-Za-z]
54 37 37 Ket
55 40 End
56 ------------------------------------------------------------------
57
58 /#/IxMD
59 Memory allocation (code space): 7
60 ------------------------------------------------------------------
61 0 3 Bra
62 3 3 Ket
63 6 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): 9
73 ------------------------------------------------------------------
74 0 5 Bra
75 3 a
76 5 5 Ket
77 8 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): 9
86 ------------------------------------------------------------------
87 0 5 Bra
88 3 x?+
89 5 5 Ket
90 8 End
91 ------------------------------------------------------------------
92
93 /x++/BM
94 Memory allocation (code space): 9
95 ------------------------------------------------------------------
96 0 5 Bra
97 3 x++
98 5 5 Ket
99 8 End
100 ------------------------------------------------------------------
101
102 /x{1,3}+/BM
103 Memory allocation (code space): 19
104 ------------------------------------------------------------------
105 0 15 Bra
106 3 9 Once
107 6 x
108 8 x{0,2}
109 12 9 Ket
110 15 15 Ket
111 18 End
112 ------------------------------------------------------------------
113
114 /(x)*+/BM
115 Memory allocation (code space): 18
116 ------------------------------------------------------------------
117 0 14 Bra
118 3 Braposzero
119 4 7 CBraPos 1
120 9 x
121 11 7 KetRpos
122 14 14 Ket
123 17 End
124 ------------------------------------------------------------------
125
126 /^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/BM
127 Memory allocation (code space): 120
128 ------------------------------------------------------------------
129 0 116 Bra
130 3 ^
131 4 109 CBra 1
132 9 7 CBra 2
133 14 a+
134 16 7 Ket
135 19 39 CBra 3
136 24 [ab]+?
137 58 39 Ket
138 61 39 CBra 4
139 66 [bc]+
140 100 39 Ket
141 103 7 CBra 5
142 108 \w*
143 110 7 Ket
144 113 109 Ket
145 116 116 Ket
146 119 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): 826
151 ------------------------------------------------------------------
152 0 822 Bra
153 3 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 821 \b
155 822 822 Ket
156 825 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): 816
161 ------------------------------------------------------------------
162 0 812 Bra
163 3 $<.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 811 \b
165 812 812 Ket
166 815 End
167 ------------------------------------------------------------------
168
169 /(a(?1)b)/BM
170 Memory allocation (code space): 22
171 ------------------------------------------------------------------
172 0 18 Bra
173 3 12 CBra 1
174 8 a
175 10 3 Recurse
176 13 b
177 15 12 Ket
178 18 18 Ket
179 21 End
180 ------------------------------------------------------------------
181
182 /(a(?1)+b)/BM
183 Memory allocation (code space): 28
184 ------------------------------------------------------------------
185 0 24 Bra
186 3 18 CBra 1
187 8 a
188 10 6 Once
189 13 3 Recurse
190 16 6 KetRmax
191 19 b
192 21 18 Ket
193 24 24 Ket
194 27 End
195 ------------------------------------------------------------------
196
197 /a(?P<name1>b|c)d(?P<longername2>e)/BM
198 Memory allocation (code space): 36
199 ------------------------------------------------------------------
200 0 32 Bra
201 3 a
202 5 7 CBra 1
203 10 b
204 12 5 Alt
205 15 c
206 17 12 Ket
207 20 d
208 22 7 CBra 2
209 27 e
210 29 7 Ket
211 32 32 Ket
212 35 End
213 ------------------------------------------------------------------
214
215 /(?:a(?P<c>c(?P<d>d)))(?P<a>a)/BM
216 Memory allocation (code space): 45
217 ------------------------------------------------------------------
218 0 41 Bra
219 3 25 Bra
220 6 a
221 8 17 CBra 1
222 13 c
223 15 7 CBra 2
224 20 d
225 22 7 Ket
226 25 17 Ket
227 28 25 Ket
228 31 7 CBra 3
229 36 a
230 38 7 Ket
231 41 41 Ket
232 44 End
233 ------------------------------------------------------------------
234
235 /(?P<a>a)...(?P=a)bbb(?P>a)d/BM
236 Memory allocation (code space): 34
237 ------------------------------------------------------------------
238 0 30 Bra
239 3 7 CBra 1
240 8 a
241 10 7 Ket
242 13 Any
243 14 Any
244 15 Any
245 16 \1
246 19 bbb
247 25 3 Recurse
248 28 d
249 30 30 Ket
250 33 End
251 ------------------------------------------------------------------
252
253 /abc(?C255)de(?C)f/BM
254 Memory allocation (code space): 31
255 ------------------------------------------------------------------
256 0 27 Bra
257 3 abc
258 9 Callout 255 10 1
259 15 de
260 19 Callout 0 16 1
261 25 f
262 27 27 Ket
263 30 End
264 ------------------------------------------------------------------
265
266 /abcde/CBM
267 Memory allocation (code space): 53
268 ------------------------------------------------------------------
269 0 49 Bra
270 3 Callout 255 0 1
271 9 a
272 11 Callout 255 1 1
273 17 b
274 19 Callout 255 2 1
275 25 c
276 27 Callout 255 3 1
277 33 d
278 35 Callout 255 4 1
279 41 e
280 43 Callout 255 5 0
281 49 49 Ket
282 52 End
283 ------------------------------------------------------------------
284
285 /\x{100}/8BM
286 Memory allocation (code space): 10
287 ------------------------------------------------------------------
288 0 6 Bra
289 3 \x{100}
290 6 6 Ket
291 9 End
292 ------------------------------------------------------------------
293
294 /\x{1000}/8BM
295 Memory allocation (code space): 11
296 ------------------------------------------------------------------
297 0 7 Bra
298 3 \x{1000}
299 7 7 Ket
300 10 End
301 ------------------------------------------------------------------
302
303 /\x{10000}/8BM
304 Memory allocation (code space): 12
305 ------------------------------------------------------------------
306 0 8 Bra
307 3 \x{10000}
308 8 8 Ket
309 11 End
310 ------------------------------------------------------------------
311
312 /\x{100000}/8BM
313 Memory allocation (code space): 12
314 ------------------------------------------------------------------
315 0 8 Bra
316 3 \x{100000}
317 8 8 Ket
318 11 End
319 ------------------------------------------------------------------
320
321 /\x{10ffff}/8BM
322 Memory allocation (code space): 12
323 ------------------------------------------------------------------
324 0 8 Bra
325 3 \x{10ffff}
326 8 8 Ket
327 11 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): 10
335 ------------------------------------------------------------------
336 0 6 Bra
337 3 \x{ff}
338 6 6 Ket
339 9 End
340 ------------------------------------------------------------------
341
342 /[\x{100}]/8BM
343 Memory allocation (code space): 10
344 ------------------------------------------------------------------
345 0 6 Bra
346 3 \x{100}
347 6 6 Ket
348 9 End
349 ------------------------------------------------------------------
350
351 /\x80/8BM
352 Memory allocation (code space): 10
353 ------------------------------------------------------------------
354 0 6 Bra
355 3 \x{80}
356 6 6 Ket
357 9 End
358 ------------------------------------------------------------------
359
360 /\xff/8BM
361 Memory allocation (code space): 10
362 ------------------------------------------------------------------
363 0 6 Bra
364 3 \x{ff}
365 6 6 Ket
366 9 End
367 ------------------------------------------------------------------
368
369 /\x{0041}\x{2262}\x{0391}\x{002e}/D8M
370 Memory allocation (code space): 18
371 ------------------------------------------------------------------
372 0 14 Bra
373 3 A\x{2262}\x{391}.
374 14 14 Ket
375 17 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): 19
384 ------------------------------------------------------------------
385 0 15 Bra
386 3 \x{d55c}\x{ad6d}\x{c5b4}
387 15 15 Ket
388 18 End
389 ------------------------------------------------------------------
390 Capturing subpattern count = 0
391 Options: utf
392 First char = \x{ed}
393 Need char = \x{b4}
394
395 /\x{65e5}\x{672c}\x{8a9e}/D8M
396 Memory allocation (code space): 19
397 ------------------------------------------------------------------
398 0 15 Bra
399 3 \x{65e5}\x{672c}\x{8a9e}
400 15 15 Ket
401 18 End
402 ------------------------------------------------------------------
403 Capturing subpattern count = 0
404 Options: utf
405 First char = \x{e6}
406 Need char = \x{9e}
407
408 /[\x{100}]/8BM
409 Memory allocation (code space): 10
410 ------------------------------------------------------------------
411 0 6 Bra
412 3 \x{100}
413 6 6 Ket
414 9 End
415 ------------------------------------------------------------------
416
417 /[Z\x{100}]/8BM
418 Memory allocation (code space): 47
419 ------------------------------------------------------------------
420 0 43 Bra
421 3 [Z\x{100}]
422 43 43 Ket
423 46 End
424 ------------------------------------------------------------------
425
426 /^[\x{100}\E-\Q\E\x{150}]/B8M
427 Memory allocation (code space): 18
428 ------------------------------------------------------------------
429 0 14 Bra
430 3 ^
431 4 [\x{100}-\x{150}]
432 14 14 Ket
433 17 End
434 ------------------------------------------------------------------
435
436 /^[\QĀ\E-\QŐ\E]/B8M
437 Memory allocation (code space): 18
438 ------------------------------------------------------------------
439 0 14 Bra
440 3 ^
441 4 [\x{100}-\x{150}]
442 14 14 Ket
443 17 End
444 ------------------------------------------------------------------
445
446 /^[\QĀ\E-\QŐ\E/B8M
447 Failed: missing terminating ] for character class at offset 15
448
449 /[\p{L}]/BM
450 Memory allocation (code space): 15
451 ------------------------------------------------------------------
452 0 11 Bra
453 3 [\p{L}]
454 11 11 Ket
455 14 End
456 ------------------------------------------------------------------
457
458 /[\p{^L}]/BM
459 Memory allocation (code space): 15
460 ------------------------------------------------------------------
461 0 11 Bra
462 3 [\P{L}]
463 11 11 Ket
464 14 End
465 ------------------------------------------------------------------
466
467 /[\P{L}]/BM
468 Memory allocation (code space): 15
469 ------------------------------------------------------------------
470 0 11 Bra
471 3 [\P{L}]
472 11 11 Ket
473 14 End
474 ------------------------------------------------------------------
475
476 /[\P{^L}]/BM
477 Memory allocation (code space): 15
478 ------------------------------------------------------------------
479 0 11 Bra
480 3 [\p{L}]
481 11 11 Ket
482 14 End
483 ------------------------------------------------------------------
484
485 /[abc\p{L}\x{0660}]/8BM
486 Memory allocation (code space): 50
487 ------------------------------------------------------------------
488 0 46 Bra
489 3 [a-c\p{L}\x{660}]
490 46 46 Ket
491 49 End
492 ------------------------------------------------------------------
493
494 /[\p{Nd}]/8BM
495 Memory allocation (code space): 15
496 ------------------------------------------------------------------
497 0 11 Bra
498 3 [\p{Nd}]
499 11 11 Ket
500 14 End
501 ------------------------------------------------------------------
502
503 /[\p{Nd}+-]+/8BM
504 Memory allocation (code space): 48
505 ------------------------------------------------------------------
506 0 44 Bra
507 3 [+\-\p{Nd}]+
508 44 44 Ket
509 47 End
510 ------------------------------------------------------------------
511
512 /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8iBM
513 Memory allocation (code space): 25
514 ------------------------------------------------------------------
515 0 21 Bra
516 3 /i A\x{391}\x{10427}\x{ff3a}\x{1fb0}
517 21 21 Ket
518 24 End
519 ------------------------------------------------------------------
520
521 /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8BM
522 Memory allocation (code space): 25
523 ------------------------------------------------------------------
524 0 21 Bra
525 3 A\x{391}\x{10427}\x{ff3a}\x{1fb0}
526 21 21 Ket
527 24 End
528 ------------------------------------------------------------------
529
530 /[\x{105}-\x{109}]/8iBM
531 Memory allocation (code space): 17
532 ------------------------------------------------------------------
533 0 13 Bra
534 3 [\x{104}-\x{109}]
535 13 13 Ket
536 16 End
537 ------------------------------------------------------------------
538
539 /( ( (?(1)0|) )* )/xBM
540 Memory allocation (code space): 38
541 ------------------------------------------------------------------
542 0 34 Bra
543 3 28 CBra 1
544 8 Brazero
545 9 19 SCBra 2
546 14 8 Cond
547 17 1 Cond ref
548 20 0
549 22 3 Alt
550 25 11 Ket
551 28 19 KetRmax
552 31 28 Ket
553 34 34 Ket
554 37 End
555 ------------------------------------------------------------------
556
557 /( (?(1)0|)* )/xBM
558 Memory allocation (code space): 30
559 ------------------------------------------------------------------
560 0 26 Bra
561 3 20 CBra 1
562 8 Brazero
563 9 8 SCond
564 12 1 Cond ref
565 15 0
566 17 3 Alt
567 20 11 KetRmax
568 23 20 Ket
569 26 26 Ket
570 29 End
571 ------------------------------------------------------------------
572
573 /[a]/BM
574 Memory allocation (code space): 9
575 ------------------------------------------------------------------
576 0 5 Bra
577 3 a
578 5 5 Ket
579 8 End
580 ------------------------------------------------------------------
581
582 /[a]/8BM
583 Memory allocation (code space): 9
584 ------------------------------------------------------------------
585 0 5 Bra
586 3 a
587 5 5 Ket
588 8 End
589 ------------------------------------------------------------------
590
591 /[\xaa]/BM
592 Memory allocation (code space): 9
593 ------------------------------------------------------------------
594 0 5 Bra
595 3 \x{aa}
596 5 5 Ket
597 8 End
598 ------------------------------------------------------------------
599
600 /[\xaa]/8BM
601 Memory allocation (code space): 10
602 ------------------------------------------------------------------
603 0 6 Bra
604 3 \x{aa}
605 6 6 Ket
606 9 End
607 ------------------------------------------------------------------
608
609 /[^a]/BM
610 Memory allocation (code space): 9
611 ------------------------------------------------------------------
612 0 5 Bra
613 3 [^a]
614 5 5 Ket
615 8 End
616 ------------------------------------------------------------------
617
618 /[^a]/8BM
619 Memory allocation (code space): 9
620 ------------------------------------------------------------------
621 0 5 Bra
622 3 [^a]
623 5 5 Ket
624 8 End
625 ------------------------------------------------------------------
626
627 /[^\xaa]/BM
628 Memory allocation (code space): 9
629 ------------------------------------------------------------------
630 0 5 Bra
631 3 [^\x{aa}]
632 5 5 Ket
633 8 End
634 ------------------------------------------------------------------
635
636 /[^\xaa]/8BM
637 Memory allocation (code space): 10
638 ------------------------------------------------------------------
639 0 6 Bra
640 3 [^\x{aa}]
641 6 6 Ket
642 9 End
643 ------------------------------------------------------------------
644
645 /[^\d]/8WB
646 ------------------------------------------------------------------
647 0 11 Bra
648 3 [^\p{Nd}]
649 11 11 Ket
650 14 End
651 ------------------------------------------------------------------
652
653 /[[:^alpha:][:^cntrl:]]+/8WB
654 ------------------------------------------------------------------
655 0 44 Bra
656 3 [ -~\x80-\xff\P{L}]+
657 44 44 Ket
658 47 End
659 ------------------------------------------------------------------
660
661 /[[:^cntrl:][:^alpha:]]+/8WB
662 ------------------------------------------------------------------
663 0 44 Bra
664 3 [ -~\x80-\xff\P{L}]+
665 44 44 Ket
666 47 End
667 ------------------------------------------------------------------
668
669 /[[:alpha:]]+/8WB
670 ------------------------------------------------------------------
671 0 12 Bra
672 3 [\p{L}]+
673 12 12 Ket
674 15 End
675 ------------------------------------------------------------------
676
677 /[[:^alpha:]\S]+/8WB
678 ------------------------------------------------------------------
679 0 15 Bra
680 3 [\P{L}\P{Xsp}]+
681 15 15 Ket
682 18 End
683 ------------------------------------------------------------------
684
685 /abc(d|e)(*THEN)x(123(*THEN)4|567(b|q)(*THEN)xx)/B
686 ------------------------------------------------------------------
687 0 73 Bra
688 3 abc
689 9 7 CBra 1
690 14 d
691 16 5 Alt
692 19 e
693 21 12 Ket
694 24 *THEN
695 25 x
696 27 14 CBra 2
697 32 123
698 38 *THEN
699 39 4
700 41 29 Alt
701 44 567
702 50 7 CBra 3
703 55 b
704 57 5 Alt
705 60 q
706 62 12 Ket
707 65 *THEN
708 66 xx
709 70 43 Ket
710 73 73 Ket
711 76 End
712 ------------------------------------------------------------------
713
714 /-- End of testinput11 --/

  ViewVC Help
Powered by ViewVC 1.1.5