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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 814 - (hide annotations) (download)
Wed Dec 21 12:05:24 2011 UTC (2 years, 10 months ago) by ph10
Original Path: code/branches/pcre16/testdata/testoutput11-16
File size: 19286 byte(s)
Reorganized the tests and made many more work in 16-bit mode.

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12