new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / external / pcre2-10.32 / testdata / testoutput22-32
1 # Tests of \C when Unicode support is available. Note that \C is not supported
2 # for DFA matching in UTF mode, so this test is not run with -dfa. The output
3 # of this test is different in 8-, 16-, and 32-bit modes. Some tests may match
4 # in some widths and not in others.
5
6 /ab\Cde/utf,info
7 Capturing subpattern count = 0
8 Contains \C
9 Options: utf
10 First code unit = 'a'
11 Last code unit = 'e'
12 Subject length lower bound = 5
13     abXde
14  0: abXde
15
16 # This should produce an error diagnostic (\C in UTF lookbehind) in 8-bit and
17 # 16-bit modes, but not in 32-bit mode.
18
19 /(?<=ab\Cde)X/utf
20     ab!deXYZ
21  0: X
22
23 # Autopossessification tests
24
25 /\C+\X \X+\C/Bx
26 ------------------------------------------------------------------
27         Bra
28         AllAny+
29         extuni
30         extuni+
31         AllAny
32         Ket
33         End
34 ------------------------------------------------------------------
35
36 /\C+\X \X+\C/Bx,utf
37 ------------------------------------------------------------------
38         Bra
39         AllAny+
40         extuni
41         extuni+
42         AllAny
43         Ket
44         End
45 ------------------------------------------------------------------
46
47 /\C\X*TӅ;\r
48 {0,6}\v+\rF
49 /utf
50 \= Expect no match
51     Ӆ\x0a
52 No match
53
54 /\C(\W?ſ)'?{{/utf
55 \= Expect no match
56     \\C(\\W?ſ)'?{{
57 No match
58
59 /X(\C{3})/utf
60     X\x{1234}
61 No match
62     X\x{11234}Y
63 No match
64     X\x{11234}YZ
65  0: X\x{11234}YZ
66  1: \x{11234}YZ
67
68 /X(\C{4})/utf
69     X\x{1234}YZ
70 No match
71     X\x{11234}YZ
72 No match
73     X\x{11234}YZW
74  0: X\x{11234}YZW
75  1: \x{11234}YZW
76
77 /X\C*/utf
78     XYZabcdce
79  0: XYZabcdce
80
81 /X\C*?/utf
82     XYZabcde
83  0: X
84
85 /X\C{3,5}/utf
86     Xabcdefg
87  0: Xabcde
88     X\x{1234}
89 No match
90     X\x{1234}YZ
91  0: X\x{1234}YZ
92     X\x{1234}\x{512}
93 No match
94     X\x{1234}\x{512}YZ
95  0: X\x{1234}\x{512}YZ
96     X\x{11234}Y
97 No match
98     X\x{11234}YZ
99  0: X\x{11234}YZ
100     X\x{11234}\x{512}
101 No match
102     X\x{11234}\x{512}YZ
103  0: X\x{11234}\x{512}YZ
104     X\x{11234}\x{512}\x{11234}Z
105  0: X\x{11234}\x{512}\x{11234}Z
106
107 /X\C{3,5}?/utf
108     Xabcdefg
109  0: Xabc
110     X\x{1234}
111 No match
112     X\x{1234}YZ
113  0: X\x{1234}YZ
114     X\x{1234}\x{512}
115 No match
116     X\x{11234}Y
117 No match
118     X\x{11234}YZ
119  0: X\x{11234}YZ
120     X\x{11234}\x{512}YZ
121  0: X\x{11234}\x{512}Y
122     X\x{11234}
123 No match
124
125 /a\Cb/utf
126     aXb
127  0: aXb
128     a\nb
129  0: a\x{0a}b
130     a\x{100}b
131  0: a\x{100}b
132
133 /a\C\Cb/utf
134     a\x{100}b
135 No match
136     a\x{12257}b
137 No match
138     a\x{12257}\x{11234}b
139  0: a\x{12257}\x{11234}b
140
141 /ab\Cde/utf
142     abXde
143  0: abXde
144
145 # This one is here not because it's different to Perl, but because the way
146 # the captured single code unit is displayed. (In Perl it becomes a character,
147 # and you can't tell the difference.)
148
149 /X(\C)(.*)/utf
150     X\x{1234}
151  0: X\x{1234}
152  1: \x{1234}
153  2: 
154     X\nabc
155  0: X\x{0a}abc
156  1: \x{0a}
157  2: abc
158
159 # This one is here because Perl gives out a grumbly error message (quite
160 # correctly, but that messes up comparisons).
161
162 /a\Cb/utf
163 \= Expect no match in 8-bit mode
164     a\x{100}b
165  0: a\x{100}b
166
167 /^ab\C/utf,no_start_optimize
168 \= Expect no match - tests \C at end of subject
169     ab
170 No match
171
172 /\C[^\v]+\x80/utf
173     [AΏBŀC]
174 No match
175
176 /\C[^\d]+\x80/utf
177     [AΏBŀC]
178 No match
179
180 # End of testinput22