• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/-- Tests for reloading pre-compiled patterns. The first one gives an error
2right away, and can be any old pattern compiled in 8-bit mode ("abc" is
3typical). The others require the link size to be 2. */x
4
5<!testsaved8
6Compiled pattern loaded from testsaved8
7No study data
8Error -28 from pcre32_fullinfo(0)
9Running in 32-bit mode but pattern was compiled in 8-bit mode
10
11%-- Generated from:
12    /^[aL](?P<name>(?:[AaLl]+)[^xX-]*?)(?P<other>[\x{150}-\x{250}\x{300}]|
13      [^\x{800}aAs-uS-U\x{d800}-\x{dfff}])++[^#\b\x{500}\x{1000}]{3,5}$
14      /x
15
16    In 16-bit mode with options:  S>testdata/saved16LE-1
17                                 FS>testdata/saved16BE-1
18    In 32-bit mode with options:  S>testdata/saved32LE-1
19                                 FS>testdata/saved32BE-1
20--%x
21
22<!testsaved16LE-1
23Compiled pattern loaded from testsaved16LE-1
24Study data loaded from testsaved16LE-1
25Error -28 from pcre32_fullinfo(0)
26Running in 32-bit mode but pattern was compiled in 16-bit mode
27
28<!testsaved16BE-1
29Compiled pattern loaded from testsaved16BE-1
30Study data loaded from testsaved16BE-1
31Error -28 from pcre32_fullinfo(0)
32Running in 32-bit mode but pattern was compiled in 16-bit mode
33
34<!testsaved32LE-1
35Compiled pattern loaded from testsaved32LE-1
36Study data loaded from testsaved32LE-1
37------------------------------------------------------------------
38  0  94 Bra
39  2     ^
40  3     [La]
41 12  27 CBra 1
42 15  12 Bra
43 17     [ALal]+
44 27  12 Ket
45 29     [\x00-,.-WY-wy-\xff] (neg)*?
46 39  27 Ket
47 41  12 CBraPos 2
48 44     [\x{150}-\x{250}\x{300}]
49 53  19 Alt
50 55     [^AS-Uas-u\x{800}\x{d800}-\x{dfff}]
51 72  31 KetRpos
52 74     [^\x08#\x{500}\x{1000}]{3,5}
53 93     $
54 94  94 Ket
55 96     End
56------------------------------------------------------------------
57Capturing subpattern count = 2
58Named capturing subpatterns:
59  name    1
60  other   2
61Options: anchored extended
62No first char
63No need char
64Subject length lower bound = 6
65No starting char list
66
67<!testsaved32BE-1
68Compiled pattern loaded from testsaved32BE-1
69Study data loaded from testsaved32BE-1
70------------------------------------------------------------------
71  0  94 Bra
72  2     ^
73  3     [La]
74 12  27 CBra 1
75 15  12 Bra
76 17     [ALal]+
77 27  12 Ket
78 29     [\x00-,.-WY-wy-\xff] (neg)*?
79 39  27 Ket
80 41  12 CBraPos 2
81 44     [\x{150}-\x{250}\x{300}]
82 53  19 Alt
83 55     [^AS-Uas-u\x{800}\x{d800}-\x{dfff}]
84 72  31 KetRpos
85 74     [^\x08#\x{500}\x{1000}]{3,5}
86 93     $
87 94  94 Ket
88 96     End
89------------------------------------------------------------------
90Capturing subpattern count = 2
91Named capturing subpatterns:
92  name    1
93  other   2
94Options: anchored extended
95No first char
96No need char
97Subject length lower bound = 6
98No starting char list
99
100/-- End of testinput21 --/
101