/[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 842 by ph10, Sat Dec 31 15:19:04 2011 UTC revision 1433 by ph10, Fri Jan 3 15:15:00 2014 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 236  Options: extended Line 228  Options: extended
228  No first char  No first char
229  No need char  No need char
230  Subject length lower bound = 3  Subject length lower bound = 3
231  Starting byte set: \x09 \x20 ! " # $ % & ' ( * + - / 0 1 2 3 4 5 6 7 8  Starting chars: \x09 \x20 ! " # $ % & ' ( * + - / 0 1 2 3 4 5 6 7 8
232    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    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
233    f g h i j k l m n o p q r s t u v w x y z { | } ~ \x7f \xff    f g h i j k l m n o p q r s t u v w x y z { | } ~ \x7f \xff
234    
 <!testsaved8  
 Compiled pattern loaded from testsaved8  
 No study data  
 Error -28 from pcre16_fullinfo(0)  
 Running in 16-bit mode but pattern was compiled in 8-bit mode  
   
235  /[\h]/BZ  /[\h]/BZ
236  ------------------------------------------------------------------  ------------------------------------------------------------------
237          Bra          Bra
# Line 259  Running in 16-bit mode but pattern was c Line 245  Running in 16-bit mode but pattern was c
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 274  Running in 16-bit mode but pattern was c Line 260  Running in 16-bit mode but pattern was c
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 290  Running in 16-bit mode but pattern was c Line 268  Running in 16-bit mode but pattern was c
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
274  No first char  No first char
275  No need char  No need char
276  Subject length lower bound = 1  Subject length lower bound = 1
277  Starting byte set: \x09 \x20 \xa0 \xff  Starting chars: \x09 \x20 \xa0 \xff
278      \x{1681}\x{200b}\x{1680}\x{2000}\x{202f}\x{3000}      \x{1681}\x{200b}\x{1680}\x{2000}\x{202f}\x{3000}
279   0: \x{1680}\x{2000}\x{202f}\x{3000}   0: \x{1680}\x{2000}\x{202f}\x{3000}
280      \x{3001}\x{2fff}\x{200a}\xa0\x{2000}      \x{3001}\x{2fff}\x{200a}\xa0\x{2000}
# Line 321  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 330  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 chars: \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 342  No options Line 304  No options
304  No first char  No first char
305  No need char  No need char
306  Subject length lower bound = 1  Subject length lower bound = 1
307  No set of starting bytes  No starting char list
308      \x{1680}\x{180e}\x{167f}\x{1681}\x{180d}\x{180f}      \x{1680}\x{180e}\x{167f}\x{1681}\x{180d}\x{180f}
309   0: \x{167f}\x{1681}\x{180d}\x{180f}   0: \x{167f}\x{1681}\x{180d}\x{180f}
310      \x{2000}\x{200a}\x{1fff}\x{200b}      \x{2000}\x{200a}\x{1fff}\x{200b}
# Line 352  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 380  No options Line 330  No options
330  No first char  No first char
331  No need char  No need char
332  Subject length lower bound = 1  Subject length lower bound = 1
333  Starting byte set: \x0a \x0b \x0c \x0d \x85 \xff  Starting chars: \x0a \x0b \x0c \x0d \x85 \xff
334      \x{2027}\x{2030}\x{2028}\x{2029}      \x{2027}\x{2030}\x{2028}\x{2029}
335   0: \x{2028}\x{2029}   0: \x{2028}\x{2029}
336      \x09\x0e\x84\x86\x85\x0a\x0b\x0c\x0d      \x09\x0e\x84\x86\x85\x0a\x0b\x0c\x0d
# Line 389  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 398  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 chars: \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 options Line 360  No options
360  No first char  No first char
361  No need char  No need char
362  Subject length lower bound = 1  Subject length lower bound = 1
363  No set of starting bytes  No starting char list
364      \x{2028}\x{2029}\x{2027}\x{2030}      \x{2028}\x{2029}\x{2027}\x{2030}
365   0: \x{2027}\x{2030}   0: \x{2027}\x{2030}
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 440  Options: bsr_unicode Line 378  Options: bsr_unicode
378  No first char  No first char
379  No need char  No need char
380  Subject length lower bound = 1  Subject length lower bound = 1
381  Starting byte set: \x0a \x0b \x0c \x0d \x85 \xff  Starting chars: \x0a \x0b \x0c \x0d \x85 \xff
382      \x{2027}\x{2030}\x{2028}\x{2029}      \x{2027}\x{2030}\x{2028}\x{2029}
383   0: \x{2028}\x{2029}   0: \x{2028}\x{2029}
384      \x09\x0e\x84\x86\x85\x0a\x0b\x0c\x0d      \x09\x0e\x84\x86\x85\x0a\x0b\x0c\x0d
# Line 454  Need char = \x{dd00} Line 392  Need char = \x{dd00}
392      \x{d800}\x{d7ff}\x{dc00}\x{dc00}\x{dcff}\x{dd00}      \x{d800}\x{d7ff}\x{dc00}\x{dc00}\x{dcff}\x{dd00}
393   0: \x{d800}\x{d7ff}\x{dc00}\x{dc00}\x{dcff}\x{dd00}   0: \x{d800}\x{d7ff}\x{dc00}\x{dc00}\x{dcff}\x{dd00}
394    
395  /-- Generated from: ^[aL](?P<name>(?:[AaLl]+)[^xX-]*?)(?P<other>[\x{150}-\x{250}\x{300}]|[^\x{800}aAs-uS-U\x{d800}-\x{dfff}])++[^#\b\x{500}\x{1000}]{3,5}$ --/  /[^\x{80}][^\x{ff}][^\x{100}][^\x{1000}][^\x{ffff}]/BZ
396    ------------------------------------------------------------------
397            Bra
398            [^\x80]
399            [^\x{ff}]
400            [^\x{100}]
401            [^\x{1000}]
402            [^\x{ffff}]
403            Ket
404            End
405    ------------------------------------------------------------------
406    
407  <!testsaved16LE-1  /[^\x{80}][^\x{ff}][^\x{100}][^\x{1000}][^\x{ffff}]/BZi
408  Compiled pattern loaded from testsaved16LE-1  ------------------------------------------------------------------
409  Study data loaded from testsaved16LE-1          Bra
410  ------------------------------------------------------------------       /i [^\x80]
411    0 134 Bra       /i [^\x{ff}]
412    2     ^       /i [^\x{100}]
413    3     [La]       /i [^\x{1000}]
414   20  43 CBra 1       /i [^\x{ffff}]
415   23  20 Bra          Ket
416   25     [ALal]+          End
417   43  20 Ket  ------------------------------------------------------------------
  45     [\x00-,.-WY-wy-\xff] (neg)*?  
  63  43 Ket  
  65  12 CBraPos 2  
  68     [\x{150}-\x{250}\x{300}]  
  77  27 Alt  
  79     [^AS-Uas-u\x{800}\x{d800}-\x{dfff}]  
 104  39 KetRpos  
 106     [^\x08#\x{500}\x{1000}]{3,5}  
 133     $  
 134 134 Ket  
 136     End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 2  
 Named capturing subpatterns:  
   name    1  
   other   2  
 Options: anchored  
 No first char  
 No need char  
 Subject length lower bound = 6  
 No set of starting bytes  
418    
419  <!testsaved16BE-1  /[^\x{100}]*[^\x{1000}]+[^\x{ffff}]??[^\x{8000}]{4,}[^\x{7fff}]{2,9}?[^\x{100}]{5,6}+/BZ
420  Compiled pattern loaded from testsaved16BE-1  ------------------------------------------------------------------
421  Study data loaded from testsaved16BE-1          Bra
422  ------------------------------------------------------------------          [^\x{100}]*
423    0 134 Bra          [^\x{1000}]+
424    2     ^          [^\x{ffff}]??
425    3     [La]          [^\x{8000}]{4}
426   20  43 CBra 1          [^\x{8000}]*
427   23  20 Bra          [^\x{7fff}]{2}
428   25     [ALal]+          [^\x{7fff}]{0,7}?
429   43  20 Ket          [^\x{100}]{5}
430   45     [\x00-,.-WY-wy-\xff] (neg)*?          [^\x{100}]?+
431   63  43 Ket          Ket
432   65  12 CBraPos 2          End
433   68     [\x{150}-\x{250}\x{300}]  ------------------------------------------------------------------
434   77  27 Alt  
435   79     [^AS-Uas-u\x{800}\x{d800}-\x{dfff}]  /[^\x{100}]*[^\x{1000}]+[^\x{ffff}]??[^\x{8000}]{4,}[^\x{7fff}]{2,9}?[^\x{100}]{5,6}+/BZi
436  104  39 KetRpos  ------------------------------------------------------------------
437  106     [^\x08#\x{500}\x{1000}]{3,5}          Bra
438  133     $       /i [^\x{100}]*
439  134 134 Ket       /i [^\x{1000}]+
440  136     End       /i [^\x{ffff}]??
441  ------------------------------------------------------------------       /i [^\x{8000}]{4}
442  Capturing subpattern count = 2       /i [^\x{8000}]*
443  Named capturing subpatterns:       /i [^\x{7fff}]{2}
444    name    1       /i [^\x{7fff}]{0,7}?
445    other   2       /i [^\x{100}]{5}
446  Options: anchored       /i [^\x{100}]?+
447  No first char          Ket
448  No need char          End
449  Subject length lower bound = 6  ------------------------------------------------------------------
450  No set of starting bytes  
451    /(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF)XX/K
452        XX
453     0: XX
454    MK: 0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF
455    
456    /(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDE)XX/K
457        XX
458     0: XX
459    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.842  
changed lines
  Added in v.1433

  ViewVC Help
Powered by ViewVC 1.1.5