/[pcre]/code/branches/pcre16/testdata/testoutput11-8
ViewVC logotype

Contents of /code/branches/pcre16/testdata/testoutput11-8

Parent Directory Parent Directory | Revision Log Revision Log


Revision 814 - (show annotations) (download)
Wed Dec 21 12:05:24 2011 UTC (2 years, 3 months ago) by ph10
File size: 19291 byte(s)
Reorganized the tests and made many more work in 16-bit mode.

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12