/[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 962 by ph10, Fri Apr 20 17:28:23 2012 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 535  No need char Line 535  No need char
535  /[^\xff]/8DZ  /[^\xff]/8DZ
536  ------------------------------------------------------------------  ------------------------------------------------------------------
537          Bra          Bra
538          [^\x{ff}]          [^\xff]
539          Ket          Ket
540          End          End
541  ------------------------------------------------------------------  ------------------------------------------------------------------
# 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 796  No set of starting bytes Line 798  No set of starting bytes
798  /[^\x{c4}]/8DZ  /[^\x{c4}]/8DZ
799  ------------------------------------------------------------------  ------------------------------------------------------------------
800          Bra          Bra
801          [^\x{c4}]          [^\xc4]
802          Ket          Ket
803          End          End
804  ------------------------------------------------------------------  ------------------------------------------------------------------
# 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    //8
846    Failed: invalid UTF-16 string at offset 0
847    
848    /\w+\x{C4}/8BZ
849    ------------------------------------------------------------------
850            Bra
851            \w++
852            \xc4
853            Ket
854            End
855    ------------------------------------------------------------------
856        a\x{C4}\x{C4}
857     0: a\x{c4}
858    
859    /\w+\x{C4}/8BZT1
860    ------------------------------------------------------------------
861            Bra
862            \w+
863            \xc4
864            Ket
865            End
866    ------------------------------------------------------------------
867        a\x{C4}\x{C4}
868     0: a\x{c4}\x{c4}
869    
870    /\W+\x{C4}/8BZ
871    ------------------------------------------------------------------
872            Bra
873            \W+
874            \xc4
875            Ket
876            End
877    ------------------------------------------------------------------
878        !\x{C4}
879     0: !\x{c4}
880    
881    /\W+\x{C4}/8BZT1
882    ------------------------------------------------------------------
883            Bra
884            \W++
885            \xc4
886            Ket
887            End
888    ------------------------------------------------------------------
889        !\x{C4}
890     0: !\x{c4}
891    
892    /\W+\x{A1}/8BZ
893    ------------------------------------------------------------------
894            Bra
895            \W+
896            \xa1
897            Ket
898            End
899    ------------------------------------------------------------------
900        !\x{A1}
901     0: !\x{a1}
902    
903    /\W+\x{A1}/8BZT1
904    ------------------------------------------------------------------
905            Bra
906            \W+
907            \xa1
908            Ket
909            End
910    ------------------------------------------------------------------
911        !\x{A1}
912     0: !\x{a1}
913    
914    /X\s+\x{A0}/8BZ
915    ------------------------------------------------------------------
916            Bra
917            X
918            \s++
919            \xa0
920            Ket
921            End
922    ------------------------------------------------------------------
923        X\x20\x{A0}\x{A0}
924     0: X \x{a0}
925    
926    /X\s+\x{A0}/8BZT1
927    ------------------------------------------------------------------
928            Bra
929            X
930            \s+
931            \xa0
932            Ket
933            End
934    ------------------------------------------------------------------
935        X\x20\x{A0}\x{A0}
936     0: X \x{a0}\x{a0}
937    
938    /\S+\x{A0}/8BZ
939    ------------------------------------------------------------------
940            Bra
941            \S+
942            \xa0
943            Ket
944            End
945    ------------------------------------------------------------------
946        X\x{A0}\x{A0}
947     0: X\x{a0}\x{a0}
948    
949    /\S+\x{A0}/8BZT1
950    ------------------------------------------------------------------
951            Bra
952            \S++
953            \xa0
954            Ket
955            End
956    ------------------------------------------------------------------
957        X\x{A0}\x{A0}
958     0: X\x{a0}
959    
960    /\x{a0}+\s!/8BZ
961    ------------------------------------------------------------------
962            Bra
963            \xa0++
964            \s
965            !
966            Ket
967            End
968    ------------------------------------------------------------------
969        \x{a0}\x20!
970     0: \x{a0} !
971    
972    /\x{a0}+\s!/8BZT1
973    ------------------------------------------------------------------
974            Bra
975            \xa0+
976            \s
977            !
978            Ket
979            End
980    ------------------------------------------------------------------
981        \x{a0}\x20!
982     0: \x{a0} !
983    
984  /-- End of testinput18 --/  /-- End of testinput18 --/

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

  ViewVC Help
Powered by ViewVC 1.1.5