/[pcre]/code/trunk/testdata/testoutput18-16
ViewVC logotype

Diff of /code/trunk/testdata/testoutput18-16

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

code/branches/pcre16/testdata/testoutput18 revision 814 by ph10, Wed Dec 21 12:05:24 2011 UTC code/trunk/testdata/testoutput18 revision 839 by zherczeg, Fri Dec 30 13:22:28 2011 UTC
# Line 17  Line 17 
17      X\x{11234}YZ      X\x{11234}YZ
18   0: X\x{11234}YZ   0: X\x{11234}YZ
19   1: \x{11234}YZ   1: \x{11234}YZ
20    
21  /X\C*/8  /X\C*/8
22      XYZabcdce      XYZabcdce
23   0: XYZabcdce   0: XYZabcdce
24    
25  /X\C*?/8  /X\C*?/8
26      XYZabcde      XYZabcde
27   0: X   0: X
28    
29  /X\C{3,5}/8  /X\C{3,5}/8
30      Xabcdefg      Xabcdefg
31   0: Xabcde   0: Xabcde
32      X\x{11234}Y      X\x{11234}Y
33   0: X\x{11234}Y   0: X\x{11234}Y
34      X\x{11234}YZ      X\x{11234}YZ
35   0: X\x{11234}YZ   0: X\x{11234}YZ
36      X\x{11234}\x{512}      X\x{11234}\x{512}
37   0: X\x{11234}\x{512}   0: X\x{11234}\x{512}
38      X\x{11234}\x{512}YZ      X\x{11234}\x{512}YZ
39   0: X\x{11234}\x{512}YZ   0: X\x{11234}\x{512}YZ
# Line 41  Line 41 
41   0: X\x{11234}\x{512}\x{11234}   0: X\x{11234}\x{512}\x{11234}
42    
43  /X\C{3,5}?/8  /X\C{3,5}?/8
44      Xabcdefg      Xabcdefg
45   0: Xabc   0: Xabc
46      X\x{11234}Y      X\x{11234}Y
47   0: X\x{11234}Y   0: X\x{11234}Y
48      X\x{11234}YZ      X\x{11234}YZ
49   0: X\x{11234}Y   0: X\x{11234}Y
50      X\x{11234}\x{512}YZ      X\x{11234}\x{512}YZ
51   0: X\x{11234}\x{512}   0: X\x{11234}\x{512}
52      *** Failers      *** Failers
53  No match  No match
# Line 59  No match Line 59  No match
59   0: aXb   0: aXb
60      a\nb      a\nb
61   0: a\x{0a}b   0: a\x{0a}b
62    
63  /a\C\Cb/8  /a\C\Cb/8
64      a\x{12257}b      a\x{12257}b
65   0: a\x{12257}b   0: a\x{12257}b
66      ** Failers      ** Failers
67  No match  No match
68      a\x{100}b      a\x{100}b
69  No match  No match
# Line 71  No match Line 71  No match
71  /ab\Cde/8  /ab\Cde/8
72      abXde      abXde
73   0: abXde   0: abXde
74    
75  /-- Check maximum character size --/  /-- Check maximum character size --/
76    
77  /\x{ffff}/8DZ  /\x{ffff}/8DZ
# Line 86  Options: utf Line 86  Options: utf
86  First char = \x{ffff}  First char = \x{ffff}
87  No need char  No need char
88    
89  /\x{10000}/8DZ  /\x{10000}/8DZ
90  ------------------------------------------------------------------  ------------------------------------------------------------------
91          Bra          Bra
92          \x{10000}          \x{10000}
# Line 206  Options: utf Line 206  Options: utf
206  First char = \x{ff}  First char = \x{ff}
207  No need char  No need char
208    
209  /\x{D55c}\x{ad6d}\x{C5B4}/DZ8  /\x{D55c}\x{ad6d}\x{C5B4}/DZ8
210  ------------------------------------------------------------------  ------------------------------------------------------------------
211          Bra          Bra
212          \x{d55c}\x{ad6d}\x{c5b4}          \x{d55c}\x{ad6d}\x{c5b4}
# Line 217  Capturing subpattern count = 0 Line 217  Capturing subpattern count = 0
217  Options: utf  Options: utf
218  First char = \x{d55c}  First char = \x{d55c}
219  Need char = \x{c5b4}  Need char = \x{c5b4}
220      \x{D55c}\x{ad6d}\x{C5B4}      \x{D55c}\x{ad6d}\x{C5B4}
221   0: \x{d55c}\x{ad6d}\x{c5b4}   0: \x{d55c}\x{ad6d}\x{c5b4}
222    
223  /\x{65e5}\x{672c}\x{8a9e}/DZ8  /\x{65e5}\x{672c}\x{8a9e}/DZ8
# Line 297  Need char = \x{deab} Line 297  Need char = \x{deab}
297  /-- This one is here not because it's different to Perl, but because the way  /-- This one is here not because it's different to Perl, but because the way
298  the captured single-byte is displayed. (In Perl it becomes a character, and you  the captured single-byte is displayed. (In Perl it becomes a character, and you
299  can't tell the difference.) --/  can't tell the difference.) --/
300    
301  /X(\C)(.*)/8  /X(\C)(.*)/8
302      X\x{1234}      X\x{1234}
303   0: X\x{1234}   0: X\x{1234}
304   1: \x{1234}   1: \x{1234}
305   2:   2:
306      X\nabc      X\nabc
307   0: X\x{0a}abc   0: X\x{0a}abc
308   1: \x{0a}   1: \x{0a}
309   2: abc   2: abc
310    
311  /-- This one is here because Perl gives out a grumbly error message (quite  /-- This one is here because Perl gives out a grumbly error message (quite
312  correctly, but that messes up comparisons). --/  correctly, but that messes up comparisons). --/
313    
314  /a\Cb/8  /a\Cb/8
315      *** Failers      *** Failers
316  No match  No match
317      a\x{100}b      a\x{100}b
318   0: a\x{100}b   0: a\x{100}b
319    
320  /[^ab\xC0-\xF0]/8SDZ  /[^ab\xC0-\xF0]/8SDZ
321  ------------------------------------------------------------------  ------------------------------------------------------------------
322          Bra          Bra
# Line 346  Starting byte set: \x00 \x01 \x02 \x03 \ Line 346  Starting byte set: \x00 \x01 \x02 \x03 \
346   0: \x{bf}   0: \x{bf}
347      \x{100}      \x{100}
348   0: \x{100}   0: \x{100}
349      \x{1000}      \x{1000}
350   0: \x{1000}   0: \x{1000}
351      *** Failers      *** Failers
352   0: *   0: *
353      \x{c0}      \x{c0}
354  No match  No match
355      \x{f0}      \x{f0}
356  No match  No match
357    
358  /Ā{3,4}/8SDZ  /Ā{3,4}/8SDZ
# Line 515  No need char Line 515  No need char
515   0: \x{100}   0: \x{100}
516      \x{100}Z      \x{100}Z
517   0: \x{100}   0: \x{100}
518      *** Failers      *** Failers
519  No match  No match
520    
521  /[\xff]/DZ8  /[\xff]/DZ8
# Line 567  First char = \x{1ff} Line 567  First char = \x{1ff}
567  No need char  No need char
568    \x{1ff}    \x{1ff}
569   0: \x{1ff}   0: \x{1ff}
570    \777    \777
571   0: \x{1ff}   0: \x{1ff}
572    
573  /\x{100}+\x{200}/8DZ  /\x{100}+\x{200}/8DZ
574  ------------------------------------------------------------------  ------------------------------------------------------------------
575          Bra          Bra
# Line 603  Failed: missing terminating ] for charac Line 603  Failed: missing terminating ] for charac
603      \x{0}\x{d7ff}\x{e000}\x{10ffff}      \x{0}\x{d7ff}\x{e000}\x{10ffff}
604  No match  No match
605      \x{d800}      \x{d800}
606  Error -10 (bad UTF-8 string) offset=0 reason=1  Error -10 (bad UTF-16 string) offset=0 reason=1
607      \x{d800}\?      \x{d800}\?
608  No match  No match
609      \x{da00}      \x{da00}
610  Error -10 (bad UTF-8 string) offset=0 reason=1  Error -10 (bad UTF-16 string) offset=0 reason=1
611      \x{da00}\?      \x{da00}\?
612  No match  No match
613        \x{dc00}
614    Error -10 (bad UTF-16 string) offset=0 reason=3
615        \x{dc00}\?
616    No match
617        \x{de00}
618    Error -10 (bad UTF-16 string) offset=0 reason=3
619        \x{de00}\?
620    No match
621      \x{dfff}      \x{dfff}
622  Error -10 (bad UTF-8 string) offset=0 reason=3  Error -10 (bad UTF-16 string) offset=0 reason=3
623      \x{dfff}\?      \x{dfff}\?
624  No match  No match
625      \x{110000}      \x{110000}
626  Error -10 (bad UTF-8 string) offset=0 reason=3  **Failed: character value greater than 0x10ffff cannot be converted to UTF-16
627      \x{110000}\?      \x{d800}\x{1234}
628  No match  Error -10 (bad UTF-16 string) offset=1 reason=2
629      \x{2000000}      \x{fffe}
630  Error -10 (bad UTF-8 string) offset=1 reason=3  Error -10 (bad UTF-16 string) offset=0 reason=4
     \x{2000000}\?  
 No match  
     \x{7fffffff}  
 Error -10 (bad UTF-8 string) offset=1 reason=3  
     \x{7fffffff}\?  
 No match  
631    
632  /(*UTF16)\x{11234}/  /(*UTF16)\x{11234}/
633    abcd\x{11234}pqr    abcd\x{11234}pqr
# Line 657  Starting byte set: \x09 \x20 \xa0 \xff Line 659  Starting byte set: \x09 \x20 \xa0 \xff
659   0: \x{180e}   0: \x{180e}
660      ABC\x{2000}      ABC\x{2000}
661   0: \x{2000}   0: \x{2000}
662      ABC\x{202f}      ABC\x{202f}
663   0: \x{202f}   0: \x{202f}
664      ABC\x{205f}      ABC\x{205f}
665   0: \x{205f}   0: \x{205f}
666      ABC\x{3000}      ABC\x{3000}
667   0: \x{3000}   0: \x{3000}
668    
669  /\v/SI8  /\v/SI8
# Line 693  Subject length lower bound = 1 Line 695  Subject length lower bound = 1
695  Starting byte set: \x09 \x20 A \xa0  Starting byte set: \x09 \x20 A \xa0
696      CDBABC      CDBABC
697   0: A   0: A
698    
699  /\v+A/SI8  /\v+A/SI8
700  Capturing subpattern count = 0  Capturing subpattern count = 0
701  Options: utf  Options: utf
# Line 742  Starting byte set: \x00 \x01 \x02 \x03 \ Line 744  Starting byte set: \x00 \x01 \x02 \x03 \
744    \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed \xee    \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed \xee
745    \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb \xfc \xfd    \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb \xfc \xfd
746    \xfe \xff    \xfe \xff
747      \x{a2} \x{84}      \x{a2} \x{84}
748   0: \x{a2} \x{84}   0: \x{a2} \x{84}
749      A Z      A Z
750   0: A Z   0: A Z
751    
752  /a+/8  /a+/8
# Line 826  No need char Line 828  No need char
828  Subject length lower bound = 1  Subject length lower bound = 1
829  Starting byte set: \x0a \x0b \x0c \x0d \x85 \xff  Starting byte set: \x0a \x0b \x0c \x0d \x85 \xff
830    
831    /-- Check bad offset --/
832    
833    /a/8
834        \x{10000}\>1
835    Error -11 (bad UTF-16 offset)
836        \x{10000}ab\>2
837     0: a
838        \x{10000}ab\>3
839    No match
840        \x{10000}ab\>4
841    No match
842        \x{10000}ab\>5
843    Error -24 (bad offset value)
844    
845    /-- Generated from: (?P<cbra1>[aZ\x{400}-\x{10ffff}]{4,}[\x{f123}\x{10039}\x{20000}-\x{21234}]?|[A-Cx-z\x{100000}-\x{1000a7}\x{101234}])(?<cb2>[^az]) --/
846    Failed: character value in \x{...} sequence is too large at offset 49
847    
848    <!testdata/saved16LE-2
849    Compiled pattern loaded from testdata/saved16LE-2
850    Study data loaded from testdata/saved16LE-2
851    ------------------------------------------------------------------
852      0 101 Bra
853      2  45 CBra 1
854      5     [Za\x{400}-\x{10ffff}]{4,}
855     32     [\x{f123}\x{10039}\x{20000}-\x{21234}]?
856     47  30 Alt
857     49     [A-Cx-z\x{100000}-\x{1000a7}\x{101234}]
858     77  75 Ket
859     79  20 CBra 2
860     82     [\x00-`b-y{-\xff] (neg)
861     99  20 Ket
862    101 101 Ket
863    103     End
864    ------------------------------------------------------------------
865    Capturing subpattern count = 2
866    Named capturing subpatterns:
867      cb2     2
868      cbra1   1
869    Options: utf
870    No first char
871    No need char
872    Subject length lower bound = 2
873    No set of starting bytes
874    
875    <!testdata/saved16BE-2
876    Compiled pattern loaded from testdata/saved16BE-2
877    Study data loaded from testdata/saved16BE-2
878    ------------------------------------------------------------------
879      0 101 Bra
880      2  45 CBra 1
881      5     [Za\x{400}-\x{10ffff}]{4,}
882     32     [\x{f123}\x{10039}\x{20000}-\x{21234}]?
883     47  30 Alt
884     49     [A-Cx-z\x{100000}-\x{1000a7}\x{101234}]
885     77  75 Ket
886     79  20 CBra 2
887     82     [\x00-`b-y{-\xff] (neg)
888     99  20 Ket
889    101 101 Ket
890    103     End
891    ------------------------------------------------------------------
892    Capturing subpattern count = 2
893    Named capturing subpatterns:
894      cb2     2
895      cbra1   1
896    Options: utf
897    No first char
898    No need char
899    Subject length lower bound = 2
900    No set of starting bytes
901    
902  /-- End of testinput18 --/  /-- End of testinput18 --/

Legend:
Removed from v.814  
changed lines
  Added in v.839

  ViewVC Help
Powered by ViewVC 1.1.5