| 1 |
/-- These are a few representative patterns whose lengths and offsets are to be |
/-- 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 |
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 |
sizes don't go horribly wrong when something is changed. The pattern contents |
| 4 |
are all themselves checked in other tests. --/ |
are all themselves checked in other tests. Unicode, including property support, |
| 5 |
|
is required for these tests. --/ |
| 6 |
|
|
| 7 |
/((?i)b)/BM |
/((?i)b)/BM |
| 8 |
Memory allocation (code space): 21 |
Memory allocation (code space): 17 |
| 9 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 10 |
0 17 Bra |
0 13 Bra |
| 11 |
3 9 CBra 1 |
3 7 CBra 1 |
| 12 |
8 01 Opt |
8 /i b |
| 13 |
10 NC b |
10 7 Ket |
| 14 |
12 9 Ket |
13 13 Ket |
| 15 |
15 00 Opt |
16 End |
|
17 17 Ket |
|
|
20 End |
|
| 16 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 17 |
|
|
| 18 |
/(?s)(.*X|^B)/BM |
/(?s)(.*X|^B)/BM |
| 31 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 32 |
|
|
| 33 |
/(?s:.*X|^B)/BM |
/(?s:.*X|^B)/BM |
| 34 |
Memory allocation (code space): 29 |
Memory allocation (code space): 23 |
| 35 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 36 |
0 25 Bra |
0 19 Bra |
| 37 |
3 9 Bra |
3 7 Bra |
| 38 |
6 04 Opt |
6 AllAny* |
| 39 |
8 AllAny* |
8 X |
| 40 |
10 X |
10 6 Alt |
| 41 |
12 8 Alt |
13 ^ |
| 42 |
15 04 Opt |
14 B |
| 43 |
17 ^ |
16 13 Ket |
| 44 |
18 B |
19 19 Ket |
| 45 |
20 17 Ket |
22 End |
|
23 00 Opt |
|
|
25 25 Ket |
|
|
28 End |
|
| 46 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 47 |
|
|
| 48 |
/^[[:alnum:]]/BM |
/^[[:alnum:]]/BM |
| 111 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 112 |
|
|
| 113 |
/(x)*+/BM |
/(x)*+/BM |
| 114 |
Memory allocation (code space): 24 |
Memory allocation (code space): 18 |
| 115 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 116 |
0 20 Bra |
0 14 Bra |
| 117 |
3 14 Once |
3 Braposzero |
| 118 |
6 Brazero |
4 7 CBraPos 1 |
| 119 |
7 7 CBra 1 |
9 x |
| 120 |
12 x |
11 7 KetRpos |
| 121 |
14 7 KetRmax |
14 14 Ket |
| 122 |
17 14 Ket |
17 End |
|
20 20 Ket |
|
|
23 End |
|
| 123 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 124 |
|
|
| 125 |
/^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/BM |
/^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/BM |
| 166 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 167 |
|
|
| 168 |
/(a(?1)b)/BM |
/(a(?1)b)/BM |
| 169 |
Memory allocation (code space): 28 |
Memory allocation (code space): 22 |
| 170 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 171 |
0 24 Bra |
0 18 Bra |
| 172 |
3 18 CBra 1 |
3 12 CBra 1 |
| 173 |
8 a |
8 a |
| 174 |
10 6 Once |
10 3 Recurse |
| 175 |
13 3 Recurse |
13 b |
| 176 |
16 6 Ket |
15 12 Ket |
| 177 |
19 b |
18 18 Ket |
| 178 |
21 18 Ket |
21 End |
|
24 24 Ket |
|
|
27 End |
|
| 179 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 180 |
|
|
| 181 |
/(a(?1)+b)/BM |
/(a(?1)+b)/BM |
| 232 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 233 |
|
|
| 234 |
/(?P<a>a)...(?P=a)bbb(?P>a)d/BM |
/(?P<a>a)...(?P=a)bbb(?P>a)d/BM |
| 235 |
Memory allocation (code space): 43 |
Memory allocation (code space): 37 |
| 236 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 237 |
0 36 Bra |
0 30 Bra |
| 238 |
3 7 CBra 1 |
3 7 CBra 1 |
| 239 |
8 a |
8 a |
| 240 |
10 7 Ket |
10 7 Ket |
| 243 |
15 Any |
15 Any |
| 244 |
16 \1 |
16 \1 |
| 245 |
19 bbb |
19 bbb |
| 246 |
25 6 Once |
25 3 Recurse |
| 247 |
28 3 Recurse |
28 d |
| 248 |
31 6 Ket |
30 30 Ket |
| 249 |
34 d |
33 End |
|
36 36 Ket |
|
|
39 End |
|
| 250 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 251 |
|
|
| 252 |
/abc(?C255)de(?C)f/BM |
/abc(?C255)de(?C)f/BM |
| 527 |
Memory allocation (code space): 25 |
Memory allocation (code space): 25 |
| 528 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 529 |
0 21 Bra |
0 21 Bra |
| 530 |
3 NC A\x{391}\x{10427}\x{ff3a}\x{1fb0} |
3 /i A\x{391}\x{10427}\x{ff3a}\x{1fb0} |
| 531 |
21 21 Ket |
21 21 Ket |
| 532 |
24 End |
24 End |
| 533 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 656 |
39 End |
39 End |
| 657 |
------------------------------------------------------------------ |
------------------------------------------------------------------ |
| 658 |
|
|
| 659 |
|
/[^\d]/8WB |
| 660 |
|
------------------------------------------------------------------ |
| 661 |
|
0 11 Bra |
| 662 |
|
3 [^\p{Nd}] |
| 663 |
|
11 11 Ket |
| 664 |
|
14 End |
| 665 |
|
------------------------------------------------------------------ |
| 666 |
|
|
| 667 |
|
/[[:^alpha:][:^cntrl:]]+/8WB |
| 668 |
|
------------------------------------------------------------------ |
| 669 |
|
0 44 Bra |
| 670 |
|
3 [ -~\x80-\xff\P{L}]+ |
| 671 |
|
44 44 Ket |
| 672 |
|
47 End |
| 673 |
|
------------------------------------------------------------------ |
| 674 |
|
|
| 675 |
|
/[[:^cntrl:][:^alpha:]]+/8WB |
| 676 |
|
------------------------------------------------------------------ |
| 677 |
|
0 44 Bra |
| 678 |
|
3 [ -~\x80-\xff\P{L}]+ |
| 679 |
|
44 44 Ket |
| 680 |
|
47 End |
| 681 |
|
------------------------------------------------------------------ |
| 682 |
|
|
| 683 |
|
/[[:alpha:]]+/8WB |
| 684 |
|
------------------------------------------------------------------ |
| 685 |
|
0 12 Bra |
| 686 |
|
3 [\p{L}]+ |
| 687 |
|
12 12 Ket |
| 688 |
|
15 End |
| 689 |
|
------------------------------------------------------------------ |
| 690 |
|
|
| 691 |
|
/[[:^alpha:]\S]+/8WB |
| 692 |
|
------------------------------------------------------------------ |
| 693 |
|
0 15 Bra |
| 694 |
|
3 [\P{L}\P{Xsp}]+ |
| 695 |
|
15 15 Ket |
| 696 |
|
18 End |
| 697 |
|
------------------------------------------------------------------ |
| 698 |
|
|
| 699 |
|
/abc(d|e)(*THEN)x(123(*THEN)4|567(b|q)(*THEN)xx)/B |
| 700 |
|
------------------------------------------------------------------ |
| 701 |
|
0 79 Bra |
| 702 |
|
3 abc |
| 703 |
|
9 7 CBra 1 |
| 704 |
|
14 d |
| 705 |
|
16 5 Alt |
| 706 |
|
19 e |
| 707 |
|
21 12 Ket |
| 708 |
|
24 *THEN 24 |
| 709 |
|
27 x |
| 710 |
|
29 16 CBra 2 |
| 711 |
|
34 123 |
| 712 |
|
40 *THEN 11 |
| 713 |
|
43 4 |
| 714 |
|
45 31 Alt |
| 715 |
|
48 567 |
| 716 |
|
54 7 CBra 3 |
| 717 |
|
59 b |
| 718 |
|
61 5 Alt |
| 719 |
|
64 q |
| 720 |
|
66 12 Ket |
| 721 |
|
69 *THEN 24 |
| 722 |
|
72 xx |
| 723 |
|
76 47 Ket |
| 724 |
|
79 79 Ket |
| 725 |
|
82 End |
| 726 |
|
------------------------------------------------------------------ |
| 727 |
|
|
| 728 |
/-- End of testinput10 --/ |
/-- End of testinput10 --/ |