xref: /aosp_15_r20/external/pcre/testdata/testoutput3 (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
13No match
14
15/^[\w]+/locale=fr_FR
16    �cole
17 0: �cole
18
19/^[\w]+/
20\= Expect no match
21    �cole
22No match
23
24/^[\W]+/
25    �cole
26 0: \xc9
27
28/^[\W]+/locale=fr_FR
29\= Expect no match
30    �cole
31No match
32
33/[\b]/
34    \b
35 0: \x08
36\= Expect no match
37    a
38No match
39
40/[\b]/locale=fr_FR
41    \b
42 0: \x08
43\= Expect no match
44    a
45No match
46
47/^\w+/
48\= Expect no match
49    �cole
50No match
51
52/^\w+/locale=fr_FR
53    �cole
54 0: �cole
55
56/(.+)\b(.+)/
57    �cole
58 0: \xc9cole
59 1: \xc9
60 2: cole
61
62/(.+)\b(.+)/locale=fr_FR
63\= Expect no match
64    �cole
65No match
66
67/�cole/i
68    �cole
69 0: \xc9cole
70\= Expect no match
71    �cole
72No match
73
74/�cole/i,locale=fr_FR
75    �cole
76 0: �cole
77    �cole
78 0: �cole
79
80/\w/I
81Capture group count = 0
82Starting code units: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P
83  Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z
84Subject length lower bound = 1
85
86/\w/I,locale=fr_FR
87Capture group count = 0
88Starting code units: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P
89  Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z
90  � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
91  � � � � � � � � � � � � � � � � � � � � � � � � � � � �
92Subject length lower bound = 1
93
94# All remaining tests are in the fr_FR locale, so set the default.
95
96#pattern locale=fr_FR
97
98/^[\xc8-\xc9]/i
99    �cole
100 0: �
101    �cole
102 0: �
103
104/^[\xc8-\xc9]/
105    �cole
106 0: �
107\= Expect no match
108    �cole
109No match
110
111/\xb5/i
112113 0: �
114\= Expect no match
115    \x9c
116No match
117
118/\W+/
119    >>>\xaa<<<
120 0: >>>
121    >>>\xba<<<
122 0: >>>
123
124/[\W]+/
125    >>>\xaa<<<
126 0: >>>
127    >>>\xba<<<
128 0: >>>
129
130/[^[:alpha:]]+/
131    >>>\xaa<<<
132 0: >>>
133    >>>\xba<<<
134 0: >>>
135
136/\w+/
137    >>>\xaa<<<
138 0: �
139    >>>\xba<<<
140 0: �
141
142/[\w]+/
143    >>>\xaa<<<
144 0: �
145    >>>\xba<<<
146 0: �
147
148/[[:alpha:]]+/
149    >>>\xaa<<<
150 0: �
151    >>>\xba<<<
152 0: �
153
154/[[:alpha:]][[:lower:]][[:upper:]]/IB
155------------------------------------------------------------------
156        Bra
157        [A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\xff]
158        [a-z\xb5\xdf-\xf6\xf8-\xff]
159        [A-Z\xc0-\xd6\xd8-\xde]
160        Ket
161        End
162------------------------------------------------------------------
163Capture group count = 0
164Starting code units: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
165  a b c d e f g h i j k l m n o p q r s t u v w x y z � � � � � � � � � � �
166  � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
167  � � � � � � � � � � � � � � � � �
168Subject length lower bound = 3
169
170# End of testinput3
171