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

Contents of /code/trunk/testdata/testoutput10

Parent Directory Parent Directory | Revision Log Revision Log


Revision 342 - (show annotations) (download)
Sun Apr 20 17:10:13 2008 UTC (6 years ago) by ph10
File size: 18180 byte(s)
Slight performance improvement by using the new OP_ALLANY opcode for cases of 
the metacharacter "." when DOTALL is set. Also, some tidies consequent upon its 
invention.

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12