/[pcre]/code/branches/pcre16/testdata/testoutput2
ViewVC logotype

Diff of /code/branches/pcre16/testdata/testoutput2

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

revision 813 by ph10, Mon Dec 19 13:34:10 2011 UTC revision 814 by ph10, Wed Dec 21 12:05:24 2011 UTC
# Line 6  Line 6 
6      bug.      bug.
7    
8      NOTE: This is a non-UTF set of tests. When UTF support is needed, use      NOTE: This is a non-UTF set of tests. When UTF support is needed, use
9      test 5, and if Unicode Property Support is needed, use test 13. --/      test 5, and if Unicode Property Support is needed, use test 7. --/
10    
 /-- Originally, the Perl >= 5.10 things were in here too, but now I have  
     separated many (most?) of them out into test 11. However, there may still  
     be some that were overlooked. --/  
   
11  /(a)b|/I  /(a)b|/I
12  Capturing subpattern count = 1  Capturing subpattern count = 1
13  No options  No options
# Line 380  No need char Line 376  No need char
376   2: <unset>   2: <unset>
377   3: def   3: def
378    
 /abc/P  
     abc  
  0: abc  
     *** Failers  
 No match: POSIX code 17: match failed  
   
 /^abc|def/P  
     abcdef  
  0: abc  
     abcdef\B  
  0: def  
   
 /.*((abc)$|(def))/P  
     defabc  
  0: defabc  
  1: abc  
  2: abc  
     \Zdefabc  
  0: def  
  1: def  
  3: def  
   
 /the quick brown fox/P  
     the quick brown fox  
  0: the quick brown fox  
     *** Failers  
 No match: POSIX code 17: match failed  
     The Quick Brown Fox  
 No match: POSIX code 17: match failed  
   
 /the quick brown fox/Pi  
     the quick brown fox  
  0: the quick brown fox  
     The Quick Brown Fox  
  0: The Quick Brown Fox  
   
 /abc.def/P  
     *** Failers  
 No match: POSIX code 17: match failed  
     abc\ndef  
 No match: POSIX code 17: match failed  
   
 /abc$/P  
     abc  
  0: abc  
     abc\n  
  0: abc  
   
 /(abc)\2/P  
 Failed: POSIX code 15: bad back reference at offset 7  
   
 /(abc\1)/P  
     abc  
 No match: POSIX code 17: match failed  
   
379  /)/  /)/
380  Failed: unmatched parentheses at offset 0  Failed: unmatched parentheses at offset 0
381    
# Line 1405  Capturing subpattern count = 0 Line 1346  Capturing subpattern count = 0
1346  Contains explicit CR or LF match  Contains explicit CR or LF match
1347  Options: multiline  Options: multiline
1348  First char at start or follows newline  First char at start or follows newline
1349  Need char = 10  Need char = \x0a
1350      ab\nab\ncd      ab\nab\ncd
1351   0: ab\x0a   0: ab\x0a
1352   0+ ab\x0acd   0+ ab\x0acd
# Line 1692  No need char Line 1633  No need char
1633      \Nabc      \Nabc
1634  No match  No match
1635    
 /a*(b+)(z)(z)/P  
     aaaabbbbzzzz  
  0: aaaabbbbzz  
  1: bbbb  
  2: z  
  3: z  
     aaaabbbbzzzz\O0  
     aaaabbbbzzzz\O1  
  0: aaaabbbbzz  
     aaaabbbbzzzz\O2  
  0: aaaabbbbzz  
  1: bbbb  
     aaaabbbbzzzz\O3  
  0: aaaabbbbzz  
  1: bbbb  
  2: z  
     aaaabbbbzzzz\O4  
  0: aaaabbbbzz  
  1: bbbb  
  2: z  
  3: z  
     aaaabbbbzzzz\O5  
  0: aaaabbbbzz  
  1: bbbb  
  2: z  
  3: z  
   
1636  /^.?abcd/IS  /^.?abcd/IS
1637  Capturing subpattern count = 0  Capturing subpattern count = 0
1638  Options: anchored  Options: anchored
# Line 5854  No match Line 5768  No match
5768      line one\nthis is a line\nbreak in the second line      line one\nthis is a line\nbreak in the second line
5769  No match  No match
5770    
 /ab.cd/P  
     ab-cd  
  0: ab-cd  
     ab=cd  
  0: ab=cd  
     ** Failers  
 No match: POSIX code 17: match failed  
     ab\ncd  
 No match: POSIX code 17: match failed  
   
 /ab.cd/Ps  
     ab-cd  
  0: ab-cd  
     ab=cd  
  0: ab=cd  
     ab\ncd  
  0: ab\x0acd  
   
5771  /(?i)(?-i)AbCd/I  /(?i)(?-i)AbCd/I
5772  Capturing subpattern count = 0  Capturing subpattern count = 0
5773  No options  No options
# Line 6164  No need char Line 6060  No need char
6060      ((this))      ((this))
6061   0: ((this))   0: ((this))
6062    
 /a(b)c/PN  
     abc  
 Matched with REG_NOSUB  
   
 /a(?P<name>b)c/PN  
     abc  
 Matched with REG_NOSUB  
   
6063  /\x{100}/I  /\x{100}/I
6064  Failed: character value in \x{...} sequence is too large at offset 6  Failed: character value in \x{...} sequence is too large at offset 6
6065    
# Line 9478  No options Line 9366  No options
9366  First char at start or follows newline  First char at start or follows newline
9367  No need char  No need char
9368    
 /a?|b?/P  
     abc  
  0: a  
     ** Failers  
  0:  
     ddd\N  
 No match: POSIX code 17: match failed  
   
9369  /xyz/C  /xyz/C
9370    xyz    xyz
9371  --->xyz  --->xyz
# Line 9880  Partial match: the cat Line 9760  Partial match: the cat
9760     abc\P\P     abc\P\P
9761   0: abc   0: abc
9762    
 /\w+A/P  
    CDAAAAB  
  0: CDAAAA  
   
 /\w+A/PU  
    CDAAAAB  
  0: CDA  
   
9763  /abc\K123/  /abc\K123/
9764      xyzabc123pqr      xyzabc123pqr
9765   0: 123   0: 123

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

  ViewVC Help
Powered by ViewVC 1.1.5