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

Diff of /code/trunk/testdata/testoutput11

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

revision 770 by ph10, Tue Nov 22 13:36:51 2011 UTC revision 771 by ph10, Tue Nov 29 15:34:12 2011 UTC
# Line 888  No match, mark = A Line 888  No match, mark = A
888   0: AC   0: AC
889  MK: B  MK: B
890    
 /--- We use something more complicated than individual letters here, because  
 that causes different behaviour in Perl. Perhaps it disables some optimization;  
 anyway, the result now matches PCRE in that no tag is passed back for the  
 failures. ---/  
   
 /(A|P)(*:A)(B|P) | (X|P)(X|P)(*:B)(Y|P)/xK  
     AABC  
  0: AB  
  1: A  
  2: B  
 MK: A  
     XXYZ  
  0: XXY  
  1: <unset>  
  2: <unset>  
  3: X  
  4: X  
  5: Y  
 MK: B  
     ** Failers  
 No match  
     XAQQ  
 No match  
     XAQQXZZ  
 No match  
     AXQQQ  
 No match  
     AXXQQQ  
 No match  
   
891  /--- COMMIT at the start of a pattern should act like an anchor. Again,  /--- COMMIT at the start of a pattern should act like an anchor. Again,
892  however, we need the complication for Perl. ---/  however, we need the complication for Perl. ---/
893    
# Line 1447  MK: N Line 1417  MK: N
1417   1: a   1: a
1418   2: d   2: d
1419    
1420    /(*MARK:A)(*PRUNE:B)(C|X)/KS
1421        C
1422     0: C
1423     1: C
1424    MK: B
1425        D
1426    No match, mark = B
1427    
1428    /(*MARK:A)(*PRUNE:B)(C|X)/KSS
1429        C
1430     0: C
1431     1: C
1432    MK: B
1433        D
1434    No match, mark = B
1435    
1436    /(*MARK:A)(*THEN:B)(C|X)/KS
1437        C
1438     0: C
1439     1: C
1440    MK: B
1441        D
1442    No match, mark = B
1443    
1444    /(*MARK:A)(*THEN:B)(C|X)/KSY
1445        C
1446     0: C
1447     1: C
1448    MK: B
1449        D
1450    No match, mark = B
1451    
1452    /(*MARK:A)(*THEN:B)(C|X)/KSS
1453        C
1454     0: C
1455     1: C
1456    MK: B
1457        D
1458    No match, mark = B
1459    
1460    /--- This should fail, as the skip causes a bump to offset 3 (the skip) ---/
1461    
1462    /A(*MARK:A)A+(*SKIP)(B|Z) | AC/xK
1463        AAAC
1464    No match, mark = A
1465    
1466    /--- Same --/
1467    
1468    /A(*MARK:A)A+(*MARK:B)(*SKIP:B)(B|Z) | AC/xK
1469        AAAC
1470    No match, mark = B
1471    
1472    /A(*:A)A+(*SKIP)(B|Z) | AC/xK
1473        AAAC
1474    No match, mark = A
1475    
1476    /--- This should fail, as a null name is the same as no name ---/
1477    
1478    /A(*MARK:A)A+(*SKIP:)(B|Z) | AC/xK
1479        AAAC
1480    No match, mark = A
1481    
1482    /--- A check on what happens after hitting a mark and them bumping along to
1483    something that does not even start. Perl reports tags after the failures here,
1484    though it does not when the individual letters are made into something
1485    more complicated. ---/
1486    
1487    /A(*:A)B|XX(*:B)Y/K
1488        AABC
1489     0: AB
1490    MK: A
1491        XXYZ
1492     0: XXY
1493    MK: B
1494        ** Failers
1495    No match
1496        XAQQ
1497    No match, mark = A
1498        XAQQXZZ
1499    No match, mark = A
1500        AXQQQ
1501    No match, mark = A
1502        AXXQQQ
1503    No match, mark = B
1504    
1505    /^(A(*THEN:A)B|C(*THEN:B)D)/K
1506        AB
1507     0: AB
1508     1: AB
1509    MK: A
1510        CD
1511     0: CD
1512     1: CD
1513    MK: B
1514        ** Failers
1515    No match
1516        AC
1517    No match, mark = A
1518        CB
1519    No match, mark = B
1520    
1521    /^(A(*PRUNE:A)B|C(*PRUNE:B)D)/K
1522        AB
1523     0: AB
1524     1: AB
1525    MK: A
1526        CD
1527     0: CD
1528     1: CD
1529    MK: B
1530        ** Failers
1531    No match
1532        AC
1533    No match, mark = A
1534        CB
1535    No match, mark = B
1536    
1537    /--- An empty name does not pass back an empty string. It is the same as if no
1538    name were given. ---/
1539    
1540    /^(A(*PRUNE:)B|C(*PRUNE:B)D)/K
1541        AB
1542     0: AB
1543     1: AB
1544        CD
1545     0: CD
1546     1: CD
1547    MK: B
1548    
1549    /--- PRUNE goes to next bumpalong; COMMIT does not. ---/
1550    
1551    /A(*PRUNE:A)B/K
1552        ACAB
1553     0: AB
1554    MK: A
1555    
1556    /--- Mark names can be duplicated ---/
1557    
1558    /A(*:A)B|X(*:A)Y/K
1559        AABC
1560     0: AB
1561    MK: A
1562        XXYZ
1563     0: XY
1564    MK: A
1565    
1566    /b(*:m)f|a(*:n)w/K
1567        aw
1568     0: aw
1569    MK: n
1570        ** Failers
1571    No match, mark = n
1572        abc
1573    No match, mark = m
1574    
1575    /b(*:m)f|aw/K
1576        abaw
1577     0: aw
1578        ** Failers
1579    No match
1580        abc
1581    No match, mark = m
1582        abax
1583    No match, mark = m
1584    
1585    /A(*MARK:A)A+(*SKIP:B)(B|Z) | AAC/xK
1586        AAAC
1587     0: AAC
1588    
1589    /a(*PRUNE:X)bc|qq/KY
1590        ** Failers
1591    No match, mark = X
1592        axy
1593    No match, mark = X
1594    
1595    /a(*THEN:X)bc|qq/KY
1596        ** Failers
1597    No match, mark = X
1598        axy
1599    No match, mark = X
1600    
1601    /(?=a(*MARK:A)b)..x/K
1602        abxy
1603     0: abx
1604    MK: A
1605        ** Failers
1606    No match
1607        abpq
1608    No match
1609    
1610    /(?=a(*MARK:A)b)..(*:Y)x/K
1611        abxy
1612     0: abx
1613    MK: Y
1614        ** Failers
1615    No match
1616        abpq
1617    No match
1618    
1619    /(?=a(*PRUNE:A)b)..x/K
1620        abxy
1621     0: abx
1622    MK: A
1623        ** Failers
1624    No match
1625        abpq
1626    No match
1627    
1628    /(?=a(*PRUNE:A)b)..(*:Y)x/K
1629        abxy
1630     0: abx
1631    MK: Y
1632        ** Failers
1633    No match
1634        abpq
1635    No match
1636    
1637    /(?=a(*THEN:A)b)..x/K
1638        abxy
1639     0: abx
1640    MK: A
1641        ** Failers
1642    No match
1643        abpq
1644    No match
1645    
1646    /(?=a(*THEN:A)b)..(*:Y)x/K
1647        abxy
1648     0: abx
1649    MK: Y
1650        ** Failers
1651    No match
1652        abpq
1653    No match
1654    
1655  /-- End of testinput11 --/  /-- End of testinput11 --/

Legend:
Removed from v.770  
changed lines
  Added in v.771

  ViewVC Help
Powered by ViewVC 1.1.5