Home | History | Annotate | Download | only in testdata
      1 # These are tests of \C that do not involve UTF. They are not run when \C is
      2 # disabled by compiling with --enable-never-backslash-C.
      3 
      4 /\C+\D \C+\d \C+\S \C+\s \C+\W \C+\w \C+. \C+\R \C+\H \C+\h \C+\V \C+\v \C+\Z \C+\z \C+$/Bx
      5 ------------------------------------------------------------------
      6         Bra
      7         AllAny+
      8         \D
      9         AllAny+
     10         \d
     11         AllAny+
     12         \S
     13         AllAny+
     14         \s
     15         AllAny+
     16         \W
     17         AllAny+
     18         \w
     19         AllAny+
     20         Any
     21         AllAny+
     22         \R
     23         AllAny+
     24         \H
     25         AllAny+
     26         \h
     27         AllAny+
     28         \V
     29         AllAny+
     30         \v
     31         AllAny+
     32         \Z
     33         AllAny++
     34         \z
     35         AllAny+
     36         $
     37         Ket
     38         End
     39 ------------------------------------------------------------------
     40 
     41 /\D+\C \d+\C \S+\C \s+\C \W+\C \w+\C .+\C \R+\C \H+\C \h+\C \V+\C \v+\C a+\C \n+\C \C+\C/Bx
     42 ------------------------------------------------------------------
     43         Bra
     44         \D+
     45         AllAny
     46         \d+
     47         AllAny
     48         \S+
     49         AllAny
     50         \s+
     51         AllAny
     52         \W+
     53         AllAny
     54         \w+
     55         AllAny
     56         Any+
     57         AllAny
     58         \R+
     59         AllAny
     60         \H+
     61         AllAny
     62         \h+
     63         AllAny
     64         \V+
     65         AllAny
     66         \v+
     67         AllAny
     68         a+
     69         AllAny
     70         \x0a+
     71         AllAny
     72         AllAny+
     73         AllAny
     74         Ket
     75         End
     76 ------------------------------------------------------------------
     77 
     78 /ab\Cde/never_backslash_c
     79 Failed: error 183 at offset 3: using \C is disabled by the application
     80 
     81 /ab\Cde/info
     82 Capturing subpattern count = 0
     83 Contains \C
     84 First code unit = 'a'
     85 Last code unit = 'e'
     86 Subject length lower bound = 5
     87     abXde
     88  0: abXde
     89     
     90 /(?<=ab\Cde)X/
     91     abZdeX
     92  0: X
     93 
     94 # End of testinput21
     95