blob: fbd74004ee8bc3414186c4b5d8e39dd531d261da [file] [log] [blame]
Janis Danisevskis112c9cc2016-03-31 13:35:25 +01001# 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
Elliott Hughes9bc971b2018-07-27 13:23:14 -070079Failed: error 183 at offset 4: using \C is disabled by the application
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010080
81/ab\Cde/info
Elliott Hughes0c26e192019-08-07 12:24:46 -070082Capture group count = 0
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010083Contains \C
84First code unit = 'a'
85Last code unit = 'e'
86Subject length lower bound = 5
87 abXde
88 0: abXde
89
90/(?<=ab\Cde)X/
91 abZdeX
92 0: X
93
94# End of testinput21