/[pcre]/code/branches/pcre16/testdata/testoutput14
ViewVC logotype

Contents of /code/branches/pcre16/testdata/testoutput14

Parent Directory Parent Directory | Revision Log Revision Log


Revision 818 - (show annotations)
Thu Dec 22 20:11:31 2011 UTC (8 years, 5 months ago) by ph10
File size: 12805 byte(s)
More 16-bit fixes, and removal of pcre_info().
1 /-- This set of tests is run only with the 8-bit library. It starts with all
2 the tests of the POSIX interface, because that is supported only with the
3 8-bit library. --/
4
5 /abc/P
6 abc
7 0: abc
8 *** Failers
9 No match: POSIX code 17: match failed
10
11 /^abc|def/P
12 abcdef
13 0: abc
14 abcdef\B
15 0: def
16
17 /.*((abc)$|(def))/P
18 defabc
19 0: defabc
20 1: abc
21 2: abc
22 \Zdefabc
23 0: def
24 1: def
25 3: def
26
27 /the quick brown fox/P
28 the quick brown fox
29 0: the quick brown fox
30 *** Failers
31 No match: POSIX code 17: match failed
32 The Quick Brown Fox
33 No match: POSIX code 17: match failed
34
35 /the quick brown fox/Pi
36 the quick brown fox
37 0: the quick brown fox
38 The Quick Brown Fox
39 0: The Quick Brown Fox
40
41 /abc.def/P
42 *** Failers
43 No match: POSIX code 17: match failed
44 abc\ndef
45 No match: POSIX code 17: match failed
46
47 /abc$/P
48 abc
49 0: abc
50 abc\n
51 0: abc
52
53 /(abc)\2/P
54 Failed: POSIX code 15: bad back reference at offset 7
55
56 /(abc\1)/P
57 abc
58 No match: POSIX code 17: match failed
59
60 /a*(b+)(z)(z)/P
61 aaaabbbbzzzz
62 0: aaaabbbbzz
63 1: bbbb
64 2: z
65 3: z
66 aaaabbbbzzzz\O0
67 aaaabbbbzzzz\O1
68 0: aaaabbbbzz
69 aaaabbbbzzzz\O2
70 0: aaaabbbbzz
71 1: bbbb
72 aaaabbbbzzzz\O3
73 0: aaaabbbbzz
74 1: bbbb
75 2: z
76 aaaabbbbzzzz\O4
77 0: aaaabbbbzz
78 1: bbbb
79 2: z
80 3: z
81 aaaabbbbzzzz\O5
82 0: aaaabbbbzz
83 1: bbbb
84 2: z
85 3: z
86
87 /ab.cd/P
88 ab-cd
89 0: ab-cd
90 ab=cd
91 0: ab=cd
92 ** Failers
93 No match: POSIX code 17: match failed
94 ab\ncd
95 No match: POSIX code 17: match failed
96
97 /ab.cd/Ps
98 ab-cd
99 0: ab-cd
100 ab=cd
101 0: ab=cd
102 ab\ncd
103 0: ab\x0acd
104
105 /a(b)c/PN
106 abc
107 Matched with REG_NOSUB
108
109 /a(?P<name>b)c/PN
110 abc
111 Matched with REG_NOSUB
112
113 /a?|b?/P
114 abc
115 0: a
116 ** Failers
117 0:
118 ddd\N
119 No match: POSIX code 17: match failed
120
121 /\w+A/P
122 CDAAAAB
123 0: CDAAAA
124
125 /\w+A/PU
126 CDAAAAB
127 0: CDA
128
129 /\Biss\B/I+P
130 Mississippi
131 0: iss
132 0+ issippi
133
134 /-- End of POSIX tests --/
135
136 /a\Cb/
137 aXb
138 0: aXb
139 a\nb
140 0: a\x0ab
141 ** Failers (too big char)
142 No match
143 A\x{123}B
144 ** Character \x{123} is greater than 255 and UTF-8 mode is not enabled.
145 ** Truncation will probably give the wrong result.
146 No match
147
148 /\x{100}/I
149 Failed: character value in \x{...} sequence is too large at offset 6
150
151 / (?: [\040\t] | \(
152 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
153 \) )* # optional leading comment
154 (?: (?:
155 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
156 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
157 |
158 " (?: # opening quote...
159 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
160 | # or
161 \\ [^\x80-\xff] # Escaped something (something != CR)
162 )* " # closing quote
163 ) # initial word
164 (?: (?: [\040\t] | \(
165 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
166 \) )* \. (?: [\040\t] | \(
167 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
168 \) )* (?:
169 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
170 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
171 |
172 " (?: # opening quote...
173 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
174 | # or
175 \\ [^\x80-\xff] # Escaped something (something != CR)
176 )* " # closing quote
177 ) )* # further okay, if led by a period
178 (?: [\040\t] | \(
179 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
180 \) )* @ (?: [\040\t] | \(
181 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
182 \) )* (?:
183 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
184 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
185 | \[ # [
186 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
187 \] # ]
188 ) # initial subdomain
189 (?: #
190 (?: [\040\t] | \(
191 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
192 \) )* \. # if led by a period...
193 (?: [\040\t] | \(
194 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
195 \) )* (?:
196 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
197 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
198 | \[ # [
199 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
200 \] # ]
201 ) # ...further okay
202 )*
203 # address
204 | # or
205 (?:
206 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
207 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
208 |
209 " (?: # opening quote...
210 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
211 | # or
212 \\ [^\x80-\xff] # Escaped something (something != CR)
213 )* " # closing quote
214 ) # one word, optionally followed by....
215 (?:
216 [^()<>@,;:".\\\[\]\x80-\xff\000-\010\012-\037] | # atom and space parts, or...
217 \(
218 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
219 \) | # comments, or...
220
221 " (?: # opening quote...
222 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
223 | # or
224 \\ [^\x80-\xff] # Escaped something (something != CR)
225 )* " # closing quote
226 # quoted strings
227 )*
228 < (?: [\040\t] | \(
229 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
230 \) )* # leading <
231 (?: @ (?: [\040\t] | \(
232 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
233 \) )* (?:
234 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
235 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
236 | \[ # [
237 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
238 \] # ]
239 ) # initial subdomain
240 (?: #
241 (?: [\040\t] | \(
242 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
243 \) )* \. # if led by a period...
244 (?: [\040\t] | \(
245 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
246 \) )* (?:
247 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
248 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
249 | \[ # [
250 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
251 \] # ]
252 ) # ...further okay
253 )*
254
255 (?: (?: [\040\t] | \(
256 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
257 \) )* , (?: [\040\t] | \(
258 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
259 \) )* @ (?: [\040\t] | \(
260 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
261 \) )* (?:
262 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
263 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
264 | \[ # [
265 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
266 \] # ]
267 ) # initial subdomain
268 (?: #
269 (?: [\040\t] | \(
270 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
271 \) )* \. # if led by a period...
272 (?: [\040\t] | \(
273 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
274 \) )* (?:
275 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
276 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
277 | \[ # [
278 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
279 \] # ]
280 ) # ...further okay
281 )*
282 )* # further okay, if led by comma
283 : # closing colon
284 (?: [\040\t] | \(
285 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
286 \) )* )? # optional route
287 (?:
288 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
289 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
290 |
291 " (?: # opening quote...
292 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
293 | # or
294 \\ [^\x80-\xff] # Escaped something (something != CR)
295 )* " # closing quote
296 ) # initial word
297 (?: (?: [\040\t] | \(
298 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
299 \) )* \. (?: [\040\t] | \(
300 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
301 \) )* (?:
302 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
303 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
304 |
305 " (?: # opening quote...
306 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
307 | # or
308 \\ [^\x80-\xff] # Escaped something (something != CR)
309 )* " # closing quote
310 ) )* # further okay, if led by a period
311 (?: [\040\t] | \(
312 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
313 \) )* @ (?: [\040\t] | \(
314 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
315 \) )* (?:
316 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
317 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
318 | \[ # [
319 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
320 \] # ]
321 ) # initial subdomain
322 (?: #
323 (?: [\040\t] | \(
324 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
325 \) )* \. # if led by a period...
326 (?: [\040\t] | \(
327 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
328 \) )* (?:
329 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
330 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
331 | \[ # [
332 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
333 \] # ]
334 ) # ...further okay
335 )*
336 # address spec
337 (?: [\040\t] | \(
338 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
339 \) )* > # trailing >
340 # name and address
341 ) (?: [\040\t] | \(
342 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
343 \) )* # optional trailing comment
344 /xSI
345 Capturing subpattern count = 0
346 Contains explicit CR or LF match
347 Options: extended
348 No first char
349 No need char
350 Subject length lower bound = 3
351 Starting byte set: \x09 \x20 ! " # $ % & ' ( * + - / 0 1 2 3 4 5 6 7 8
352 9 = ? A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ^ _ ` a b c d e
353 f g h i j k l m n o p q r s t u v w x y z { | } ~ \x7f
354
355 /-- End of testinput14 --/

  ViewVC Help
Powered by ViewVC 1.1.5