/[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 1045 by ph10, Sun Sep 23 16:50:00 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 161  Need char = \x{dfff} Line 161  Need char = \x{dfff}
161  /[\x{ff}]/8DZ  /[\x{ff}]/8DZ
162  ------------------------------------------------------------------  ------------------------------------------------------------------
163          Bra          Bra
164          \xff          \x{ff}
165          Ket          Ket
166          End          End
167  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 197  No need char Line 197  No need char
197  /\xff/8DZ  /\xff/8DZ
198  ------------------------------------------------------------------  ------------------------------------------------------------------
199          Bra          Bra
200          \xff          \x{ff}
201          Ket          Ket
202          End          End
203  ------------------------------------------------------------------  ------------------------------------------------------------------
# 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 249  No need char Line 249  No need char
249  /\x{084}/DZ8  /\x{084}/DZ8
250  ------------------------------------------------------------------  ------------------------------------------------------------------
251          Bra          Bra
252          \x84          \x{84}
253          Ket          Ket
254          End          End
255  ------------------------------------------------------------------  ------------------------------------------------------------------
# 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 489  Need char = \x{101} Line 489  Need char = \x{101}
489  /[^\x{c4}]/DZ  /[^\x{c4}]/DZ
490  ------------------------------------------------------------------  ------------------------------------------------------------------
491          Bra          Bra
492          [^\xc4]          [^\x{c4}]
493          Ket          Ket
494          End          End
495  ------------------------------------------------------------------  ------------------------------------------------------------------
# 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
522  ------------------------------------------------------------------  ------------------------------------------------------------------
523          Bra          Bra
524          \xff          \x{ff}
525          Ket          Ket
526          End          End
527  ------------------------------------------------------------------  ------------------------------------------------------------------
# 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 690  Options: utf Line 692  Options: utf
692  No first char  No first char
693  Need char = 'A'  Need char = 'A'
694  Subject length lower bound = 1  Subject length lower bound = 1
695  Starting byte set: \x09 \x20 A \xa0  Starting byte set: \x09 \x20 A \xa0 \xff
696      CDBABC      CDBABC
697   0: A   0: A
698        \x{2000}ABC
699     0: \x{2000}A
700    
701    /\R*A/SI8
702    Capturing subpattern count = 0
703    Options: utf
704    No first char
705    Need char = 'A'
706    Subject length lower bound = 1
707    Starting byte set: \x0a \x0b \x0c \x0d A \x85 \xff
708        CDBABC
709     0: A
710        \x{2028}A
711     0: \x{2028}A
712    
713  /\v+A/SI8  /\v+A/SI8
714  Capturing subpattern count = 0  Capturing subpattern count = 0
715  Options: utf  Options: utf
# Line 742  Starting byte set: \x00 \x01 \x02 \x03 \ Line 758  Starting byte set: \x00 \x01 \x02 \x03 \
758    \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
759    \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
760    \xfe \xff    \xfe \xff
761      \x{a2} \x{84}      \x{a2} \x{84}
762   0: \x{a2} \x{84}   0: \x{a2} \x{84}
763      A Z      A Z
764   0: A Z   0: A Z
765    
766  /a+/8  /a+/8
# Line 826  No need char Line 842  No need char
842  Subject length lower bound = 1  Subject length lower bound = 1
843  Starting byte set: \x0a \x0b \x0c \x0d \x85 \xff  Starting byte set: \x0a \x0b \x0c \x0d \x85 \xff
844    
845    /-- Check bad offset --/
846    
847    /a/8
848        \x{10000}\>1
849    Error -11 (bad UTF-16 offset)
850        \x{10000}ab\>2
851     0: a
852        \x{10000}ab\>3
853    No match
854        \x{10000}ab\>4
855    No match
856        \x{10000}ab\>5
857    Error -24 (bad offset value)
858    
859    //8
860    Failed: invalid UTF-16 string at offset 0
861    
862    /\w+\x{C4}/8BZ
863    ------------------------------------------------------------------
864            Bra
865            \w++
866            \x{c4}
867            Ket
868            End
869    ------------------------------------------------------------------
870        a\x{C4}\x{C4}
871     0: a\x{c4}
872    
873    /\w+\x{C4}/8BZT1
874    ------------------------------------------------------------------
875            Bra
876            \w+
877            \x{c4}
878            Ket
879            End
880    ------------------------------------------------------------------
881        a\x{C4}\x{C4}
882     0: a\x{c4}\x{c4}
883    
884    /\W+\x{C4}/8BZ
885    ------------------------------------------------------------------
886            Bra
887            \W+
888            \x{c4}
889            Ket
890            End
891    ------------------------------------------------------------------
892        !\x{C4}
893     0: !\x{c4}
894    
895    /\W+\x{C4}/8BZT1
896    ------------------------------------------------------------------
897            Bra
898            \W++
899            \x{c4}
900            Ket
901            End
902    ------------------------------------------------------------------
903        !\x{C4}
904     0: !\x{c4}
905    
906    /\W+\x{A1}/8BZ
907    ------------------------------------------------------------------
908            Bra
909            \W+
910            \x{a1}
911            Ket
912            End
913    ------------------------------------------------------------------
914        !\x{A1}
915     0: !\x{a1}
916    
917    /\W+\x{A1}/8BZT1
918    ------------------------------------------------------------------
919            Bra
920            \W+
921            \x{a1}
922            Ket
923            End
924    ------------------------------------------------------------------
925        !\x{A1}
926     0: !\x{a1}
927    
928    /X\s+\x{A0}/8BZ
929    ------------------------------------------------------------------
930            Bra
931            X
932            \s++
933            \x{a0}
934            Ket
935            End
936    ------------------------------------------------------------------
937        X\x20\x{A0}\x{A0}
938     0: X \x{a0}
939    
940    /X\s+\x{A0}/8BZT1
941    ------------------------------------------------------------------
942            Bra
943            X
944            \s+
945            \x{a0}
946            Ket
947            End
948    ------------------------------------------------------------------
949        X\x20\x{A0}\x{A0}
950     0: X \x{a0}\x{a0}
951    
952    /\S+\x{A0}/8BZ
953    ------------------------------------------------------------------
954            Bra
955            \S+
956            \x{a0}
957            Ket
958            End
959    ------------------------------------------------------------------
960        X\x{A0}\x{A0}
961     0: X\x{a0}\x{a0}
962    
963    /\S+\x{A0}/8BZT1
964    ------------------------------------------------------------------
965            Bra
966            \S++
967            \x{a0}
968            Ket
969            End
970    ------------------------------------------------------------------
971        X\x{A0}\x{A0}
972     0: X\x{a0}
973    
974    /\x{a0}+\s!/8BZ
975    ------------------------------------------------------------------
976            Bra
977            \x{a0}++
978            \s
979            !
980            Ket
981            End
982    ------------------------------------------------------------------
983        \x{a0}\x20!
984     0: \x{a0} !
985    
986    /\x{a0}+\s!/8BZT1
987    ------------------------------------------------------------------
988            Bra
989            \x{a0}+
990            \s
991            !
992            Ket
993            End
994    ------------------------------------------------------------------
995        \x{a0}\x20!
996     0: \x{a0} !
997    
998  /-- End of testinput18 --/  /-- End of testinput18 --/

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

  ViewVC Help
Powered by ViewVC 1.1.5