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

Diff of /code/trunk/testdata/testoutput17

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 964 by ph10, Fri May 4 13:03:39 2012 UTC revision 1415 by zherczeg, Sun Dec 22 20:47:08 2013 UTC
# Line 1  Line 1 
1  /-- This set of tests is for the 16-bit library's basic (non-UTF-16) features  /-- This set of tests is for the 16- and 32-bit library's basic (non-UTF-16
2      that are not compatible with the 8-bit library, or which give different      or -32) features that are not compatible with the 8-bit library, or which
3      output in 16-bit mode. --/      give different output in 16- or 32-bit mode. --/
4    
5    < forbid 8W
6    
7  /a\Cb/  /a\Cb/
8      aXb      aXb
# Line 8  Line 10 
10      a\nb      a\nb
11   0: a\x0ab   0: a\x0ab
12    
 /-- Check maximum non-UTF character size --/  
   
 /\x{ffff}/  
     A\x{ffff}B  
  0: \x{ffff}  
   
 /\x{10000}/  
 Failed: character value in \x{...} sequence is too large at offset 8  
   
13  /[^\x{c4}]/DZ  /[^\x{c4}]/DZ
14  ------------------------------------------------------------------  ------------------------------------------------------------------
15          Bra          Bra
16          [^\xc4]          [^\x{c4}]
17          Ket          Ket
18          End          End
19  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 28  Capturing subpattern count = 0 Line 21  Capturing subpattern count = 0
21  No options  No options
22  No first char  No first char
23  No need char  No need char
   
24    
25  /\x{100}/I  /\x{100}/I
26  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 253  Starting byte set: \x09 \x20 ! " # $ % & Line 245  Starting byte set: \x09 \x20 ! " # $ % &
245  /[\h]+/BZ  /[\h]+/BZ
246  ------------------------------------------------------------------  ------------------------------------------------------------------
247          Bra          Bra
248          [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}]+          [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}]++
249          Ket          Ket
250          End          End
251  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 268  Starting byte set: \x09 \x20 ! " # $ % & Line 260  Starting byte set: \x09 \x20 ! " # $ % &
260          End          End
261  ------------------------------------------------------------------  ------------------------------------------------------------------
262    
 /[\H]/BZ  
 ------------------------------------------------------------------  
         Bra  
         [\x00-\x08\x0a-\x1f!-\x9f\xa1-\xff\x{100}-\x{167f}\x{1681}-\x{180d}\x{180f}-\x{1fff}\x{200b}-\x{202e}\x{2030}-\x{205e}\x{2060}-\x{2fff}\x{3001}-\x{ffff}]  
         Ket  
         End  
 ------------------------------------------------------------------  
   
263  /[^\h]/BZ  /[^\h]/BZ
264  ------------------------------------------------------------------  ------------------------------------------------------------------
265          Bra          Bra
# Line 284  Starting byte set: \x09 \x20 ! " # $ % & Line 268  Starting byte set: \x09 \x20 ! " # $ % &
268          End          End
269  ------------------------------------------------------------------  ------------------------------------------------------------------
270    
 /[\V]/BZ  
 ------------------------------------------------------------------  
         Bra  
         [\x00-\x09\x0e-\x84\x86-\xff\x{100}-\x{2027}\x{202a}-\x{ffff}]  
         Ket  
         End  
 ------------------------------------------------------------------  
   
 /[\x0a\V]/BZ  
 ------------------------------------------------------------------  
         Bra  
         [\x00-\x0a\x0e-\x84\x86-\xff\x{100}-\x{2027}\x{202a}-\x{ffff}]  
         Ket  
         End  
 ------------------------------------------------------------------  
   
271  /\h+/SI  /\h+/SI
272  Capturing subpattern count = 0  Capturing subpattern count = 0
273  No options  No options
# Line 315  Starting byte set: \x09 \x20 \xa0 \xff Line 283  Starting byte set: \x09 \x20 \xa0 \xff
283  /[\h\x{dc00}]+/BZSI  /[\h\x{dc00}]+/BZSI
284  ------------------------------------------------------------------  ------------------------------------------------------------------
285          Bra          Bra
286          [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}\x{dc00}]+          [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}\x{dc00}]++
287          Ket          Ket
288          End          End
289  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 324  No options Line 292  No options
292  No first char  No first char
293  No need char  No need char
294  Subject length lower bound = 1  Subject length lower bound = 1
295  No set of starting bytes  Starting byte set: \x09 \x20 \xa0 \xff
296      \x{1681}\x{200b}\x{1680}\x{2000}\x{202f}\x{3000}      \x{1681}\x{200b}\x{1680}\x{2000}\x{202f}\x{3000}
297   0: \x{1680}\x{2000}\x{202f}\x{3000}   0: \x{1680}\x{2000}\x{202f}\x{3000}
298      \x{3001}\x{2fff}\x{200a}\xa0\x{2000}      \x{3001}\x{2fff}\x{200a}\xa0\x{2000}
# Line 346  No set of starting bytes Line 314  No set of starting bytes
314      \xa0\x{3000}\x9f\xa1\x{2fff}\x{3001}      \xa0\x{3000}\x9f\xa1\x{2fff}\x{3001}
315   0: \x9f\xa1\x{2fff}\x{3001}   0: \x9f\xa1\x{2fff}\x{3001}
316    
317  /[\H\x{d800}]+/BZSI  /[\H\x{d800}]+/
 ------------------------------------------------------------------  
         Bra  
         [\x00-\x08\x0a-\x1f!-\x9f\xa1-\xff\x{100}-\x{167f}\x{1681}-\x{180d}\x{180f}-\x{1fff}\x{200b}-\x{202e}\x{2030}-\x{205e}\x{2060}-\x{2fff}\x{3001}-\x{ffff}\x{d800}]+  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 No options  
 No first char  
 No need char  
 Subject length lower bound = 1  
 No set of starting bytes  
318      \x{1680}\x{180e}\x{167f}\x{1681}\x{180d}\x{180f}      \x{1680}\x{180e}\x{167f}\x{1681}\x{180d}\x{180f}
319   0: \x{167f}\x{1681}\x{180d}\x{180f}   0: \x{167f}\x{1681}\x{180d}\x{180f}
320      \x{2000}\x{200a}\x{1fff}\x{200b}      \x{2000}\x{200a}\x{1fff}\x{200b}
# Line 383  Starting byte set: \x0a \x0b \x0c \x0d \ Line 339  Starting byte set: \x0a \x0b \x0c \x0d \
339  /[\v\x{dc00}]+/BZSI  /[\v\x{dc00}]+/BZSI
340  ------------------------------------------------------------------  ------------------------------------------------------------------
341          Bra          Bra
342          [\x0a-\x0d\x85\x{2028}-\x{2029}\x{dc00}]+          [\x0a-\x0d\x85\x{2028}-\x{2029}\x{dc00}]++
343          Ket          Ket
344          End          End
345  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 392  No options Line 348  No options
348  No first char  No first char
349  No need char  No need char
350  Subject length lower bound = 1  Subject length lower bound = 1
351  No set of starting bytes  Starting byte set: \x0a \x0b \x0c \x0d \x85 \xff
352      \x{2027}\x{2030}\x{2028}\x{2029}      \x{2027}\x{2030}\x{2028}\x{2029}
353   0: \x{2028}\x{2029}   0: \x{2028}\x{2029}
354      \x09\x0e\x84\x86\x85\x0a\x0b\x0c\x0d      \x09\x0e\x84\x86\x85\x0a\x0b\x0c\x0d
# Line 410  No set of starting bytes Line 366  No set of starting bytes
366      \x85\x0a\x0b\x0c\x0d\x09\x0e\x84\x86      \x85\x0a\x0b\x0c\x0d\x09\x0e\x84\x86
367   0: \x09\x0e\x84\x86   0: \x09\x0e\x84\x86
368    
369  /[\V\x{d800}]+/BZSI  /[\V\x{d800}]+/
 ------------------------------------------------------------------  
         Bra  
         [\x00-\x09\x0e-\x84\x86-\xff\x{100}-\x{2027}\x{202a}-\x{ffff}\x{d800}]+  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 No options  
 No first char  
 No need char  
 Subject length lower bound = 1  
 No set of starting bytes  
370      \x{2028}\x{2029}\x{2027}\x{2030}      \x{2028}\x{2029}\x{2027}\x{2030}
371   0: \x{2027}\x{2030}   0: \x{2027}\x{2030}
372      \x85\x0a\x0b\x0c\x0d\x09\x0e\x84\x86      \x85\x0a\x0b\x0c\x0d\x09\x0e\x84\x86
# Line 452  Need char = \x{dd00} Line 396  Need char = \x{dd00}
396  ------------------------------------------------------------------  ------------------------------------------------------------------
397          Bra          Bra
398          [^\x80]          [^\x80]
399          [^\xff]          [^\x{ff}]
400          [^\x{100}]          [^\x{100}]
401          [^\x{1000}]          [^\x{1000}]
402          [^\x{ffff}]          [^\x{ffff}]
# Line 464  Need char = \x{dd00} Line 408  Need char = \x{dd00}
408  ------------------------------------------------------------------  ------------------------------------------------------------------
409          Bra          Bra
410       /i [^\x80]       /i [^\x80]
411       /i [^\xff]       /i [^\x{ff}]
412       /i [^\x{100}]       /i [^\x{100}]
413       /i [^\x{1000}]       /i [^\x{1000}]
414       /i [^\x{ffff}]       /i [^\x{ffff}]
# Line 498  Need char = \x{dd00} Line 442  Need char = \x{dd00}
442       /i [^\x{8000}]*       /i [^\x{8000}]*
443       /i [^\x{7fff}]{2}       /i [^\x{7fff}]{2}
444       /i [^\x{7fff}]{0,7}?       /i [^\x{7fff}]{0,7}?
         Once  
445       /i [^\x{100}]{5}       /i [^\x{100}]{5}
446       /i [^\x{100}]?       /i [^\x{100}]?+
         Ket  
447          Ket          Ket
448          End          End
449  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 516  MK: 0123456789ABCDEF0123456789ABCDEF0123 Line 458  MK: 0123456789ABCDEF0123456789ABCDEF0123
458   0: XX   0: XX
459  MK: 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDE  MK: 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDE
460    
461    /\u0100/<JS>BZ
462    ------------------------------------------------------------------
463            Bra
464            \x{100}
465            Ket
466            End
467    ------------------------------------------------------------------
468    
469    /[\u0100-\u0200]/<JS>BZ
470    ------------------------------------------------------------------
471            Bra
472            [\x{100}-\x{200}]
473            Ket
474            End
475    ------------------------------------------------------------------
476    
477    /\ud800/<JS>BZ
478    ------------------------------------------------------------------
479            Bra
480            \x{d800}
481            Ket
482            End
483    ------------------------------------------------------------------
484    
485    /^\x{ffff}+/i
486        \x{ffff}
487     0: \x{ffff}
488    
489    /^\x{ffff}?/i
490        \x{ffff}
491     0: \x{ffff}
492    
493    /^\x{ffff}*/i
494        \x{ffff}
495     0: \x{ffff}
496    
497    /^\x{ffff}{3}/i
498        \x{ffff}\x{ffff}\x{ffff}
499     0: \x{ffff}\x{ffff}\x{ffff}
500    
501    /^\x{ffff}{0,3}/i
502        \x{ffff}
503     0: \x{ffff}
504    
505    /[^\x00-a]{12,}[^b-\xff]*/BZ
506    ------------------------------------------------------------------
507            Bra
508            [b-\xff] (neg){12,}
509            [\x00-a] (neg)*+
510            Ket
511            End
512    ------------------------------------------------------------------
513    
514    /[^\s]*\s* [^\W]+\W+ [^\d]*?\d0 [^\d\w]{4,6}?\w*A/BZ
515    ------------------------------------------------------------------
516            Bra
517            [\x00-\x08\x0e-\x1f!-\xff] (neg)*
518            \s*
519    
520            [0-9A-Z_a-z]++
521            \W+
522    
523            [\x00-/:-\xff] (neg)*?
524            \d
525            0
526            [\x00-/:-@[-^`{-\xff] (neg){4,6}?
527            \w*
528            A
529            Ket
530            End
531    ------------------------------------------------------------------
532    
533    /a*[b-\x{200}]?a#a*[b-\x{200}]?b#[a-f]*[g-\x{200}]*#[g-\x{200}]*[a-c]*#[g-\x{200}]*[a-h]*/BZ
534    ------------------------------------------------------------------
535            Bra
536            a*
537            [b-\xff\x{100}-\x{200}]?+
538            a#
539            a*+
540            [b-\xff\x{100}-\x{200}]?
541            b#
542            [a-f]*+
543            [g-\xff\x{100}-\x{200}]*+
544            #
545            [g-\xff\x{100}-\x{200}]*+
546            [a-c]*+
547            #
548            [g-\xff\x{100}-\x{200}]*
549            [a-h]*+
550            Ket
551            End
552    ------------------------------------------------------------------
553    
554    /^[\x{1234}\x{4321}]{2,4}?/
555        \x{1234}\x{1234}\x{1234}
556     0: \x{1234}\x{1234}
557    
558  /-- End of testinput17 --/  /-- End of testinput17 --/

Legend:
Removed from v.964  
changed lines
  Added in v.1415

  ViewVC Help
Powered by ViewVC 1.1.5