/[pcre]/code/trunk/testdata/testoutput14
ViewVC logotype

Contents of /code/trunk/testdata/testoutput14

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1382 - (show annotations)
Fri Oct 18 07:55:07 2013 UTC (5 years, 11 months ago) by zherczeg
File size: 17792 byte(s)
Auto-possessify OP_CLASS and some other bugfixes.
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 /abc/\P
135 Failed: POSIX code 9: bad escape sequence at offset 4
136
137 /-- End of POSIX tests --/
138
139 /a\Cb/
140 aXb
141 0: aXb
142 a\nb
143 0: a\x0ab
144 ** Failers (too big char)
145 No match
146 A\x{123}B
147 ** Character \x{123} is greater than 255 and UTF-8 mode is not enabled.
148 ** Truncation will probably give the wrong result.
149 No match
150 A\o{443}B
151 ** Character \x{123} is greater than 255 and UTF-8 mode is not enabled.
152 ** Truncation will probably give the wrong result.
153 No match
154
155 /\x{100}/I
156 Failed: character value in \x{} or \o{} is too large at offset 6
157
158 /\o{400}/I
159 Failed: character value in \x{} or \o{} is too large at offset 6
160
161 / (?: [\040\t] | \(
162 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
163 \) )* # optional leading comment
164 (?: (?:
165 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
166 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
167 |
168 " (?: # opening quote...
169 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
170 | # or
171 \\ [^\x80-\xff] # Escaped something (something != CR)
172 )* " # closing quote
173 ) # initial word
174 (?: (?: [\040\t] | \(
175 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
176 \) )* \. (?: [\040\t] | \(
177 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
178 \) )* (?:
179 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
180 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
181 |
182 " (?: # opening quote...
183 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
184 | # or
185 \\ [^\x80-\xff] # Escaped something (something != CR)
186 )* " # closing quote
187 ) )* # further okay, if led by a period
188 (?: [\040\t] | \(
189 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
190 \) )* @ (?: [\040\t] | \(
191 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
192 \) )* (?:
193 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
194 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
195 | \[ # [
196 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
197 \] # ]
198 ) # initial subdomain
199 (?: #
200 (?: [\040\t] | \(
201 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
202 \) )* \. # if led by a period...
203 (?: [\040\t] | \(
204 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
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 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
210 \] # ]
211 ) # ...further okay
212 )*
213 # address
214 | # or
215 (?:
216 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
217 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
218 |
219 " (?: # opening quote...
220 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
221 | # or
222 \\ [^\x80-\xff] # Escaped something (something != CR)
223 )* " # closing quote
224 ) # one word, optionally followed by....
225 (?:
226 [^()<>@,;:".\\\[\]\x80-\xff\000-\010\012-\037] | # atom and space parts, or...
227 \(
228 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
229 \) | # comments, or...
230
231 " (?: # opening quote...
232 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
233 | # or
234 \\ [^\x80-\xff] # Escaped something (something != CR)
235 )* " # closing quote
236 # quoted strings
237 )*
238 < (?: [\040\t] | \(
239 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
240 \) )* # leading <
241 (?: @ (?: [\040\t] | \(
242 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
243 \) )* (?:
244 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
245 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
246 | \[ # [
247 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
248 \] # ]
249 ) # initial subdomain
250 (?: #
251 (?: [\040\t] | \(
252 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
253 \) )* \. # if led by a period...
254 (?: [\040\t] | \(
255 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
256 \) )* (?:
257 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
258 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
259 | \[ # [
260 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
261 \] # ]
262 ) # ...further okay
263 )*
264
265 (?: (?: [\040\t] | \(
266 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
267 \) )* , (?: [\040\t] | \(
268 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
269 \) )* @ (?: [\040\t] | \(
270 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
271 \) )* (?:
272 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
273 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
274 | \[ # [
275 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
276 \] # ]
277 ) # initial subdomain
278 (?: #
279 (?: [\040\t] | \(
280 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
281 \) )* \. # if led by a period...
282 (?: [\040\t] | \(
283 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
284 \) )* (?:
285 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
286 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
287 | \[ # [
288 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
289 \] # ]
290 ) # ...further okay
291 )*
292 )* # further okay, if led by comma
293 : # closing colon
294 (?: [\040\t] | \(
295 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
296 \) )* )? # optional route
297 (?:
298 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
299 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
300 |
301 " (?: # opening quote...
302 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
303 | # or
304 \\ [^\x80-\xff] # Escaped something (something != CR)
305 )* " # closing quote
306 ) # initial word
307 (?: (?: [\040\t] | \(
308 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
309 \) )* \. (?: [\040\t] | \(
310 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
311 \) )* (?:
312 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
313 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
314 |
315 " (?: # opening quote...
316 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
317 | # or
318 \\ [^\x80-\xff] # Escaped something (something != CR)
319 )* " # closing quote
320 ) )* # further okay, if led by a period
321 (?: [\040\t] | \(
322 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
323 \) )* @ (?: [\040\t] | \(
324 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
325 \) )* (?:
326 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
327 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
328 | \[ # [
329 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
330 \] # ]
331 ) # initial subdomain
332 (?: #
333 (?: [\040\t] | \(
334 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
335 \) )* \. # if led by a period...
336 (?: [\040\t] | \(
337 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
338 \) )* (?:
339 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
340 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
341 | \[ # [
342 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
343 \] # ]
344 ) # ...further okay
345 )*
346 # address spec
347 (?: [\040\t] | \(
348 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
349 \) )* > # trailing >
350 # name and address
351 ) (?: [\040\t] | \(
352 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
353 \) )* # optional trailing comment
354 /xSI
355 Capturing subpattern count = 0
356 Contains explicit CR or LF match
357 Options: extended
358 No first char
359 No need char
360 Subject length lower bound = 3
361 Starting byte set: \x09 \x20 ! " # $ % & ' ( * + - / 0 1 2 3 4 5 6 7 8
362 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
363 f g h i j k l m n o p q r s t u v w x y z { | } ~ \x7f
364
365 /-- Although this saved pattern was compiled with link-size=2, it does no harm
366 to run this test with other link sizes because it is going to generated a
367 "compiled in wrong mode" error as soon as it is loaded, so the link size does
368 not matter. --/
369
370 <!testsaved16
371 Compiled pattern loaded from testsaved16
372 No study data
373 Error -28 from pcre_fullinfo(0)
374 Running in 8-bit mode but pattern was compiled in 16-bit mode
375
376 <!testsaved32
377 Compiled pattern loaded from testsaved32
378 No study data
379 Error -28 from pcre_fullinfo(0)
380 Running in 8-bit mode but pattern was compiled in 32-bit mode
381
382 /\h/SI
383 Capturing subpattern count = 0
384 No options
385 No first char
386 No need char
387 Subject length lower bound = 1
388 Starting byte set: \x09 \x20 \xa0
389
390 /\H/SI
391 Capturing subpattern count = 0
392 No options
393 No first char
394 No need char
395 Subject length lower bound = 1
396 No set of starting bytes
397
398 /\v/SI
399 Capturing subpattern count = 0
400 No options
401 No first char
402 No need char
403 Subject length lower bound = 1
404 Starting byte set: \x0a \x0b \x0c \x0d \x85
405
406 /\V/SI
407 Capturing subpattern count = 0
408 No options
409 No first char
410 No need char
411 Subject length lower bound = 1
412 No set of starting bytes
413
414 /\R/SI
415 Capturing subpattern count = 0
416 No options
417 No first char
418 No need char
419 Subject length lower bound = 1
420 Starting byte set: \x0a \x0b \x0c \x0d \x85
421
422 /[\h]/BZ
423 ------------------------------------------------------------------
424 Bra
425 [\x09 \xa0]
426 Ket
427 End
428 ------------------------------------------------------------------
429 >\x09<
430 0: \x09
431
432 /[\h]+/BZ
433 ------------------------------------------------------------------
434 Bra
435 [\x09 \xa0]++
436 Ket
437 End
438 ------------------------------------------------------------------
439 >\x09\x20\xa0<
440 0: \x09 \xa0
441
442 /[\v]/BZ
443 ------------------------------------------------------------------
444 Bra
445 [\x0a-\x0d\x85]
446 Ket
447 End
448 ------------------------------------------------------------------
449
450 /[\H]/BZ
451 ------------------------------------------------------------------
452 Bra
453 [\x00-\x08\x0a-\x1f!-\x9f\xa1-\xff]
454 Ket
455 End
456 ------------------------------------------------------------------
457
458 /[^\h]/BZ
459 ------------------------------------------------------------------
460 Bra
461 [\x00-\x08\x0a-\x1f!-\x9f\xa1-\xff] (neg)
462 Ket
463 End
464 ------------------------------------------------------------------
465
466 /[\V]/BZ
467 ------------------------------------------------------------------
468 Bra
469 [\x00-\x09\x0e-\x84\x86-\xff]
470 Ket
471 End
472 ------------------------------------------------------------------
473
474 /[\x0a\V]/BZ
475 ------------------------------------------------------------------
476 Bra
477 [\x00-\x0a\x0e-\x84\x86-\xff]
478 Ket
479 End
480 ------------------------------------------------------------------
481
482 /\777/I
483 Failed: octal value is greater than \377 in 8-bit non-UTF-8 mode at offset 3
484
485 /(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF)XX/K
486 Failed: name is too long in (*MARK), (*PRUNE), (*SKIP), or (*THEN) at offset 259
487
488 /(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDE)XX/K
489 XX
490 0: XX
491 MK: 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDE
492
493 /\u0100/<JS>
494 Failed: character value in \u.... sequence is too large at offset 5
495
496 /[\u0100-\u0200]/<JS>
497 Failed: character value in \u.... sequence is too large at offset 6
498
499 /[^\x00-a]{12,}[^b-\xff]*/BZ
500 ------------------------------------------------------------------
501 Bra
502 [b-\xff] (neg){12,}+
503 [\x00-a] (neg)*+
504 Ket
505 End
506 ------------------------------------------------------------------
507
508 /[^\s]*\s* [^\W]+\W+ [^\d]*?\d0 [^\d\w]{4,6}?\w*A/BZ
509 ------------------------------------------------------------------
510 Bra
511 [\x00-\x08\x0e-\x1f!-\xff] (neg)*+
512 \s*
513
514 [0-9A-Z_a-z]++
515 \W+
516
517 [\x00-/:-\xff] (neg)*+
518 \d
519 0
520 [\x00-/:-@[-^`{-\xff] (neg){4,6}+
521 \w*
522 A
523 Ket
524 End
525 ------------------------------------------------------------------
526
527 /-- End of testinput14 --/

  ViewVC Help
Powered by ViewVC 1.1.5