xref: /aosp_15_r20/external/pcre/testdata/testinput3 (revision 22dc650d8ae982c6770746019a6f94af92b0f024)
1# This set of tests checks local-specific features, using the "fr_FR" locale.
2# It is not Perl-compatible. When run via RunTest, the locale is edited to
3# be whichever of "fr_FR", "french", or "fr" is found to exist. There is
4# different version of this file called wintestinput3 for use on Windows,
5# where the locale is called "french" and the tests are run using
6# RunTest.bat.
7
8#forbid_utf
9
10/^[\w]+/
11\= Expect no match
12    �cole
13
14/^[\w]+/locale=fr_FR
15    �cole
16
17/^[\w]+/
18\= Expect no match
19    �cole
20
21/^[\W]+/
22    �cole
23
24/^[\W]+/locale=fr_FR
25\= Expect no match
26    �cole
27
28/[\b]/
29    \b
30\= Expect no match
31    a
32
33/[\b]/locale=fr_FR
34    \b
35\= Expect no match
36    a
37
38/^\w+/
39\= Expect no match
40    �cole
41
42/^\w+/locale=fr_FR
43    �cole
44
45/(.+)\b(.+)/
46    �cole
47
48/(.+)\b(.+)/locale=fr_FR
49\= Expect no match
50    �cole
51
52/�cole/i
53    �cole
54\= Expect no match
55    �cole
56
57/�cole/i,locale=fr_FR
58    �cole
59    �cole
60
61/\w/I
62
63/\w/I,locale=fr_FR
64
65# All remaining tests are in the fr_FR locale, so set the default.
66
67#pattern locale=fr_FR
68
69/^[\xc8-\xc9]/i
70    �cole
71    �cole
72
73/^[\xc8-\xc9]/
74    �cole
75\= Expect no match
76    �cole
77
78/\xb5/i
7980\= Expect no match
81    \x9c
82
83/\W+/
84    >>>\xaa<<<
85    >>>\xba<<<
86
87/[\W]+/
88    >>>\xaa<<<
89    >>>\xba<<<
90
91/[^[:alpha:]]+/
92    >>>\xaa<<<
93    >>>\xba<<<
94
95/\w+/
96    >>>\xaa<<<
97    >>>\xba<<<
98
99/[\w]+/
100    >>>\xaa<<<
101    >>>\xba<<<
102
103/[[:alpha:]]+/
104    >>>\xaa<<<
105    >>>\xba<<<
106
107/[[:alpha:]][[:lower:]][[:upper:]]/IB
108
109# End of testinput3
110