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

Diff of /code/trunk/testdata/testoutput5

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

revision 295 by ph10, Mon Dec 31 17:00:24 2007 UTC revision 598 by ph10, Sat May 7 15:37:31 2011 UTC
# Line 1  Line 1 
1    /-- This set of tests checks the API, internals, and non-Perl stuff for UTF-8
2        support, excluding Unicode properties. --/
3    
4  /\x{100}/8DZ  /\x{100}/8DZ
5  ------------------------------------------------------------------  ------------------------------------------------------------------
6          Bra          Bra
# Line 252  Need char = 171 Line 255  Need char = 171
255          End          End
256  ------------------------------------------------------------------  ------------------------------------------------------------------
257  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
258  Options: utf8  Options: utf8
259  No first char  No first char
260  Need char = 'X'  Need char = 'X'
# Line 269  Need char = 'X' Line 271  Need char = 'X'
271          End          End
272  ------------------------------------------------------------------  ------------------------------------------------------------------
273  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
274  Options: utf8  Options: utf8
275  No first char  No first char
276  No need char  No need char
277      \x{212ab}\x{212ab}\x{212ab}\x{861}      \x{212ab}\x{212ab}\x{212ab}\x{861}
278   0: \x{212ab}\x{212ab}\x{212ab}   0: \x{212ab}\x{212ab}\x{212ab}
279    
 /-- These tests are here rather than in testinput4 because Perl 5.6 has some  
 problems with UTF-8 support, in the area of \x{..} where the value is < 255.  
 It grumbles about invalid UTF-8 strings. --/  
   
 /^[a\x{c0}]b/8  
     \x{c0}b  
  0: \x{c0}b  
   
 /^([a\x{c0}]*?)aa/8  
     a\x{c0}aaaa/  
  0: a\x{c0}aa  
  1: a\x{c0}  
   
 /^([a\x{c0}]*?)aa/8  
     a\x{c0}aaaa/  
  0: a\x{c0}aa  
  1: a\x{c0}  
     a\x{c0}a\x{c0}aaa/  
  0: a\x{c0}a\x{c0}aa  
  1: a\x{c0}a\x{c0}  
   
 /^([a\x{c0}]*)aa/8  
     a\x{c0}aaaa/  
  0: a\x{c0}aaaa  
  1: a\x{c0}aa  
     a\x{c0}a\x{c0}aaa/  
  0: a\x{c0}a\x{c0}aaa  
  1: a\x{c0}a\x{c0}a  
   
 /^([a\x{c0}]*)a\x{c0}/8  
     a\x{c0}aaaa/  
  0: a\x{c0}  
  1:  
     a\x{c0}a\x{c0}aaa/  
  0: a\x{c0}a\x{c0}  
  1: a\x{c0}  
   
 /-- --/  
   
280  /(?<=\C)X/8  /(?<=\C)X/8
281  Failed: \C not allowed in lookbehind assertion at offset 6  Failed: \C not allowed in lookbehind assertion at offset 6
282    
# Line 331  can't tell the difference.) --/ Line 293  can't tell the difference.) --/
293   0: X\x{0a}abc   0: X\x{0a}abc
294   1: \x{0a}   1: \x{0a}
295   2: abc   2: abc
296    
297    /-- This one is here because Perl gives out a grumbly error message (quite
298    correctly, but that messes up comparisons). --/
299    
300    /a\Cb/8
301        *** Failers
302    No match
303        a\x{100}b
304    No match
305    
306  /^[ab]/8DZ  /^[ab]/8DZ
307  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 389  Capturing subpattern count = 0 Line 360  Capturing subpattern count = 0
360  Options: utf8  Options: utf8
361  No first char  No first char
362  No need char  No need char
363    Subject length lower bound = 1
364  Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a  Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
365    \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19    \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
366    \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4    \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4
# Line 423  No match Line 395  No match
395          End          End
396  ------------------------------------------------------------------  ------------------------------------------------------------------
397  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
398  Options: utf8  Options: utf8
399  First char = 196  First char = 196
400  Need char = 128  Need char = 128
401  Study returned NULL  Subject length lower bound = 3
402    No set of starting bytes
403    \x{100}\x{100}\x{100}\x{100\x{100}    \x{100}\x{100}\x{100}\x{100\x{100}
404   0: \x{100}\x{100}\x{100}   0: \x{100}\x{100}\x{100}
405    
# Line 443  Study returned NULL Line 415  Study returned NULL
415          End          End
416  ------------------------------------------------------------------  ------------------------------------------------------------------
417  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
418  Options: utf8  Options: utf8
419  No first char  No first char
420  No need char  No need char
421    Subject length lower bound = 1
422  Starting byte set: x \xc4  Starting byte set: x \xc4
423    
424  /(\x{100}*a|x)/8SDZ  /(\x{100}*a|x)/8SDZ
# Line 462  Starting byte set: x \xc4 Line 434  Starting byte set: x \xc4
434          End          End
435  ------------------------------------------------------------------  ------------------------------------------------------------------
436  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
437  Options: utf8  Options: utf8
438  No first char  No first char
439  No need char  No need char
440    Subject length lower bound = 1
441  Starting byte set: a x \xc4  Starting byte set: a x \xc4
442    
443  /(\x{100}{0,2}a|x)/8SDZ  /(\x{100}{0,2}a|x)/8SDZ
# Line 481  Starting byte set: a x \xc4 Line 453  Starting byte set: a x \xc4
453          End          End
454  ------------------------------------------------------------------  ------------------------------------------------------------------
455  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
456  Options: utf8  Options: utf8
457  No first char  No first char
458  No need char  No need char
459    Subject length lower bound = 1
460  Starting byte set: a x \xc4  Starting byte set: a x \xc4
461    
462  /(\x{100}{1,2}a|x)/8SDZ  /(\x{100}{1,2}a|x)/8SDZ
# Line 501  Starting byte set: a x \xc4 Line 473  Starting byte set: a x \xc4
473          End          End
474  ------------------------------------------------------------------  ------------------------------------------------------------------
475  Capturing subpattern count = 1  Capturing subpattern count = 1
 Partial matching not supported  
476  Options: utf8  Options: utf8
477  No first char  No first char
478  No need char  No need char
479    Subject length lower bound = 1
480  Starting byte set: x \xc4  Starting byte set: x \xc4
481    
482  /\x{100}*(\d+|"(?1)")/8  /\x{100}*(\d+|"(?1)")/8
# Line 551  Need char = 128 Line 523  Need char = 128
523          End          End
524  ------------------------------------------------------------------  ------------------------------------------------------------------
525  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
526  Options: utf8  Options: utf8
527  No first char  No first char
528  No need char  No need char
# Line 565  No need char Line 536  No need char
536          End          End
537  ------------------------------------------------------------------  ------------------------------------------------------------------
538  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
539  Options: utf8  Options: utf8
540  First char = 'a'  First char = 'a'
541  No need char  No need char
# Line 579  No need char Line 549  No need char
549          End          End
550  ------------------------------------------------------------------  ------------------------------------------------------------------
551  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
552  Options: utf8  Options: utf8
553  First char = 'a'  First char = 'a'
554  Need char = 'b'  Need char = 'b'
# Line 593  Need char = 'b' Line 562  Need char = 'b'
562          End          End
563  ------------------------------------------------------------------  ------------------------------------------------------------------
564  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
565  Options: utf8  Options: utf8
566  First char = 'a'  First char = 'a'
567  Need char = 128  Need char = 128
# Line 607  Need char = 128 Line 575  Need char = 128
575          End          End
576  ------------------------------------------------------------------  ------------------------------------------------------------------
577  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
578  Options: utf8  Options: utf8
579  First char = 'a'  First char = 'a'
580  Need char = 129  Need char = 129
# Line 621  Need char = 129 Line 588  Need char = 129
588          End          End
589  ------------------------------------------------------------------  ------------------------------------------------------------------
590  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
591  Options: utf8  Options: utf8
592  No first char  No first char
593  Need char = 'A'  Need char = 'A'
# Line 640  Need char = 'A' Line 606  Need char = 'A'
606          End          End
607  ------------------------------------------------------------------  ------------------------------------------------------------------
608  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
609  Options: utf8  Options: utf8
610  No first char  No first char
611  No need char  No need char
# Line 829  No need char Line 794  No need char
794   0: \x{d6}   0: \x{d6}
795    
796  /[]/8  /[]/8
797  Failed: invalid UTF-8 string at offset 2  Failed: invalid UTF-8 string at offset 1
798    
799  //8  //8
800  Failed: invalid UTF-8 string at offset 0  Failed: invalid UTF-8 string at offset 0
801    
802  /xxx/8  /xxx/8
803  Failed: invalid UTF-8 string at offset 1  Failed: invalid UTF-8 string at offset 0
804    
805  /xxx/8?DZ  /xxx/8?DZ
806  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 851  Need char = 'x' Line 816  Need char = 'x'
816    
817  /abc/8  /abc/8
818      ]      ]
819  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=6
820            
821  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=1
822            
823  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=6
824      \?      \?
825  No match  No match
826        \xe1\x88
827    Error -10 (bad UTF-8 string) offset=0 reason=1
828        \P\xe1\x88
829    Error -10 (bad UTF-8 string) offset=0 reason=1
830        \P\P\xe1\x88
831    Error -25 (short UTF-8 string) offset=0 reason=1
832        XX\xea
833    Error -10 (bad UTF-8 string) offset=2 reason=2
834        \O0XX\xea
835    Error -10 (bad UTF-8 string)
836        \O1XX\xea
837    Error -10 (bad UTF-8 string)
838        \O2XX\xea
839    Error -10 (bad UTF-8 string) offset=2 reason=2
840        XX\xf1
841    Error -10 (bad UTF-8 string) offset=2 reason=3
842        XX\xf8
843    Error -10 (bad UTF-8 string) offset=2 reason=4
844        XX\xfc
845    Error -10 (bad UTF-8 string) offset=2 reason=5
846        ZZ\xea\xaf\x20YY
847    Error -10 (bad UTF-8 string) offset=2 reason=7
848        ZZ\xfd\xbf\xbf\x2f\xbf\xbfYY
849    Error -10 (bad UTF-8 string) offset=2 reason=8
850        ZZ\xfd\xbf\xbf\xbf\x2f\xbfYY
851    Error -10 (bad UTF-8 string) offset=2 reason=9
852        ZZ\xfd\xbf\xbf\xbf\xbf\x2fYY
853    Error -10 (bad UTF-8 string) offset=2 reason=10
854        ZZ\xffYY
855    Error -10 (bad UTF-8 string) offset=2 reason=21
856        ZZ\xfeYY
857    Error -10 (bad UTF-8 string) offset=2 reason=21
858    
859  /anything/8  /anything/8
860      \xc0\x80      \xc0\x80
861  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=15
862      \xc1\x8f      \xc1\x8f
863  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=15
864      \xe0\x9f\x80      \xe0\x9f\x80
865  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=16
866      \xf0\x8f\x80\x80      \xf0\x8f\x80\x80
867  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=17
868      \xf8\x87\x80\x80\x80      \xf8\x87\x80\x80\x80
869  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=18
870      \xfc\x83\x80\x80\x80\x80      \xfc\x83\x80\x80\x80\x80
871  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=19
872      \xfe\x80\x80\x80\x80\x80      \xfe\x80\x80\x80\x80\x80
873  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=21
874      \xff\x80\x80\x80\x80\x80      \xff\x80\x80\x80\x80\x80
875  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=21
876      \xc3\x8f      \xc3\x8f
877  No match  No match
878      \xe0\xaf\x80      \xe0\xaf\x80
# Line 887  No match Line 884  No match
884      \xf1\x8f\x80\x80      \xf1\x8f\x80\x80
885  No match  No match
886      \xf8\x88\x80\x80\x80      \xf8\x88\x80\x80\x80
887  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=11
888      \xf9\x87\x80\x80\x80      \xf9\x87\x80\x80\x80
889  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=11
890      \xfc\x84\x80\x80\x80\x80      \xfc\x84\x80\x80\x80\x80
891  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=12
892      \xfd\x83\x80\x80\x80\x80      \xfd\x83\x80\x80\x80\x80
893  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=12
894      \?\xf8\x88\x80\x80\x80      \?\xf8\x88\x80\x80\x80
895  No match  No match
896      \?\xf9\x87\x80\x80\x80      \?\xf9\x87\x80\x80\x80
# Line 1122  Need char = 191 Line 1119  Need char = 191
1119          End          End
1120  ------------------------------------------------------------------  ------------------------------------------------------------------
1121  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1122  Options: utf8  Options: utf8
1123  No first char  No first char
1124  No need char  No need char
# Line 1136  No need char Line 1132  No need char
1132          End          End
1133  ------------------------------------------------------------------  ------------------------------------------------------------------
1134  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1135  Options: utf8  Options: utf8
1136  No first char  No first char
1137  No need char  No need char
# Line 1150  No need char Line 1145  No need char
1145          End          End
1146  ------------------------------------------------------------------  ------------------------------------------------------------------
1147  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1148  Options: utf8  Options: utf8
1149  No first char  No first char
1150  No need char  No need char
# Line 1164  No need char Line 1158  No need char
1158          End          End
1159  ------------------------------------------------------------------  ------------------------------------------------------------------
1160  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1161  Options: utf8  Options: utf8
1162  No first char  No first char
1163  No need char  No need char
# Line 1178  No need char Line 1171  No need char
1171          End          End
1172  ------------------------------------------------------------------  ------------------------------------------------------------------
1173  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1174  Options: utf8  Options: utf8
1175  No first char  No first char
1176  No need char  No need char
# Line 1192  No need char Line 1184  No need char
1184          End          End
1185  ------------------------------------------------------------------  ------------------------------------------------------------------
1186  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1187  Options: utf8  Options: utf8
1188  No first char  No first char
1189  No need char  No need char
# Line 1206  No need char Line 1197  No need char
1197          End          End
1198  ------------------------------------------------------------------  ------------------------------------------------------------------
1199  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1200  Options: utf8  Options: utf8
1201  First char = 196  First char = 196
1202  Need char = 128  Need char = 128
# Line 1220  Need char = 128 Line 1210  Need char = 128
1210          End          End
1211  ------------------------------------------------------------------  ------------------------------------------------------------------
1212  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1213  Options: utf8  Options: utf8
1214  First char = 196  First char = 196
1215  Need char = 'X'  Need char = 'X'
# Line 1234  Need char = 'X' Line 1223  Need char = 'X'
1223          End          End
1224  ------------------------------------------------------------------  ------------------------------------------------------------------
1225  Capturing subpattern count = 0  Capturing subpattern count = 0
 Partial matching not supported  
1226  Options: utf8  Options: utf8
1227  First char = 'X'  First char = 'X'
1228  Need char = 128  Need char = 128
# Line 1491  No match Line 1479  No match
1479      \x{0}\x{d7ff}\x{e000}\x{10ffff}      \x{0}\x{d7ff}\x{e000}\x{10ffff}
1480  No match  No match
1481      \x{d800}      \x{d800}
1482  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=14
1483      \x{d800}\?      \x{d800}\?
1484  No match  No match
1485      \x{da00}      \x{da00}
1486  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=14
1487      \x{da00}\?      \x{da00}\?
1488  No match  No match
1489      \x{dfff}      \x{dfff}
1490  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=14
1491      \x{dfff}\?      \x{dfff}\?
1492  No match  No match
1493      \x{110000}      \x{110000}
1494  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=13
1495      \x{110000}\?      \x{110000}\?
1496  No match  No match
1497      \x{2000000}      \x{2000000}
1498  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=11
1499      \x{2000000}\?      \x{2000000}\?
1500  No match  No match
1501      \x{7fffffff}      \x{7fffffff}
1502  Error -10  Error -10 (bad UTF-8 string) offset=0 reason=12
1503      \x{7fffffff}\?      \x{7fffffff}\?
1504  No match  No match
1505    
# Line 1608  No match Line 1596  No match
1596  /[[:a\x{100}b:]]/8  /[[:a\x{100}b:]]/8
1597  Failed: unknown POSIX class name at offset 3  Failed: unknown POSIX class name at offset 3
1598    
1599  / End of testinput5 /  /a[^]b/<JS>8
1600        a\x{1234}b
1601     0: a\x{1234}b
1602        a\nb
1603     0: a\x{0a}b
1604        ** Failers
1605    No match
1606        ab
1607    No match
1608    
1609    /a[^]+b/<JS>8
1610        aXb
1611     0: aXb
1612        a\nX\nX\x{1234}b
1613     0: a\x{0a}X\x{0a}X\x{1234}b
1614        ** Failers
1615    No match
1616        ab
1617    No match
1618    
1619    /(\x{de})\1/
1620        \x{de}\x{de}
1621     0: \xde\xde
1622     1: \xde
1623        \x{123}
1624    ** Character \x{123} is greater than 255 and UTF-8 mode is not enabled.
1625    ** Truncation will probably give the wrong result.
1626    No match
1627    
1628    /X/8f<any>
1629        A\x{1ec5}ABCXYZ
1630     0: X
1631    
1632    /(*UTF8)\x{1234}/
1633      abcd\x{1234}pqr
1634     0: \x{1234}
1635    
1636    /(*CRLF)(*UTF8)(*BSR_UNICODE)a\Rb/I
1637    Capturing subpattern count = 0
1638    Options: bsr_unicode utf8
1639    Forced newline sequence: CRLF
1640    First char = 'a'
1641    Need char = 'b'
1642    
1643    /Xa{2,4}b/8
1644        X\P
1645    Partial match: X
1646        Xa\P
1647    Partial match: Xa
1648        Xaa\P
1649    Partial match: Xaa
1650        Xaaa\P
1651    Partial match: Xaaa
1652        Xaaaa\P
1653    Partial match: Xaaaa
1654    
1655    /Xa{2,4}?b/8
1656        X\P
1657    Partial match: X
1658        Xa\P
1659    Partial match: Xa
1660        Xaa\P
1661    Partial match: Xaa
1662        Xaaa\P
1663    Partial match: Xaaa
1664        Xaaaa\P
1665    Partial match: Xaaaa
1666    
1667    /Xa{2,4}+b/8
1668        X\P
1669    Partial match: X
1670        Xa\P
1671    Partial match: Xa
1672        Xaa\P
1673    Partial match: Xaa
1674        Xaaa\P
1675    Partial match: Xaaa
1676        Xaaaa\P
1677    Partial match: Xaaaa
1678    
1679    /X\x{123}{2,4}b/8
1680        X\P
1681    Partial match: X
1682        X\x{123}\P
1683    Partial match: X\x{123}
1684        X\x{123}\x{123}\P
1685    Partial match: X\x{123}\x{123}
1686        X\x{123}\x{123}\x{123}\P
1687    Partial match: X\x{123}\x{123}\x{123}
1688        X\x{123}\x{123}\x{123}\x{123}\P
1689    Partial match: X\x{123}\x{123}\x{123}\x{123}
1690    
1691    /X\x{123}{2,4}?b/8
1692        X\P
1693    Partial match: X
1694        X\x{123}\P
1695    Partial match: X\x{123}
1696        X\x{123}\x{123}\P
1697    Partial match: X\x{123}\x{123}
1698        X\x{123}\x{123}\x{123}\P
1699    Partial match: X\x{123}\x{123}\x{123}
1700        X\x{123}\x{123}\x{123}\x{123}\P
1701    Partial match: X\x{123}\x{123}\x{123}\x{123}
1702    
1703    /X\x{123}{2,4}+b/8
1704        X\P
1705    Partial match: X
1706        X\x{123}\P
1707    Partial match: X\x{123}
1708        X\x{123}\x{123}\P
1709    Partial match: X\x{123}\x{123}
1710        X\x{123}\x{123}\x{123}\P
1711    Partial match: X\x{123}\x{123}\x{123}
1712        X\x{123}\x{123}\x{123}\x{123}\P
1713    Partial match: X\x{123}\x{123}\x{123}\x{123}
1714    
1715    /X\x{123}{2,4}b/8
1716        Xx\P
1717    No match
1718        X\x{123}x\P
1719    No match
1720        X\x{123}\x{123}x\P
1721    No match
1722        X\x{123}\x{123}\x{123}x\P
1723    No match
1724        X\x{123}\x{123}\x{123}\x{123}x\P
1725    No match
1726    
1727    /X\x{123}{2,4}?b/8
1728        Xx\P
1729    No match
1730        X\x{123}x\P
1731    No match
1732        X\x{123}\x{123}x\P
1733    No match
1734        X\x{123}\x{123}\x{123}x\P
1735    No match
1736        X\x{123}\x{123}\x{123}\x{123}x\P
1737    No match
1738    
1739    /X\x{123}{2,4}+b/8
1740        Xx\P
1741    No match
1742        X\x{123}x\P
1743    No match
1744        X\x{123}\x{123}x\P
1745    No match
1746        X\x{123}\x{123}\x{123}x\P
1747    No match
1748        X\x{123}\x{123}\x{123}\x{123}x\P
1749    No match
1750    
1751    /X\d{2,4}b/8
1752        X\P
1753    Partial match: X
1754        X3\P
1755    Partial match: X3
1756        X33\P
1757    Partial match: X33
1758        X333\P
1759    Partial match: X333
1760        X3333\P
1761    Partial match: X3333
1762    
1763    /X\d{2,4}?b/8
1764        X\P
1765    Partial match: X
1766        X3\P
1767    Partial match: X3
1768        X33\P
1769    Partial match: X33
1770        X333\P
1771    Partial match: X333
1772        X3333\P
1773    Partial match: X3333
1774    
1775    /X\d{2,4}+b/8
1776        X\P
1777    Partial match: X
1778        X3\P
1779    Partial match: X3
1780        X33\P
1781    Partial match: X33
1782        X333\P
1783    Partial match: X333
1784        X3333\P
1785    Partial match: X3333
1786    
1787    /X\D{2,4}b/8
1788        X\P
1789    Partial match: X
1790        Xa\P
1791    Partial match: Xa
1792        Xaa\P
1793    Partial match: Xaa
1794        Xaaa\P
1795    Partial match: Xaaa
1796        Xaaaa\P
1797    Partial match: Xaaaa
1798    
1799    /X\D{2,4}?b/8
1800        X\P
1801    Partial match: X
1802        Xa\P
1803    Partial match: Xa
1804        Xaa\P
1805    Partial match: Xaa
1806        Xaaa\P
1807    Partial match: Xaaa
1808        Xaaaa\P
1809    Partial match: Xaaaa
1810    
1811    /X\D{2,4}+b/8
1812        X\P
1813    Partial match: X
1814        Xa\P
1815    Partial match: Xa
1816        Xaa\P
1817    Partial match: Xaa
1818        Xaaa\P
1819    Partial match: Xaaa
1820        Xaaaa\P
1821    Partial match: Xaaaa
1822    
1823    /X\D{2,4}b/8
1824        X\P
1825    Partial match: X
1826        X\x{123}\P
1827    Partial match: X\x{123}
1828        X\x{123}\x{123}\P
1829    Partial match: X\x{123}\x{123}
1830        X\x{123}\x{123}\x{123}\P
1831    Partial match: X\x{123}\x{123}\x{123}
1832        X\x{123}\x{123}\x{123}\x{123}\P
1833    Partial match: X\x{123}\x{123}\x{123}\x{123}
1834    
1835    /X\D{2,4}?b/8
1836        X\P
1837    Partial match: X
1838        X\x{123}\P
1839    Partial match: X\x{123}
1840        X\x{123}\x{123}\P
1841    Partial match: X\x{123}\x{123}
1842        X\x{123}\x{123}\x{123}\P
1843    Partial match: X\x{123}\x{123}\x{123}
1844        X\x{123}\x{123}\x{123}\x{123}\P
1845    Partial match: X\x{123}\x{123}\x{123}\x{123}
1846    
1847    /X\D{2,4}+b/8
1848        X\P
1849    Partial match: X
1850        X\x{123}\P
1851    Partial match: X\x{123}
1852        X\x{123}\x{123}\P
1853    Partial match: X\x{123}\x{123}
1854        X\x{123}\x{123}\x{123}\P
1855    Partial match: X\x{123}\x{123}\x{123}
1856        X\x{123}\x{123}\x{123}\x{123}\P
1857    Partial match: X\x{123}\x{123}\x{123}\x{123}
1858    
1859    /X[abc]{2,4}b/8
1860        X\P
1861    Partial match: X
1862        Xa\P
1863    Partial match: Xa
1864        Xaa\P
1865    Partial match: Xaa
1866        Xaaa\P
1867    Partial match: Xaaa
1868        Xaaaa\P
1869    Partial match: Xaaaa
1870    
1871    /X[abc]{2,4}?b/8
1872        X\P
1873    Partial match: X
1874        Xa\P
1875    Partial match: Xa
1876        Xaa\P
1877    Partial match: Xaa
1878        Xaaa\P
1879    Partial match: Xaaa
1880        Xaaaa\P
1881    Partial match: Xaaaa
1882    
1883    /X[abc]{2,4}+b/8
1884        X\P
1885    Partial match: X
1886        Xa\P
1887    Partial match: Xa
1888        Xaa\P
1889    Partial match: Xaa
1890        Xaaa\P
1891    Partial match: Xaaa
1892        Xaaaa\P
1893    Partial match: Xaaaa
1894    
1895    /X[abc\x{123}]{2,4}b/8
1896        X\P
1897    Partial match: X
1898        X\x{123}\P
1899    Partial match: X\x{123}
1900        X\x{123}\x{123}\P
1901    Partial match: X\x{123}\x{123}
1902        X\x{123}\x{123}\x{123}\P
1903    Partial match: X\x{123}\x{123}\x{123}
1904        X\x{123}\x{123}\x{123}\x{123}\P
1905    Partial match: X\x{123}\x{123}\x{123}\x{123}
1906    
1907    /X[abc\x{123}]{2,4}?b/8
1908        X\P
1909    Partial match: X
1910        X\x{123}\P
1911    Partial match: X\x{123}
1912        X\x{123}\x{123}\P
1913    Partial match: X\x{123}\x{123}
1914        X\x{123}\x{123}\x{123}\P
1915    Partial match: X\x{123}\x{123}\x{123}
1916        X\x{123}\x{123}\x{123}\x{123}\P
1917    Partial match: X\x{123}\x{123}\x{123}\x{123}
1918    
1919    /X[abc\x{123}]{2,4}+b/8
1920        X\P
1921    Partial match: X
1922        X\x{123}\P
1923    Partial match: X\x{123}
1924        X\x{123}\x{123}\P
1925    Partial match: X\x{123}\x{123}
1926        X\x{123}\x{123}\x{123}\P
1927    Partial match: X\x{123}\x{123}\x{123}
1928        X\x{123}\x{123}\x{123}\x{123}\P
1929    Partial match: X\x{123}\x{123}\x{123}\x{123}
1930    
1931    /X[^a]{2,4}b/8
1932        X\P
1933    Partial match: X
1934        Xz\P
1935    Partial match: Xz
1936        Xzz\P
1937    Partial match: Xzz
1938        Xzzz\P
1939    Partial match: Xzzz
1940        Xzzzz\P
1941    Partial match: Xzzzz
1942    
1943    /X[^a]{2,4}?b/8
1944        X\P
1945    Partial match: X
1946        Xz\P
1947    Partial match: Xz
1948        Xzz\P
1949    Partial match: Xzz
1950        Xzzz\P
1951    Partial match: Xzzz
1952        Xzzzz\P
1953    Partial match: Xzzzz
1954    
1955    /X[^a]{2,4}+b/8
1956        X\P
1957    Partial match: X
1958        Xz\P
1959    Partial match: Xz
1960        Xzz\P
1961    Partial match: Xzz
1962        Xzzz\P
1963    Partial match: Xzzz
1964        Xzzzz\P
1965    Partial match: Xzzzz
1966    
1967    /X[^a]{2,4}b/8
1968        X\P
1969    Partial match: X
1970        X\x{123}\P
1971    Partial match: X\x{123}
1972        X\x{123}\x{123}\P
1973    Partial match: X\x{123}\x{123}
1974        X\x{123}\x{123}\x{123}\P
1975    Partial match: X\x{123}\x{123}\x{123}
1976        X\x{123}\x{123}\x{123}\x{123}\P
1977    Partial match: X\x{123}\x{123}\x{123}\x{123}
1978    
1979    /X[^a]{2,4}?b/8
1980        X\P
1981    Partial match: X
1982        X\x{123}\P
1983    Partial match: X\x{123}
1984        X\x{123}\x{123}\P
1985    Partial match: X\x{123}\x{123}
1986        X\x{123}\x{123}\x{123}\P
1987    Partial match: X\x{123}\x{123}\x{123}
1988        X\x{123}\x{123}\x{123}\x{123}\P
1989    Partial match: X\x{123}\x{123}\x{123}\x{123}
1990    
1991    /X[^a]{2,4}+b/8
1992        X\P
1993    Partial match: X
1994        X\x{123}\P
1995    Partial match: X\x{123}
1996        X\x{123}\x{123}\P
1997    Partial match: X\x{123}\x{123}
1998        X\x{123}\x{123}\x{123}\P
1999    Partial match: X\x{123}\x{123}\x{123}
2000        X\x{123}\x{123}\x{123}\x{123}\P
2001    Partial match: X\x{123}\x{123}\x{123}\x{123}
2002    
2003    /(Y)X\1{2,4}b/8
2004        YX\P
2005    Partial match: YX
2006        YXY\P
2007    Partial match: YXY
2008        YXYY\P
2009    Partial match: YXYY
2010        YXYYY\P
2011    Partial match: YXYYY
2012        YXYYYY\P
2013    Partial match: YXYYYY
2014    
2015    /(Y)X\1{2,4}?b/8
2016        YX\P
2017    Partial match: YX
2018        YXY\P
2019    Partial match: YXY
2020        YXYY\P
2021    Partial match: YXYY
2022        YXYYY\P
2023    Partial match: YXYYY
2024        YXYYYY\P
2025    Partial match: YXYYYY
2026    
2027    /(Y)X\1{2,4}+b/8
2028        YX\P
2029    Partial match: YX
2030        YXY\P
2031    Partial match: YXY
2032        YXYY\P
2033    Partial match: YXYY
2034        YXYYY\P
2035    Partial match: YXYYY
2036        YXYYYY\P
2037    Partial match: YXYYYY
2038    
2039    /(\x{123})X\1{2,4}b/8
2040        \x{123}X\P
2041    Partial match: \x{123}X
2042        \x{123}X\x{123}\P
2043    Partial match: \x{123}X\x{123}
2044        \x{123}X\x{123}\x{123}\P
2045    Partial match: \x{123}X\x{123}\x{123}
2046        \x{123}X\x{123}\x{123}\x{123}\P
2047    Partial match: \x{123}X\x{123}\x{123}\x{123}
2048        \x{123}X\x{123}\x{123}\x{123}\x{123}\P
2049    Partial match: \x{123}X\x{123}\x{123}\x{123}\x{123}
2050    
2051    /(\x{123})X\1{2,4}?b/8
2052        \x{123}X\P
2053    Partial match: \x{123}X
2054        \x{123}X\x{123}\P
2055    Partial match: \x{123}X\x{123}
2056        \x{123}X\x{123}\x{123}\P
2057    Partial match: \x{123}X\x{123}\x{123}
2058        \x{123}X\x{123}\x{123}\x{123}\P
2059    Partial match: \x{123}X\x{123}\x{123}\x{123}
2060        \x{123}X\x{123}\x{123}\x{123}\x{123}\P
2061    Partial match: \x{123}X\x{123}\x{123}\x{123}\x{123}
2062    
2063    /(\x{123})X\1{2,4}+b/8
2064        \x{123}X\P
2065    Partial match: \x{123}X
2066        \x{123}X\x{123}\P
2067    Partial match: \x{123}X\x{123}
2068        \x{123}X\x{123}\x{123}\P
2069    Partial match: \x{123}X\x{123}\x{123}
2070        \x{123}X\x{123}\x{123}\x{123}\P
2071    Partial match: \x{123}X\x{123}\x{123}\x{123}
2072        \x{123}X\x{123}\x{123}\x{123}\x{123}\P
2073    Partial match: \x{123}X\x{123}\x{123}\x{123}\x{123}
2074    
2075    /\bthe cat\b/8
2076        the cat\P
2077     0: the cat
2078        the cat\P\P
2079    Partial match: the cat
2080    
2081    /abcd*/8
2082        xxxxabcd\P
2083     0: abcd
2084        xxxxabcd\P\P
2085    Partial match: abcd
2086    
2087    /abcd*/i8
2088        xxxxabcd\P
2089     0: abcd
2090        xxxxabcd\P\P
2091    Partial match: abcd
2092        XXXXABCD\P
2093     0: ABCD
2094        XXXXABCD\P\P
2095    Partial match: ABCD
2096    
2097    /abc\d*/8
2098        xxxxabc1\P
2099     0: abc1
2100        xxxxabc1\P\P
2101    Partial match: abc1
2102    
2103    /(a)bc\1*/8
2104        xxxxabca\P
2105     0: abca
2106     1: a
2107        xxxxabca\P\P
2108    Partial match: abca
2109    
2110    /abc[de]*/8
2111        xxxxabcde\P
2112     0: abcde
2113        xxxxabcde\P\P
2114    Partial match: abcde
2115    
2116    /X\W{3}X/8
2117        \PX
2118    Partial match: X
2119    
2120    /\h/SI
2121    Capturing subpattern count = 0
2122    No options
2123    No first char
2124    No need char
2125    Subject length lower bound = 1
2126    Starting byte set: \x09 \x20 \xa0
2127    
2128    /\h/SI8
2129    Capturing subpattern count = 0
2130    Options: utf8
2131    No first char
2132    No need char
2133    Subject length lower bound = 1
2134    Starting byte set: \x09 \x20 \xc2 \xe1 \xe2 \xe3
2135        ABC\x{09}
2136     0: \x{09}
2137        ABC\x{20}
2138     0:
2139        ABC\x{a0}
2140     0: \x{a0}
2141        ABC\x{1680}
2142     0: \x{1680}
2143        ABC\x{180e}
2144     0: \x{180e}
2145        ABC\x{2000}
2146     0: \x{2000}
2147        ABC\x{202f}
2148     0: \x{202f}
2149        ABC\x{205f}
2150     0: \x{205f}
2151        ABC\x{3000}
2152     0: \x{3000}
2153    
2154    /\v/SI
2155    Capturing subpattern count = 0
2156    No options
2157    No first char
2158    No need char
2159    Subject length lower bound = 1
2160    Starting byte set: \x0a \x0b \x0c \x0d \x85
2161    
2162    /\v/SI8
2163    Capturing subpattern count = 0
2164    Options: utf8
2165    No first char
2166    No need char
2167    Subject length lower bound = 1
2168    Starting byte set: \x0a \x0b \x0c \x0d \xc2 \xe2
2169        ABC\x{0a}
2170     0: \x{0a}
2171        ABC\x{0b}
2172     0: \x{0b}
2173        ABC\x{0c}
2174     0: \x{0c}
2175        ABC\x{0d}
2176     0: \x{0d}
2177        ABC\x{85}
2178     0: \x{85}
2179        ABC\x{2028}
2180     0: \x{2028}
2181    
2182    /\R/SI
2183    Capturing subpattern count = 0
2184    No options
2185    No first char
2186    No need char
2187    Subject length lower bound = 2
2188    Starting byte set: \x0a \x0b \x0c \x0d \x85
2189    
2190    /\R/SI8
2191    Capturing subpattern count = 0
2192    Options: utf8
2193    No first char
2194    No need char
2195    Subject length lower bound = 2
2196    Starting byte set: \x0a \x0b \x0c \x0d \xc2 \xe2
2197    
2198    /\h*A/SI8
2199    Capturing subpattern count = 0
2200    Options: utf8
2201    No first char
2202    Need char = 'A'
2203    Subject length lower bound = 1
2204    Starting byte set: \x09 \x20 A \xc2 \xe1 \xe2 \xe3
2205        CDBABC
2206     0: A
2207    
2208    /\v+A/SI8
2209    Capturing subpattern count = 0
2210    Options: utf8
2211    No first char
2212    Need char = 'A'
2213    Subject length lower bound = 2
2214    Starting byte set: \x0a \x0b \x0c \x0d \xc2 \xe2
2215    
2216    /\s?xxx\s/8SI
2217    Capturing subpattern count = 0
2218    Options: utf8
2219    No first char
2220    Need char = 'x'
2221    Subject length lower bound = 4
2222    Starting byte set: \x09 \x0a \x0c \x0d \x20 x
2223    
2224    /\sxxx\s/8T1
2225        AB\x{85}xxx\x{a0}XYZ
2226     0: \x{85}xxx\x{a0}
2227        AB\x{a0}xxx\x{85}XYZ
2228     0: \x{a0}xxx\x{85}
2229    
2230    /\sxxx\s/I8ST1
2231    Capturing subpattern count = 0
2232    Options: utf8
2233    No first char
2234    Need char = 'x'
2235    Subject length lower bound = 5
2236    Starting byte set: \x09 \x0a \x0c \x0d \x20 \xc2
2237        AB\x{85}xxx\x{a0}XYZ
2238     0: \x{85}xxx\x{a0}
2239        AB\x{a0}xxx\x{85}XYZ
2240     0: \x{a0}xxx\x{85}
2241    
2242    /\S \S/8T1
2243        \x{a2} \x{84}
2244     0: \x{a2} \x{84}
2245    
2246    /\S \S/I8ST1
2247    Capturing subpattern count = 0
2248    Options: utf8
2249    No first char
2250    Need char = ' '
2251    Subject length lower bound = 3
2252    Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x0b \x0e
2253      \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19 \x1a \x1b \x1c \x1d
2254      \x1e \x1f ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @
2255      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
2256      f g h i j k l m n o p q r s t u v w x y z { | } ~ \x7f \xc0 \xc1 \xc2 \xc3
2257      \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc \xcd \xce \xcf \xd0 \xd1 \xd2
2258      \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb \xdc \xdd \xde \xdf \xe0 \xe1
2259      \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed \xee \xef \xf0
2260      \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb \xfc \xfd \xfe \xff
2261        \x{a2} \x{84}
2262     0: \x{a2} \x{84}
2263        A Z
2264     0: A Z
2265    
2266    'A#хц'8x<any>BZ
2267    ------------------------------------------------------------------
2268            Bra
2269            A
2270            Ket
2271            End
2272    ------------------------------------------------------------------
2273    
2274    'A#хц
2275      PQ'8x<any>BZ
2276    ------------------------------------------------------------------
2277            Bra
2278            APQ
2279            Ket
2280            End
2281    ------------------------------------------------------------------
2282    
2283    /a+#хaa
2284      z#XX?/8x<any>BZ
2285    ------------------------------------------------------------------
2286            Bra
2287            a++
2288            z
2289            Ket
2290            End
2291    ------------------------------------------------------------------
2292    
2293    /a+#хaa
2294      z#х?/8x<any>BZ
2295    ------------------------------------------------------------------
2296            Bra
2297            a++
2298            z
2299            Ket
2300            End
2301    ------------------------------------------------------------------
2302    
2303    /\g{A}xxx#bXX(?'A'123) (?'A'456)/8x<any>BZ
2304    ------------------------------------------------------------------
2305            Bra
2306            \1
2307            xxx
2308            CBra 1
2309            456
2310            Ket
2311            Ket
2312            End
2313    ------------------------------------------------------------------
2314    
2315    /\g{A}xxx#bх(?'A'123) (?'A'456)/8x<any>BZ
2316    ------------------------------------------------------------------
2317            Bra
2318            \1
2319            xxx
2320            CBra 1
2321            456
2322            Ket
2323            Ket
2324            End
2325    ------------------------------------------------------------------
2326    
2327    /a+/8
2328        a\x{123}aa\>1
2329     0: aa
2330        a\x{123}aa\>2
2331    Error -11 (bad UTF-8 offset)
2332        a\x{123}aa\>3
2333     0: aa
2334        a\x{123}aa\>4
2335     0: a
2336        a\x{123}aa\>5
2337    No match
2338        a\x{123}aa\>6
2339    Error -24 (bad offset value)
2340    
2341    /^\cģ/8
2342    Failed: \c must be followed by an ASCII character at offset 3
2343    
2344    /-- End of testinput5 --/

Legend:
Removed from v.295  
changed lines
  Added in v.598

  ViewVC Help
Powered by ViewVC 1.1.5