/[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 849 by ph10, Wed Jan 4 17:02:01 2012 UTC revision 1519 by ph10, Fri Feb 6 17:55:54 2015 UTC
# Line 1  Line 1 
1  /-- This set of tests checks the API, internals, and non-Perl stuff for UTF  /-- This set of tests checks the API, internals, and non-Perl stuff for UTF
2      support, excluding Unicode properties. However, tests that give different      support, excluding Unicode properties. However, tests that give different
3      results in 8-bit and 16-bit modes are excluded (see tests 16 and 17). --/      results in 8-bit and 16-bit modes are excluded (see tests 16 and 17). --/
4    
5    < forbid W
6    
7  /\x{110000}/8DZ  /\x{110000}/8DZ
8  Failed: character value in \x{...} sequence is too large at offset 9  Failed: character value in \x{} or \o{} is too large at offset 9
9    
10    /\o{4200000}/8DZ
11    Failed: character value in \x{} or \o{} is too large at offset 10
12    
13  /\x{ffffffff}/8  /\x{ffffffff}/8
14  Failed: character value in \x{...} sequence is too large at offset 11  Failed: character value in \x{} or \o{} is too large at offset 11
15    
16    /\o{37777777777}/8
17    Failed: character value in \x{} or \o{} is too large at offset 14
18    
19  /\x{100000000}/8  /\x{100000000}/8
20  Failed: character value in \x{...} sequence is too large at offset 12  Failed: character value in \x{} or \o{} is too large at offset 12
21    
22    /\o{77777777777}/8
23    Failed: character value in \x{} or \o{} is too large at offset 14
24    
25  /\x{d800}/8  /\x{d800}/8
26  Failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 7  Failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 7
27    
28    /\o{154000}/8
29    Failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 9
30    
31  /\x{dfff}/8  /\x{dfff}/8
32  Failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 7  Failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 7
33    
34    /\o{157777}/8
35    Failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 9
36    
37  /\x{d7ff}/8  /\x{d7ff}/8
38    
39    /\o{153777}/8
40    
41  /\x{e000}/8  /\x{e000}/8
42    
43    /\o{170000}/8
44    
45  /^\x{100}a\x{1234}/8  /^\x{100}a\x{1234}/8
46      \x{100}a\x{1234}bcd      \x{100}a\x{1234}bcd
47   0: \x{100}a\x{1234}   0: \x{100}a\x{1234}
# Line 146  No match Line 167  No match
167  /\x{100}*/8DZ  /\x{100}*/8DZ
168  ------------------------------------------------------------------  ------------------------------------------------------------------
169          Bra          Bra
170          \x{100}*          \x{100}*+
171          Ket          Ket
172          End          End
173  ------------------------------------------------------------------  ------------------------------------------------------------------
174  Capturing subpattern count = 0  Capturing subpattern count = 0
175    May match empty string
176  Options: utf  Options: utf
177  No first char  No first char
178  No need char  No need char
# Line 159  No need char Line 181  No need char
181  ------------------------------------------------------------------  ------------------------------------------------------------------
182          Bra          Bra
183          a          a
184          \x{100}*          \x{100}*+
185          Ket          Ket
186          End          End
187  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 172  No need char Line 194  No need char
194  ------------------------------------------------------------------  ------------------------------------------------------------------
195          Bra          Bra
196          ab          ab
197          \x{100}*          \x{100}*+
198          Ket          Ket
199          End          End
200  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 248  No match Line 270  No match
270  /[z-\x{100}]/8DZ  /[z-\x{100}]/8DZ
271  ------------------------------------------------------------------  ------------------------------------------------------------------
272          Bra          Bra
273          [z-\x{100}]          [z-\xff\x{100}]
274          Ket          Ket
275          End          End
276  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 276  No need char Line 298  No need char
298  /[\xFF]/DZ  /[\xFF]/DZ
299  ------------------------------------------------------------------  ------------------------------------------------------------------
300          Bra          Bra
301          \xff          \x{ff}
302          Ket          Ket
303          End          End
304  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 290  No need char Line 312  No need char
312  /[^\xFF]/DZ  /[^\xFF]/DZ
313  ------------------------------------------------------------------  ------------------------------------------------------------------
314          Bra          Bra
315          [^\xff]          [^\x{ff}]
316          Ket          Ket
317          End          End
318  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 373  Need char = 'z' Line 395  Need char = 'z'
395          End          End
396  ------------------------------------------------------------------  ------------------------------------------------------------------
397  Capturing subpattern count = 2  Capturing subpattern count = 2
398    May match empty string
399  Options: utf  Options: utf
400  No first char  No first char
401  No need char  No need char
# Line 404  No need char Line 427  No need char
427          End          End
428  ------------------------------------------------------------------  ------------------------------------------------------------------
429  Capturing subpattern count = 2  Capturing subpattern count = 2
430    May match empty string
431  Options: utf  Options: utf
432  No first char  No first char
433  No need char  No need char
# Line 424  No need char Line 448  No need char
448          End          End
449  ------------------------------------------------------------------  ------------------------------------------------------------------
450  Capturing subpattern count = 2  Capturing subpattern count = 2
451    May match empty string
452  Options: utf  Options: utf
453  No first char  No first char
454  No need char  No need char
# Line 455  No need char Line 480  No need char
480          End          End
481  ------------------------------------------------------------------  ------------------------------------------------------------------
482  Capturing subpattern count = 2  Capturing subpattern count = 2
483    May match empty string
484  Options: utf  Options: utf
485  No first char  No first char
486  No need char  No need char
# Line 768  No match Line 794  No match
794  /[\h]{3,}/8BZ  /[\h]{3,}/8BZ
795  ------------------------------------------------------------------  ------------------------------------------------------------------
796          Bra          Bra
797          [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}]{3,}          [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}]{3,}+
798          Ket          Ket
799          End          End
800  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 1510  Options: caseless utf Line 1536  Options: caseless utf
1536  No first char  No first char
1537  No need char  No need char
1538  Subject length lower bound = 1  Subject length lower bound = 1
1539  No set of starting bytes  No starting char list
1540    
1541  /[^\x{1234}]+?/iS8I  /[^\x{1234}]+?/iS8I
1542  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 1518  Options: caseless utf Line 1544  Options: caseless utf
1544  No first char  No first char
1545  No need char  No need char
1546  Subject length lower bound = 1  Subject length lower bound = 1
1547  No set of starting bytes  No starting char list
1548    
1549  /[^\x{1234}]++/iS8I  /[^\x{1234}]++/iS8I
1550  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 1526  Options: caseless utf Line 1552  Options: caseless utf
1552  No first char  No first char
1553  No need char  No need char
1554  Subject length lower bound = 1  Subject length lower bound = 1
1555  No set of starting bytes  No starting char list
1556    
1557  /[^\x{1234}]{2}/iS8I  /[^\x{1234}]{2}/iS8I
1558  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 1534  Options: caseless utf Line 1560  Options: caseless utf
1560  No first char  No first char
1561  No need char  No need char
1562  Subject length lower bound = 2  Subject length lower bound = 2
1563  No set of starting bytes  No starting char list
1564    
1565  //<bsr_anycrlf><bsr_unicode>  //<bsr_anycrlf><bsr_unicode>
1566  Failed: inconsistent NEWLINE options at offset 0  Failed: inconsistent NEWLINE options at offset 0
# Line 1572  Failed: disallowed Unicode code point (> Line 1598  Failed: disallowed Unicode code point (>
1598  /[\h\x{e000}]+/8BZ  /[\h\x{e000}]+/8BZ
1599  ------------------------------------------------------------------  ------------------------------------------------------------------
1600          Bra          Bra
1601          [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}\x{e000}]+          [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}\x{e000}]++
1602          Ket          Ket
1603          End          End
1604  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 1594  Failed: disallowed Unicode code point (> Line 1620  Failed: disallowed Unicode code point (>
1620  /[\H\x{d7ff}]+/8BZ  /[\H\x{d7ff}]+/8BZ
1621  ------------------------------------------------------------------  ------------------------------------------------------------------
1622          Bra          Bra
1623          [\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{10ffff}\x{d7ff}]+          [\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{10ffff}\x{d7ff}]++
1624          Ket          Ket
1625          End          End
1626  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 1616  Failed: disallowed Unicode code point (> Line 1642  Failed: disallowed Unicode code point (>
1642  /[\v\x{e000}]+/8BZ  /[\v\x{e000}]+/8BZ
1643  ------------------------------------------------------------------  ------------------------------------------------------------------
1644          Bra          Bra
1645          [\x0a-\x0d\x85\x{2028}-\x{2029}\x{e000}]+          [\x0a-\x0d\x85\x{2028}-\x{2029}\x{e000}]++
1646          Ket          Ket
1647          End          End
1648  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 1634  Failed: disallowed Unicode code point (> Line 1660  Failed: disallowed Unicode code point (>
1660  /[\V\x{d7ff}]+/8BZ  /[\V\x{d7ff}]+/8BZ
1661  ------------------------------------------------------------------  ------------------------------------------------------------------
1662          Bra          Bra
1663          [\x00-\x09\x0e-\x84\x86-\xff\x{100}-\x{2027}\x{202a}-\x{10ffff}\x{d7ff}]+          [\x00-\x09\x0e-\x84\x86-\xff\x{100}-\x{2027}\x{202a}-\x{10ffff}\x{d7ff}]++
1664          Ket          Ket
1665          End          End
1666  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 1649  Failed: disallowed Unicode code point (> Line 1675  Failed: disallowed Unicode code point (>
1675      \x09\x0e\x{84}\x{86}\x{85}\x0a\x0b\x0c\x0d      \x09\x0e\x{84}\x{86}\x{85}\x0a\x0b\x0c\x0d
1676   0: \x{85}\x{0a}\x{0b}\x{0c}\x{0d}   0: \x{85}\x{0a}\x{0b}\x{0c}\x{0d}
1677    
1678    /(..)\1/8
1679        ab\P
1680    Partial match: ab
1681        aba\P
1682    Partial match: aba
1683        abab\P
1684     0: abab
1685     1: ab
1686    
1687    /(..)\1/8i
1688        ab\P
1689    Partial match: ab
1690        abA\P
1691    Partial match: abA
1692        aBAb\P
1693     0: aBAb
1694     1: aB
1695    
1696    /(..)\1{2,}/8
1697        ab\P
1698    Partial match: ab
1699        aba\P
1700    Partial match: aba
1701        abab\P
1702    Partial match: abab
1703        ababa\P
1704    Partial match: ababa
1705        ababab\P
1706     0: ababab
1707     1: ab
1708        ababab\P\P
1709    Partial match: ababab
1710        abababa\P
1711     0: ababab
1712     1: ab
1713        abababa\P\P
1714    Partial match: abababa
1715    
1716    /(..)\1{2,}/8i
1717        ab\P
1718    Partial match: ab
1719        aBa\P
1720    Partial match: aBa
1721        aBAb\P
1722    Partial match: aBAb
1723        AbaBA\P
1724    Partial match: AbaBA
1725        abABAb\P
1726     0: abABAb
1727     1: ab
1728        aBAbaB\P\P
1729    Partial match: aBAbaB
1730        abABabA\P
1731     0: abABab
1732     1: ab
1733        abaBABa\P\P
1734    Partial match: abaBABa
1735    
1736    /(..)\1{2,}?x/8i
1737        ab\P
1738    Partial match: ab
1739        abA\P
1740    Partial match: abA
1741        aBAb\P
1742    Partial match: aBAb
1743        abaBA\P
1744    Partial match: abaBA
1745        abAbaB\P
1746    Partial match: abAbaB
1747        abaBabA\P
1748    Partial match: abaBabA
1749        abAbABaBx\P
1750     0: abAbABaBx
1751     1: ab
1752    
1753    /./8<CRLF>
1754        \r\P
1755     0: \x{0d}
1756        \r\P\P
1757    Partial match: \x{0d}
1758    
1759    /.{2,3}/8<CRLF>
1760        \r\P
1761    Partial match: \x{0d}
1762        \r\P\P
1763    Partial match: \x{0d}
1764        \r\r\P
1765     0: \x{0d}\x{0d}
1766        \r\r\P\P
1767    Partial match: \x{0d}\x{0d}
1768        \r\r\r\P
1769     0: \x{0d}\x{0d}\x{0d}
1770        \r\r\r\P\P
1771    Partial match: \x{0d}\x{0d}\x{0d}
1772    
1773    /.{2,3}?/8<CRLF>
1774        \r\P
1775    Partial match: \x{0d}
1776        \r\P\P
1777    Partial match: \x{0d}
1778        \r\r\P
1779     0: \x{0d}\x{0d}
1780        \r\r\P\P
1781    Partial match: \x{0d}\x{0d}
1782        \r\r\r\P
1783     0: \x{0d}\x{0d}
1784        \r\r\r\P\P
1785     0: \x{0d}\x{0d}
1786    
1787    /[^\x{100}][^\x{1234}][^\x{ffff}][^\x{10000}][^\x{10ffff}]/8BZ
1788    ------------------------------------------------------------------
1789            Bra
1790            [^\x{100}]
1791            [^\x{1234}]
1792            [^\x{ffff}]
1793            [^\x{10000}]
1794            [^\x{10ffff}]
1795            Ket
1796            End
1797    ------------------------------------------------------------------
1798    
1799    /[^\x{100}][^\x{1234}][^\x{ffff}][^\x{10000}][^\x{10ffff}]/8BZi
1800    ------------------------------------------------------------------
1801            Bra
1802         /i [^\x{100}]
1803         /i [^\x{1234}]
1804         /i [^\x{ffff}]
1805         /i [^\x{10000}]
1806         /i [^\x{10ffff}]
1807            Ket
1808            End
1809    ------------------------------------------------------------------
1810    
1811    /[^\x{100}]*[^\x{10000}]+[^\x{10ffff}]??[^\x{8000}]{4,}[^\x{7fff}]{2,9}?[^\x{fffff}]{5,6}+/8BZ
1812    ------------------------------------------------------------------
1813            Bra
1814            [^\x{100}]*
1815            [^\x{10000}]+
1816            [^\x{10ffff}]??
1817            [^\x{8000}]{4}
1818            [^\x{8000}]*
1819            [^\x{7fff}]{2}
1820            [^\x{7fff}]{0,7}?
1821            [^\x{fffff}]{5}
1822            [^\x{fffff}]?+
1823            Ket
1824            End
1825    ------------------------------------------------------------------
1826    
1827    /[^\x{100}]*[^\x{10000}]+[^\x{10ffff}]??[^\x{8000}]{4,}[^\x{7fff}]{2,9}?[^\x{fffff}]{5,6}+/8BZi
1828    ------------------------------------------------------------------
1829            Bra
1830         /i [^\x{100}]*
1831         /i [^\x{10000}]+
1832         /i [^\x{10ffff}]??
1833         /i [^\x{8000}]{4}
1834         /i [^\x{8000}]*
1835         /i [^\x{7fff}]{2}
1836         /i [^\x{7fff}]{0,7}?
1837         /i [^\x{fffff}]{5}
1838         /i [^\x{fffff}]?+
1839            Ket
1840            End
1841    ------------------------------------------------------------------
1842    
1843    /(?<=\x{1234}\x{1234})\bxy/I8
1844    Capturing subpattern count = 0
1845    Max lookbehind = 2
1846    Options: utf
1847    First char = 'x'
1848    Need char = 'y'
1849    
1850    /(?<!^)ETA/8
1851        ETA
1852    No match
1853    
1854    /\u0100/<JS>8BZ
1855    ------------------------------------------------------------------
1856            Bra
1857            \x{100}
1858            Ket
1859            End
1860    ------------------------------------------------------------------
1861    
1862    /[\u0100-\u0200]/<JS>8BZ
1863    ------------------------------------------------------------------
1864            Bra
1865            [\x{100}-\x{200}]
1866            Ket
1867            End
1868    ------------------------------------------------------------------
1869    
1870    /\ud800/<JS>8
1871    Failed: disallowed Unicode code point (>= 0xd800 && <= 0xdfff) at offset 5
1872    
1873    /^a+[a\x{200}]/8BZ
1874    ------------------------------------------------------------------
1875            Bra
1876            ^
1877            a+
1878            [a\x{200}]
1879            Ket
1880            End
1881    ------------------------------------------------------------------
1882        aa
1883     0: aa
1884    
1885    /[b-d\x{200}-\x{250}]*[ae-h]?#[\x{200}-\x{250}]{0,8}[\x00-\xff]*#[\x{200}-\x{250}]+[a-z]/8BZ
1886    ------------------------------------------------------------------
1887            Bra
1888            [b-d\x{200}-\x{250}]*+
1889            [ae-h]?+
1890            #
1891            [\x{200}-\x{250}]{0,8}+
1892            [\x00-\xff]*
1893            #
1894            [\x{200}-\x{250}]++
1895            [a-z]
1896            Ket
1897            End
1898    ------------------------------------------------------------------
1899    
1900    /[^\xff]*PRUNE:\x{100}abc(xyz(?1))/8DZ
1901    ------------------------------------------------------------------
1902            Bra
1903            [^\x{ff}]*
1904            PRUNE:\x{100}abc
1905            CBra 1
1906            xyz
1907            Recurse
1908            Ket
1909            Ket
1910            End
1911    ------------------------------------------------------------------
1912    Capturing subpattern count = 1
1913    Options: utf
1914    No first char
1915    Need char = 'z'
1916    
1917  /-- End of testinput5 --/  /-- End of testinput5 --/

Legend:
Removed from v.849  
changed lines
  Added in v.1519

  ViewVC Help
Powered by ViewVC 1.1.5