This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactor is_XDIGIT_uni(), is_XDIGIT_utf8() and macros
[perl5.git] / regcharclass.h
CommitLineData
8770da0e 1/* -*- buffer-read-only: t -*-
58fbde93
RGS
2 *
3 * regcharclass.h
4 *
2eee27d7 5 * Copyright (C) 2007, 2011 by Larry Wall and others
58fbde93
RGS
6 *
7 * You may distribute under the terms of either the GNU General Public
8 * License or the Artistic License, as specified in the README file.
9 *
10 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
98e310af 11 * This file is built by regen/regcharclass.pl.
58fbde93
RGS
12 * Any changes made here will be lost!
13 */
12b72891 14
d10c72f2
KW
15
16#ifndef H_REGCHARCLASS /* Guard against nested #includes */
17#define H_REGCHARCLASS 1
18
12b72891
RGS
19/*
20 LNBREAK: Line Break: \R
21
58fbde93 22 "\x0D\x0A" # CRLF - Network (Windows) line ending
05b688d9 23 \p{VertSpace}
12b72891
RGS
24*/
25/*** GENERATED CODE ***/
26#define is_LNBREAK(s,is_utf8) \
e64b1bd1
YO
27( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C ) ? 1 \
28: ( 0x0D == ((U8*)s)[0] ) ? \
29 ( ( 0x0A == ((U8*)s)[1] ) ? 2 : 1 ) \
30: ( is_utf8 ) ? \
31 ( ( 0xC2 == ((U8*)s)[0] ) ? \
32 ( ( 0x85 == ((U8*)s)[1] ) ? 2 : 0 ) \
6c4f0678 33 : ( ( ( 0xE2 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( ( ((U8*)s)[2] & 0xFE ) == 0xA8 ) ) ? 3 : 0 )\
e64b1bd1 34: ( 0x85 == ((U8*)s)[0] ) )
e1d1eefb 35
12b72891
RGS
36/*** GENERATED CODE ***/
37#define is_LNBREAK_safe(s,e,is_utf8) \
e64b1bd1
YO
38( ((e)-(s) > 2) ? \
39 ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C ) ? 1 \
40 : ( 0x0D == ((U8*)s)[0] ) ? \
41 ( ( 0x0A == ((U8*)s)[1] ) ? 2 : 1 ) \
42 : ( is_utf8 ) ? \
43 ( ( 0xC2 == ((U8*)s)[0] ) ? \
44 ( ( 0x85 == ((U8*)s)[1] ) ? 2 : 0 ) \
6c4f0678 45 : ( ( ( 0xE2 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( ( ((U8*)s)[2] & 0xFE ) == 0xA8 ) ) ? 3 : 0 )\
e64b1bd1
YO
46 : ( 0x85 == ((U8*)s)[0] ) ) \
47: ((e)-(s) > 1) ? \
48 ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C ) ? 1 \
49 : ( 0x0D == ((U8*)s)[0] ) ? \
50 ( ( 0x0A == ((U8*)s)[1] ) ? 2 : 1 ) \
51 : ( is_utf8 ) ? \
52 ( ( ( 0xC2 == ((U8*)s)[0] ) && ( 0x85 == ((U8*)s)[1] ) ) ? 2 : 0 ) \
53 : ( 0x85 == ((U8*)s)[0] ) ) \
54: ((e)-(s) > 0) ? \
55 ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) ? 1 \
56 : ( !( is_utf8 ) ) ? \
57 ( 0x85 == ((U8*)s)[0] ) \
58 : 0 ) \
59: 0 )
e1d1eefb 60
12b72891
RGS
61/*** GENERATED CODE ***/
62#define is_LNBREAK_utf8(s) \
e64b1bd1
YO
63( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C ) ? 1 \
64: ( 0x0D == ((U8*)s)[0] ) ? \
65 ( ( 0x0A == ((U8*)s)[1] ) ? 2 : 1 ) \
66: ( 0xC2 == ((U8*)s)[0] ) ? \
67 ( ( 0x85 == ((U8*)s)[1] ) ? 2 : 0 ) \
6c4f0678 68: ( ( ( 0xE2 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( ( ((U8*)s)[2] & 0xFE ) == 0xA8 ) ) ? 3 : 0 )
e1d1eefb 69
12b72891
RGS
70/*** GENERATED CODE ***/
71#define is_LNBREAK_utf8_safe(s,e) \
e64b1bd1
YO
72( ((e)-(s) > 2) ? \
73 ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C ) ? 1 \
74 : ( 0x0D == ((U8*)s)[0] ) ? \
75 ( ( 0x0A == ((U8*)s)[1] ) ? 2 : 1 ) \
76 : ( 0xC2 == ((U8*)s)[0] ) ? \
77 ( ( 0x85 == ((U8*)s)[1] ) ? 2 : 0 ) \
6c4f0678 78 : ( ( ( 0xE2 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( ( ((U8*)s)[2] & 0xFE ) == 0xA8 ) ) ? 3 : 0 )\
e64b1bd1
YO
79: ((e)-(s) > 1) ? \
80 ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C ) ? 1 \
81 : ( 0x0D == ((U8*)s)[0] ) ? \
82 ( ( 0x0A == ((U8*)s)[1] ) ? 2 : 1 ) \
6c4f0678 83 : ( ( 0xC2 == ((U8*)s)[0] ) && ( 0x85 == ((U8*)s)[1] ) ) ? 2 : 0 ) \
e64b1bd1
YO
84: ((e)-(s) > 0) ? \
85 ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) \
86: 0 )
e1d1eefb 87
12b72891
RGS
88/*** GENERATED CODE ***/
89#define is_LNBREAK_latin1(s) \
9a3182e9 90( ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C ) || 0x85 == ((U8*)s)[0] ) ? 1\
e64b1bd1
YO
91: ( 0x0D == ((U8*)s)[0] ) ? \
92 ( ( 0x0A == ((U8*)s)[1] ) ? 2 : 1 ) \
9a3182e9 93: 0 )
e1d1eefb 94
12b72891
RGS
95/*** GENERATED CODE ***/
96#define is_LNBREAK_latin1_safe(s,e) \
e64b1bd1 97( ((e)-(s) > 1) ? \
9a3182e9 98 ( ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C ) || 0x85 == ((U8*)s)[0] ) ? 1\
e64b1bd1
YO
99 : ( 0x0D == ((U8*)s)[0] ) ? \
100 ( ( 0x0A == ((U8*)s)[1] ) ? 2 : 1 ) \
9a3182e9 101 : 0 ) \
e64b1bd1
YO
102: ((e)-(s) > 0) ? \
103 ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) || 0x85 == ((U8*)s)[0] )\
104: 0 )
12b72891
RGS
105
106/*
107 HORIZWS: Horizontal Whitespace: \h \H
108
05b688d9 109 \p{HorizSpace}
12b72891
RGS
110*/
111/*** GENERATED CODE ***/
112#define is_HORIZWS(s,is_utf8) \
e64b1bd1
YO
113( ( 0x09 == ((U8*)s)[0] || 0x20 == ((U8*)s)[0] ) ? 1 \
114: ( is_utf8 ) ? \
115 ( ( 0xC2 == ((U8*)s)[0] ) ? \
116 ( ( 0xA0 == ((U8*)s)[1] ) ? 2 : 0 ) \
117 : ( 0xE1 == ((U8*)s)[0] ) ? \
118 ( ( 0x9A == ((U8*)s)[1] ) ? \
119 ( ( 0x80 == ((U8*)s)[2] ) ? 3 : 0 ) \
6c4f0678 120 : ( ( 0xA0 == ((U8*)s)[1] ) && ( 0x8E == ((U8*)s)[2] ) ) ? 3 : 0 ) \
e64b1bd1
YO
121 : ( 0xE2 == ((U8*)s)[0] ) ? \
122 ( ( 0x80 == ((U8*)s)[1] ) ? \
123 ( ( ( 0x80 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x8A ) || 0xAF == ((U8*)s)[2] ) ? 3 : 0 )\
6c4f0678
YO
124 : ( ( 0x81 == ((U8*)s)[1] ) && ( 0x9F == ((U8*)s)[2] ) ) ? 3 : 0 ) \
125 : ( ( ( 0xE3 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( 0x80 == ((U8*)s)[2] ) ) ? 3 : 0 )\
e64b1bd1 126: ( 0xA0 == ((U8*)s)[0] ) )
e1d1eefb 127
12b72891
RGS
128/*** GENERATED CODE ***/
129#define is_HORIZWS_safe(s,e,is_utf8) \
e64b1bd1
YO
130( ((e)-(s) > 2) ? \
131 ( ( 0x09 == ((U8*)s)[0] || 0x20 == ((U8*)s)[0] ) ? 1 \
132 : ( is_utf8 ) ? \
133 ( ( 0xC2 == ((U8*)s)[0] ) ? \
134 ( ( 0xA0 == ((U8*)s)[1] ) ? 2 : 0 ) \
135 : ( 0xE1 == ((U8*)s)[0] ) ? \
136 ( ( 0x9A == ((U8*)s)[1] ) ? \
137 ( ( 0x80 == ((U8*)s)[2] ) ? 3 : 0 ) \
6c4f0678 138 : ( ( 0xA0 == ((U8*)s)[1] ) && ( 0x8E == ((U8*)s)[2] ) ) ? 3 : 0 )\
e64b1bd1
YO
139 : ( 0xE2 == ((U8*)s)[0] ) ? \
140 ( ( 0x80 == ((U8*)s)[1] ) ? \
141 ( ( ( 0x80 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x8A ) || 0xAF == ((U8*)s)[2] ) ? 3 : 0 )\
6c4f0678
YO
142 : ( ( 0x81 == ((U8*)s)[1] ) && ( 0x9F == ((U8*)s)[2] ) ) ? 3 : 0 )\
143 : ( ( ( 0xE3 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( 0x80 == ((U8*)s)[2] ) ) ? 3 : 0 )\
e64b1bd1
YO
144 : ( 0xA0 == ((U8*)s)[0] ) ) \
145: ((e)-(s) > 1) ? \
146 ( ( 0x09 == ((U8*)s)[0] || 0x20 == ((U8*)s)[0] ) ? 1 \
147 : ( is_utf8 ) ? \
148 ( ( ( 0xC2 == ((U8*)s)[0] ) && ( 0xA0 == ((U8*)s)[1] ) ) ? 2 : 0 ) \
149 : ( 0xA0 == ((U8*)s)[0] ) ) \
150: ((e)-(s) > 0) ? \
151 ( ( 0x09 == ((U8*)s)[0] || 0x20 == ((U8*)s)[0] ) ? 1 \
152 : ( !( is_utf8 ) ) ? \
153 ( 0xA0 == ((U8*)s)[0] ) \
154 : 0 ) \
155: 0 )
e1d1eefb 156
12b72891
RGS
157/*** GENERATED CODE ***/
158#define is_HORIZWS_utf8(s) \
e64b1bd1
YO
159( ( 0x09 == ((U8*)s)[0] || 0x20 == ((U8*)s)[0] ) ? 1 \
160: ( 0xC2 == ((U8*)s)[0] ) ? \
161 ( ( 0xA0 == ((U8*)s)[1] ) ? 2 : 0 ) \
162: ( 0xE1 == ((U8*)s)[0] ) ? \
163 ( ( 0x9A == ((U8*)s)[1] ) ? \
164 ( ( 0x80 == ((U8*)s)[2] ) ? 3 : 0 ) \
6c4f0678 165 : ( ( 0xA0 == ((U8*)s)[1] ) && ( 0x8E == ((U8*)s)[2] ) ) ? 3 : 0 ) \
e64b1bd1
YO
166: ( 0xE2 == ((U8*)s)[0] ) ? \
167 ( ( 0x80 == ((U8*)s)[1] ) ? \
6e130234 168 ( ( ( ((U8*)s)[2] <= 0x8A ) || 0xAF == ((U8*)s)[2] ) ? 3 : 0 ) \
6c4f0678
YO
169 : ( ( 0x81 == ((U8*)s)[1] ) && ( 0x9F == ((U8*)s)[2] ) ) ? 3 : 0 ) \
170: ( ( ( 0xE3 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( 0x80 == ((U8*)s)[2] ) ) ? 3 : 0 )
e1d1eefb 171
12b72891
RGS
172/*** GENERATED CODE ***/
173#define is_HORIZWS_utf8_safe(s,e) \
e64b1bd1
YO
174( ((e)-(s) > 2) ? \
175 ( ( 0x09 == ((U8*)s)[0] || 0x20 == ((U8*)s)[0] ) ? 1 \
176 : ( 0xC2 == ((U8*)s)[0] ) ? \
177 ( ( 0xA0 == ((U8*)s)[1] ) ? 2 : 0 ) \
178 : ( 0xE1 == ((U8*)s)[0] ) ? \
179 ( ( 0x9A == ((U8*)s)[1] ) ? \
180 ( ( 0x80 == ((U8*)s)[2] ) ? 3 : 0 ) \
6c4f0678 181 : ( ( 0xA0 == ((U8*)s)[1] ) && ( 0x8E == ((U8*)s)[2] ) ) ? 3 : 0 ) \
e64b1bd1
YO
182 : ( 0xE2 == ((U8*)s)[0] ) ? \
183 ( ( 0x80 == ((U8*)s)[1] ) ? \
184 ( ( ( 0x80 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x8A ) || 0xAF == ((U8*)s)[2] ) ? 3 : 0 )\
6c4f0678
YO
185 : ( ( 0x81 == ((U8*)s)[1] ) && ( 0x9F == ((U8*)s)[2] ) ) ? 3 : 0 ) \
186 : ( ( ( 0xE3 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( 0x80 == ((U8*)s)[2] ) ) ? 3 : 0 )\
e64b1bd1
YO
187: ((e)-(s) > 1) ? \
188 ( ( 0x09 == ((U8*)s)[0] || 0x20 == ((U8*)s)[0] ) ? 1 \
6c4f0678 189 : ( ( 0xC2 == ((U8*)s)[0] ) && ( 0xA0 == ((U8*)s)[1] ) ) ? 2 : 0 ) \
e64b1bd1
YO
190: ((e)-(s) > 0) ? \
191 ( 0x09 == ((U8*)s)[0] || 0x20 == ((U8*)s)[0] ) \
192: 0 )
e1d1eefb 193
12b72891
RGS
194/*** GENERATED CODE ***/
195#define is_HORIZWS_latin1(s) \
75929b4b 196( ((U8*)s)[0] == 0x09 || ( ( ((U8*)s)[0] & 0x7F ) == 0x20 ) )
e1d1eefb 197
12b72891
RGS
198/*** GENERATED CODE ***/
199#define is_HORIZWS_latin1_safe(s,e) \
e64b1bd1 200( ((e)-(s) > 0) ? \
75929b4b 201 ( ((U8*)s)[0] == 0x09 || ( ( ((U8*)s)[0] & 0x7F ) == 0x20 ) ) \
e64b1bd1 202: 0 )
e1d1eefb 203
12b72891 204/*** GENERATED CODE ***/
2cafb56b
KW
205#define is_HORIZWS_high(s) \
206( ( 0xE1 == ((U8*)s)[0] ) ? \
207 ( ( 0x9A == ((U8*)s)[1] ) ? \
208 ( ( 0x80 == ((U8*)s)[2] ) ? 3 : 0 ) \
209 : ( ( 0xA0 == ((U8*)s)[1] ) && ( 0x8E == ((U8*)s)[2] ) ) ? 3 : 0 ) \
210: ( 0xE2 == ((U8*)s)[0] ) ? \
211 ( ( 0x80 == ((U8*)s)[1] ) ? \
212 ( ( ( ((U8*)s)[2] <= 0x8A ) || 0xAF == ((U8*)s)[2] ) ? 3 : 0 ) \
213 : ( ( 0x81 == ((U8*)s)[1] ) && ( 0x9F == ((U8*)s)[2] ) ) ? 3 : 0 ) \
214: ( ( ( 0xE3 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( 0x80 == ((U8*)s)[2] ) ) ? 3 : 0 )
215
216/*** GENERATED CODE ***/
217#define is_HORIZWS_high_safe(s,e) \
218( ((e)-(s) > 2) ? \
219 ( ( 0xE1 == ((U8*)s)[0] ) ? \
220 ( ( 0x9A == ((U8*)s)[1] ) ? \
221 ( ( 0x80 == ((U8*)s)[2] ) ? 3 : 0 ) \
222 : ( ( 0xA0 == ((U8*)s)[1] ) && ( 0x8E == ((U8*)s)[2] ) ) ? 3 : 0 ) \
223 : ( 0xE2 == ((U8*)s)[0] ) ? \
224 ( ( 0x80 == ((U8*)s)[1] ) ? \
225 ( ( ( 0x80 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x8A ) || 0xAF == ((U8*)s)[2] ) ? 3 : 0 )\
226 : ( ( 0x81 == ((U8*)s)[1] ) && ( 0x9F == ((U8*)s)[2] ) ) ? 3 : 0 ) \
227 : ( ( ( 0xE3 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( 0x80 == ((U8*)s)[2] ) ) ? 3 : 0 )\
228: 0 )
229
230/*** GENERATED CODE ***/
12b72891 231#define is_HORIZWS_cp(cp) \
e64b1bd1
YO
232( 0x09 == cp || ( 0x09 < cp && \
233( 0x20 == cp || ( 0x20 < cp && \
234( 0xA0 == cp || ( 0xA0 < cp && \
235( 0x1680 == cp || ( 0x1680 < cp && \
236( 0x180E == cp || ( 0x180E < cp && \
237( ( 0x2000 <= cp && cp <= 0x200A ) || ( 0x200A < cp && \
238( 0x202F == cp || ( 0x202F < cp && \
ee98d22d 239( 0x205F == cp || 0x3000 == cp ) ) ) ) ) ) ) ) ) ) ) ) ) ) )
e1d1eefb 240
2cafb56b
KW
241/*** GENERATED CODE ***/
242#define is_HORIZWS_cp_high(cp) \
243( 0x1680 == cp || ( 0x1680 < cp && \
244( 0x180E == cp || ( 0x180E < cp && \
245( ( 0x2000 <= cp && cp <= 0x200A ) || ( 0x200A < cp && \
246( 0x202F == cp || ( 0x202F < cp && \
247( 0x205F == cp || 0x3000 == cp ) ) ) ) ) ) ) ) )
248
12b72891
RGS
249/*
250 VERTWS: Vertical Whitespace: \v \V
e1d1eefb 251
05b688d9 252 \p{VertSpace}
12b72891
RGS
253*/
254/*** GENERATED CODE ***/
255#define is_VERTWS(s,is_utf8) \
e64b1bd1
YO
256( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) ? 1 \
257: ( is_utf8 ) ? \
258 ( ( 0xC2 == ((U8*)s)[0] ) ? \
259 ( ( 0x85 == ((U8*)s)[1] ) ? 2 : 0 ) \
6c4f0678 260 : ( ( ( 0xE2 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( ( ((U8*)s)[2] & 0xFE ) == 0xA8 ) ) ? 3 : 0 )\
e64b1bd1 261: ( 0x85 == ((U8*)s)[0] ) )
e1d1eefb 262
12b72891
RGS
263/*** GENERATED CODE ***/
264#define is_VERTWS_safe(s,e,is_utf8) \
e64b1bd1
YO
265( ((e)-(s) > 2) ? \
266 ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) ? 1 \
267 : ( is_utf8 ) ? \
268 ( ( 0xC2 == ((U8*)s)[0] ) ? \
269 ( ( 0x85 == ((U8*)s)[1] ) ? 2 : 0 ) \
6c4f0678 270 : ( ( ( 0xE2 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( ( ((U8*)s)[2] & 0xFE ) == 0xA8 ) ) ? 3 : 0 )\
e64b1bd1
YO
271 : ( 0x85 == ((U8*)s)[0] ) ) \
272: ((e)-(s) > 1) ? \
273 ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) ? 1 \
274 : ( is_utf8 ) ? \
275 ( ( ( 0xC2 == ((U8*)s)[0] ) && ( 0x85 == ((U8*)s)[1] ) ) ? 2 : 0 ) \
276 : ( 0x85 == ((U8*)s)[0] ) ) \
277: ((e)-(s) > 0) ? \
278 ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) ? 1 \
279 : ( !( is_utf8 ) ) ? \
280 ( 0x85 == ((U8*)s)[0] ) \
281 : 0 ) \
282: 0 )
e1d1eefb 283
12b72891
RGS
284/*** GENERATED CODE ***/
285#define is_VERTWS_utf8(s) \
e64b1bd1
YO
286( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) ? 1 \
287: ( 0xC2 == ((U8*)s)[0] ) ? \
288 ( ( 0x85 == ((U8*)s)[1] ) ? 2 : 0 ) \
6c4f0678 289: ( ( ( 0xE2 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( ( ((U8*)s)[2] & 0xFE ) == 0xA8 ) ) ? 3 : 0 )
e1d1eefb 290
12b72891
RGS
291/*** GENERATED CODE ***/
292#define is_VERTWS_utf8_safe(s,e) \
e64b1bd1
YO
293( ((e)-(s) > 2) ? \
294 ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) ? 1 \
295 : ( 0xC2 == ((U8*)s)[0] ) ? \
296 ( ( 0x85 == ((U8*)s)[1] ) ? 2 : 0 ) \
6c4f0678 297 : ( ( ( 0xE2 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( ( ((U8*)s)[2] & 0xFE ) == 0xA8 ) ) ? 3 : 0 )\
e64b1bd1
YO
298: ((e)-(s) > 1) ? \
299 ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) ? 1 \
6c4f0678 300 : ( ( 0xC2 == ((U8*)s)[0] ) && ( 0x85 == ((U8*)s)[1] ) ) ? 2 : 0 ) \
e64b1bd1
YO
301: ((e)-(s) > 0) ? \
302 ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) \
303: 0 )
e1d1eefb 304
12b72891 305/*** GENERATED CODE ***/
840f8e92
KW
306#define is_VERTWS_high(s) \
307( ( ( ( 0xE2 == ((U8*)s)[0] ) && ( 0x80 == ((U8*)s)[1] ) ) && ( ( ((U8*)s)[2] & 0xFE ) == 0xA8 ) ) ? 3 : 0 )
308
309/*** GENERATED CODE ***/
310#define is_VERTWS_high_safe(s,e) \
311( ( ( ( ((e)-(s) > 2) && ( 0xE2 == ((U8*)s)[0] ) ) && ( 0x80 == ((U8*)s)[1] ) ) && ( ( ((U8*)s)[2] & 0xFE ) == 0xA8 ) ) ? 3 : 0 )
312
313/*** GENERATED CODE ***/
12b72891 314#define is_VERTWS_latin1(s) \
e64b1bd1 315( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) || 0x85 == ((U8*)s)[0] )
e1d1eefb 316
12b72891
RGS
317/*** GENERATED CODE ***/
318#define is_VERTWS_latin1_safe(s,e) \
e64b1bd1
YO
319( ((e)-(s) > 0) ? \
320 ( ( 0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D ) || 0x85 == ((U8*)s)[0] )\
321: 0 )
e1d1eefb 322
12b72891
RGS
323/*** GENERATED CODE ***/
324#define is_VERTWS_cp(cp) \
e64b1bd1
YO
325( ( 0x0A <= cp && cp <= 0x0D ) || ( 0x0D < cp && \
326( 0x85 == cp || ( 0x85 < cp && \
ee98d22d 327( 0x2028 == cp || 0x2029 == cp ) ) ) ) )
e1d1eefb 328
840f8e92
KW
329/*** GENERATED CODE ***/
330#define is_VERTWS_cp_high(cp) \
331( 0x2028 == cp || 0x2029 == cp )
332
612ead59 333/*
4ac6419d
KW
334 XDIGIT: Hexadecimal digits
335
336 \p{XDigit}
337*/
338/*** GENERATED CODE ***/
339#define is_XDIGIT_utf8(s) \
340( ( ( 0x30 <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x39 ) || ( 0x41 <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x46 ) || ( 0x61 <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x66 ) ) ? 1\
341: ( 0xEF == ((U8*)s)[0] ) ? \
342 ( ( 0xBC == ((U8*)s)[1] ) ? \
343 ( ( ( 0x90 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x99 ) || ( 0xA1 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0xA6 ) ) ? 3 : 0 )\
344 : ( ( 0xBD == ((U8*)s)[1] ) && ( 0x81 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x86 ) ) ? 3 : 0 )\
345: 0 )
346
347/*** GENERATED CODE ***/
348#define is_XDIGIT_high(s) \
349( ( 0xEF == ((U8*)s)[0] ) ? \
350 ( ( 0xBC == ((U8*)s)[1] ) ? \
351 ( ( ( 0x90 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x99 ) || ( 0xA1 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0xA6 ) ) ? 3 : 0 )\
352 : ( ( 0xBD == ((U8*)s)[1] ) && ( 0x81 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x86 ) ) ? 3 : 0 )\
353: 0 )
354
355/*** GENERATED CODE ***/
356#define is_XDIGIT_cp_high(cp) \
357( ( 0xFF10 <= cp && cp <= 0xFF19 ) || ( 0xFF19 < cp && \
358( ( 0xFF21 <= cp && cp <= 0xFF26 ) || ( 0xFF41 <= cp && cp <= 0xFF46 ) ) ) )
359
360/*
b96a92fb
KW
361 REPLACEMENT: Unicode REPLACEMENT CHARACTER
362
363 0xFFFD
364*/
365/*** GENERATED CODE ***/
366#define is_REPLACEMENT_utf8_safe(s,e) \
367( ( ( ( ((e)-(s) > 2) && ( 0xEF == ((U8*)s)[0] ) ) && ( 0xBF == ((U8*)s)[1] ) ) && ( 0xBD == ((U8*)s)[2] ) ) ? 3 : 0 )
368
369/*
370 NONCHAR: Non character code points
371
372 \p{Nchar}
373*/
374/*** GENERATED CODE ***/
375#define is_NONCHAR_utf8(s) \
376( ( 0xEF == ((U8*)s)[0] ) ? \
377 ( ( 0xB7 == ((U8*)s)[1] ) ? \
378 ( ( 0x90 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0xAF ) ? 3 : 0 ) \
6c4f0678 379 : ( ( 0xBF == ((U8*)s)[1] ) && ( ((U8*)s)[2] >= 0xBE ) ) ? 3 : 0 ) \
b96a92fb 380: ( 0xF0 == ((U8*)s)[0] ) ? \
75929b4b 381 ( ( ( ( ((U8*)s)[1] == 0x9F || ( ( ((U8*)s)[1] & 0xEF ) == 0xAF ) ) && ( 0xBF == ((U8*)s)[2] ) ) && ( ((U8*)s)[3] >= 0xBE ) ) ? 4 : 0 )\
b96a92fb
KW
382: ( 0xF1 <= ((U8*)s)[0] && ((U8*)s)[0] <= 0xF3 ) ? \
383 ( ( ( ( ( ((U8*)s)[1] & 0xCF ) == 0x8F ) && ( 0xBF == ((U8*)s)[2] ) ) && ( ((U8*)s)[3] >= 0xBE ) ) ? 4 : 0 )\
6c4f0678 384: ( ( ( ( 0xF4 == ((U8*)s)[0] ) && ( 0x8F == ((U8*)s)[1] ) ) && ( 0xBF == ((U8*)s)[2] ) ) && ( ((U8*)s)[3] >= 0xBE ) ) ? 4 : 0 )
b96a92fb
KW
385
386/*
387 SURROGATE: Surrogate characters
388
389 \p{Gc=Cs}
390*/
391/*** GENERATED CODE ***/
392#define is_SURROGATE_utf8(s) \
393( ( ( 0xED == ((U8*)s)[0] ) && ( ((U8*)s)[1] >= 0xA0 ) ) ? 3 : 0 )
394
395/*
612ead59
KW
396 GCB_L: Grapheme_Cluster_Break=L
397
398 \p{_X_GCB_L}
399*/
400/*** GENERATED CODE ***/
401#define is_GCB_L_utf8(s) \
402( ( 0xE1 == ((U8*)s)[0] ) ? \
403 ( ( 0x84 == ((U8*)s)[1] ) ? \
6e130234 404 3 \
6c4f0678
YO
405 : ( ( 0x85 == ((U8*)s)[1] ) && ( ((U8*)s)[2] <= 0x9F ) ) ? 3 : 0 ) \
406: ( ( ( 0xEA == ((U8*)s)[0] ) && ( 0xA5 == ((U8*)s)[1] ) ) && ( 0xA0 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0xBC ) ) ? 3 : 0 )
612ead59
KW
407
408/*
409 GCB_LV_LVT_V: Grapheme_Cluster_Break=(LV or LVT or V)
410
411 \p{_X_LV_LVT_V}
412*/
413/*** GENERATED CODE ***/
414#define is_GCB_LV_LVT_V_utf8(s) \
415( ( 0xE1 == ((U8*)s)[0] ) ? \
416 ( ( 0x85 == ((U8*)s)[1] ) ? \
6e130234 417 ( ( ((U8*)s)[2] >= 0xA0 ) ? 3 : 0 ) \
6c4f0678 418 : ( ( 0x86 == ((U8*)s)[1] ) && ( ((U8*)s)[2] <= 0xA7 ) ) ? 3 : 0 ) \
612ead59 419: ( 0xEA == ((U8*)s)[0] ) ? \
6e130234
KW
420 ( ( ((U8*)s)[1] >= 0xB0 ) ? \
421 3 \
422 : 0 ) \
612ead59 423: ( 0xEB == ((U8*)s)[0] || 0xEC == ((U8*)s)[0] ) ? \
6e130234 424 3 \
612ead59 425: ( 0xED == ((U8*)s)[0] ) ? \
6e130234
KW
426 ( ( ((U8*)s)[1] <= 0x9D ) ? \
427 3 \
612ead59 428 : ( 0x9E == ((U8*)s)[1] ) ? \
6e130234 429 ( ( ( ((U8*)s)[2] <= 0xA3 ) || ( ((U8*)s)[2] >= 0xB0 ) ) ? 3 : 0 ) \
6c4f0678 430 : ( ( 0x9F == ((U8*)s)[1] ) && ( ((U8*)s)[2] <= 0x86 ) ) ? 3 : 0 ) \
612ead59
KW
431: 0 )
432
433/*
434 GCB_Prepend: Grapheme_Cluster_Break=Prepend
435
436 \p{_X_GCB_Prepend}
437*/
438/*** GENERATED CODE ***/
439#define is_GCB_Prepend_utf8(s) \
440( 0 )
441
442/*
443 GCB_RI: Grapheme_Cluster_Break=RI
444
445 \p{_X_RI}
446*/
447/*** GENERATED CODE ***/
448#define is_GCB_RI_utf8(s) \
6e130234 449( ( ( ( ( 0xF0 == ((U8*)s)[0] ) && ( 0x9F == ((U8*)s)[1] ) ) && ( 0x87 == ((U8*)s)[2] ) ) && ( ((U8*)s)[3] >= 0xA6 ) ) ? 4 : 0 )
612ead59
KW
450
451/*
452 GCB_SPECIAL_BEGIN: Grapheme_Cluster_Break=special_begins
453
454 \p{_X_Special_Begin}
455*/
456/*** GENERATED CODE ***/
457#define is_GCB_SPECIAL_BEGIN_utf8(s) \
6e130234
KW
458( ( 0xE1 == ((U8*)s)[0] ) ? \
459 ( ( ( ((U8*)s)[1] & 0xFC ) == 0x84 ) ? \
460 3 \
461 : 0 ) \
612ead59
KW
462: ( 0xEA == ((U8*)s)[0] ) ? \
463 ( ( 0xA5 == ((U8*)s)[1] ) ? \
464 ( ( 0xA0 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0xBC ) ? 3 : 0 ) \
6e130234
KW
465 : ( ((U8*)s)[1] >= 0xB0 ) ? \
466 3 \
612ead59
KW
467 : 0 ) \
468: ( 0xEB == ((U8*)s)[0] || 0xEC == ((U8*)s)[0] ) ? \
6e130234 469 3 \
612ead59 470: ( 0xED == ((U8*)s)[0] ) ? \
6e130234
KW
471 ( ( ((U8*)s)[1] <= 0x9D ) ? \
472 3 \
612ead59 473 : ( 0x9E == ((U8*)s)[1] ) ? \
6e130234 474 ( ( ( ((U8*)s)[2] <= 0xA3 ) || ( ((U8*)s)[2] >= 0xB0 ) ) ? 3 : 0 ) \
6c4f0678
YO
475 : ( ( 0x9F == ((U8*)s)[1] ) && ( ( ((U8*)s)[2] <= 0x86 ) || ( 0x8B <= ((U8*)s)[2] && ((U8*)s)[2] <= 0xBB ) ) ) ? 3 : 0 )\
476: ( ( ( ( 0xF0 == ((U8*)s)[0] ) && ( 0x9F == ((U8*)s)[1] ) ) && ( 0x87 == ((U8*)s)[2] ) ) && ( ((U8*)s)[3] >= 0xA6 ) ) ? 4 : 0 )
612ead59
KW
477
478/*
479 GCB_T: Grapheme_Cluster_Break=T
480
481 \p{_X_GCB_T}
482*/
483/*** GENERATED CODE ***/
484#define is_GCB_T_utf8(s) \
485( ( 0xE1 == ((U8*)s)[0] ) ? \
486 ( ( 0x86 == ((U8*)s)[1] ) ? \
6e130234 487 ( ( ((U8*)s)[2] >= 0xA8 ) ? 3 : 0 ) \
612ead59 488 : ( 0x87 == ((U8*)s)[1] ) ? \
6e130234 489 3 \
612ead59 490 : 0 ) \
6c4f0678 491: ( ( ( 0xED == ((U8*)s)[0] ) && ( 0x9F == ((U8*)s)[1] ) ) && ( 0x8B <= ((U8*)s)[2] && ((U8*)s)[2] <= 0xBB ) ) ? 3 : 0 )
612ead59
KW
492
493/*
494 GCB_V: Grapheme_Cluster_Break=V
495
496 \p{_X_GCB_V}
497*/
498/*** GENERATED CODE ***/
499#define is_GCB_V_utf8(s) \
500( ( 0xE1 == ((U8*)s)[0] ) ? \
501 ( ( 0x85 == ((U8*)s)[1] ) ? \
6e130234 502 ( ( ((U8*)s)[2] >= 0xA0 ) ? 3 : 0 ) \
6c4f0678 503 : ( ( 0x86 == ((U8*)s)[1] ) && ( ((U8*)s)[2] <= 0xA7 ) ) ? 3 : 0 ) \
612ead59
KW
504: ( 0xED == ((U8*)s)[0] ) ? \
505 ( ( 0x9E == ((U8*)s)[1] ) ? \
6e130234 506 ( ( ((U8*)s)[2] >= 0xB0 ) ? 3 : 0 ) \
6c4f0678 507 : ( ( 0x9F == ((U8*)s)[1] ) && ( ((U8*)s)[2] <= 0x86 ) ) ? 3 : 0 ) \
612ead59
KW
508: 0 )
509
685289b5
KW
510/*
511 QUOTEMETA: Meta-characters that \Q should quote
512
513 \p{_Perl_Quotemeta}
514*/
515/*** GENERATED CODE ***/
516#define is_QUOTEMETA_high(s) \
517( ( 0xCD == ((U8*)s)[0] ) ? \
518 ( ( 0x8F == ((U8*)s)[1] ) ? 2 : 0 ) \
519: ( 0xE1 == ((U8*)s)[0] ) ? \
520 ( ( 0x85 == ((U8*)s)[1] ) ? \
521 ( ( 0x9F == ((U8*)s)[2] || 0xA0 == ((U8*)s)[2] ) ? 3 : 0 ) \
522 : ( 0x9A == ((U8*)s)[1] ) ? \
523 ( ( 0x80 == ((U8*)s)[2] ) ? 3 : 0 ) \
524 : ( 0x9E == ((U8*)s)[1] ) ? \
2efb8143 525 ( ( ( ((U8*)s)[2] & 0xFE ) == 0xB4 ) ? 3 : 0 ) \
6c4f0678 526 : ( ( 0xA0 == ((U8*)s)[1] ) && ( 0x8B <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x8E ) ) ? 3 : 0 )\
685289b5
KW
527: ( 0xE2 == ((U8*)s)[0] ) ? \
528 ( ( 0x80 == ((U8*)s)[1] ) ? \
6e130234 529 ( ( ((U8*)s)[2] <= 0xBE ) ? 3 : 0 ) \
685289b5
KW
530 : ( 0x81 == ((U8*)s)[1] ) ? \
531 ( ( ( 0x81 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x93 ) || ( 0x95 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0xAF ) ) ? 3 : 0 )\
532 : ( 0x86 == ((U8*)s)[1] ) ? \
6e130234 533 ( ( ((U8*)s)[2] >= 0x90 ) ? 3 : 0 ) \
9a3182e9 534 : ( ( 0x87 <= ((U8*)s)[1] && ((U8*)s)[1] <= 0x90 ) || ( 0x94 <= ((U8*)s)[1] && ((U8*)s)[1] <= 0x9C ) || ( 0x9F <= ((U8*)s)[1] && ((U8*)s)[1] <= 0xAF ) || ( ((U8*)s)[1] & 0xFE ) == 0xB8 ) ?\
6e130234 535 3 \
685289b5 536 : ( 0x91 == ((U8*)s)[1] ) ? \
6e130234 537 ( ( ((U8*)s)[2] <= 0x9F ) ? 3 : 0 ) \
685289b5 538 : ( 0x9D == ((U8*)s)[1] ) ? \
6e130234 539 ( ( ((U8*)s)[2] <= 0xB5 ) ? 3 : 0 ) \
9a3182e9 540 : ( ( 0x9E == ((U8*)s)[1] ) && ( ((U8*)s)[2] >= 0x94 ) ) ? 3 : 0 ) \
685289b5
KW
541: ( 0xE3 == ((U8*)s)[0] ) ? \
542 ( ( 0x80 == ((U8*)s)[1] ) ? \
6e130234 543 ( ( ( ((U8*)s)[2] <= 0x83 ) || ( 0x88 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0xA0 ) || 0xB0 == ((U8*)s)[2] ) ? 3 : 0 )\
6c4f0678 544 : ( ( 0x85 == ((U8*)s)[1] ) && ( 0xA4 == ((U8*)s)[2] ) ) ? 3 : 0 ) \
685289b5
KW
545: ( 0xEF == ((U8*)s)[0] ) ? \
546 ( ( 0xB4 == ((U8*)s)[1] ) ? \
6e130234 547 ( ( ((U8*)s)[2] >= 0xBE ) ? 3 : 0 ) \
685289b5 548 : ( 0xB8 == ((U8*)s)[1] ) ? \
6e130234 549 ( ( ((U8*)s)[2] <= 0x8F ) ? 3 : 0 ) \
685289b5
KW
550 : ( 0xB9 == ((U8*)s)[1] ) ? \
551 ( ( 0x85 == ((U8*)s)[2] || 0x86 == ((U8*)s)[2] ) ? 3 : 0 ) \
552 : ( 0xBB == ((U8*)s)[1] ) ? \
553 ( ( 0xBF == ((U8*)s)[2] ) ? 3 : 0 ) \
554 : ( 0xBE == ((U8*)s)[1] ) ? \
555 ( ( 0xA0 == ((U8*)s)[2] ) ? 3 : 0 ) \
6c4f0678 556 : ( ( 0xBF == ((U8*)s)[1] ) && ( 0xB0 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0xB8 ) ) ? 3 : 0 )\
685289b5
KW
557: ( 0xF0 == ((U8*)s)[0] ) ? \
558 ( ( ( ( 0x9D == ((U8*)s)[1] ) && ( 0x85 == ((U8*)s)[2] ) ) && ( 0xB3 <= ((U8*)s)[3] && ((U8*)s)[3] <= 0xBA ) ) ? 4 : 0 )\
6c4f0678 559: ( ( 0xF3 == ((U8*)s)[0] ) && ( 0xA0 == ((U8*)s)[1] ) ) ? 4 : 0 )
685289b5 560
8769f413
KW
561/*
562 MULTI_CHAR_FOLD: multi-char strings that are folded to by a single character
563
564 do regen/regcharclass_multi_char_folds.pl
565 &regcharclass_multi_char_folds::multi_char_folds(1)
566*/
567/*** GENERATED CODE ***/
568#define is_MULTI_CHAR_FOLD_utf8_safe(s,e) \
569( ((e)-(s) > 5) ? \
570 ( ( 0x61 == ((U8*)s)[0] ) ? \
571 ( ( ( 0xCA == ((U8*)s)[1] ) && ( 0xBE == ((U8*)s)[2] ) ) ? 3 : 0 ) \
572 : ( 0x66 == ((U8*)s)[0] ) ? \
573 ( ( 0x66 == ((U8*)s)[1] ) ? \
574 ( ( 0x69 == ((U8*)s)[2] || 0x6C == ((U8*)s)[2] ) ? 3 : 2 ) \
575 : ( 0x69 == ((U8*)s)[1] || 0x6C == ((U8*)s)[1] ) ? 2 : 0 ) \
576 : ( 0x68 == ((U8*)s)[0] ) ? \
577 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0xB1 == ((U8*)s)[2] ) ) ? 3 : 0 ) \
578 : ( 0x69 == ((U8*)s)[0] ) ? \
579 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x87 == ((U8*)s)[2] ) ) ? 3 : 0 ) \
580 : ( 0x6A == ((U8*)s)[0] ) ? \
581 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x8C == ((U8*)s)[2] ) ) ? 3 : 0 ) \
582 : ( 0x73 == ((U8*)s)[0] ) ? \
583 ( ( 0x73 == ((U8*)s)[1] || 0x74 == ((U8*)s)[1] ) ? 2 : 0 ) \
584 : ( 0x74 == ((U8*)s)[0] ) ? \
585 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x88 == ((U8*)s)[2] ) ) ? 3 : 0 ) \
586 : ( 0x77 == ((U8*)s)[0] || 0x79 == ((U8*)s)[0] ) ? \
587 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x8A == ((U8*)s)[2] ) ) ? 3 : 0 ) \
588 : ( 0xCA == ((U8*)s)[0] ) ? \
589 ( ( ( 0xBC == ((U8*)s)[1] ) && ( 0x6E == ((U8*)s)[2] ) ) ? 3 : 0 ) \
590 : ( 0xCE == ((U8*)s)[0] ) ? \
591 ( ( ( ((U8*)s)[1] & 0xFD ) == 0xAC ) ? \
592 ( ( ( 0xCE == ((U8*)s)[2] ) && ( 0xB9 == ((U8*)s)[3] ) ) ? 4 : 0 )\
593 : ( 0xB1 == ((U8*)s)[1] || 0xB7 == ((U8*)s)[1] ) ? \
594 ( ( 0xCD == ((U8*)s)[2] ) ? \
595 ( ( 0x82 == ((U8*)s)[3] ) ? \
596 ( ( ( 0xCE == ((U8*)s)[4] ) && ( 0xB9 == ((U8*)s)[5] ) ) ? 6 : 4 )\
597 : 0 ) \
598 : ( ( 0xCE == ((U8*)s)[2] ) && ( 0xB9 == ((U8*)s)[3] ) ) ? 4 : 0 )\
599 : ( 0xB9 == ((U8*)s)[1] ) ? \
600 ( ( 0xCC == ((U8*)s)[2] ) ? \
601 ( ( 0x88 == ((U8*)s)[3] ) ? \
602 ( ( 0xCC == ((U8*)s)[4] ) ? \
603 ( ( ( ((U8*)s)[5] & 0xFE ) == 0x80 ) ? 6 : 0 ) \
604 : ( ( 0xCD == ((U8*)s)[4] ) && ( 0x82 == ((U8*)s)[5] ) ) ? 6 : 0 )\
605 : 0 ) \
606 : ( ( 0xCD == ((U8*)s)[2] ) && ( 0x82 == ((U8*)s)[3] ) ) ? 4 : 0 )\
607 : 0 ) \
608 : ( 0xCF == ((U8*)s)[0] ) ? \
609 ( ( 0x81 == ((U8*)s)[1] ) ? \
610 ( ( ( 0xCC == ((U8*)s)[2] ) && ( 0x93 == ((U8*)s)[3] ) ) ? 4 : 0 )\
611 : ( 0x85 == ((U8*)s)[1] ) ? \
612 ( ( 0xCC == ((U8*)s)[2] ) ? \
613 ( ( 0x88 == ((U8*)s)[3] ) ? \
614 ( ( 0xCC == ((U8*)s)[4] ) ? \
615 ( ( ( ((U8*)s)[5] & 0xFE ) == 0x80 ) ? 6 : 0 ) \
616 : ( ( 0xCD == ((U8*)s)[4] ) && ( 0x82 == ((U8*)s)[5] ) ) ? 6 : 0 )\
617 : ( 0x93 == ((U8*)s)[3] ) ? \
618 ( ( 0xCC == ((U8*)s)[4] ) ? \
619 ( ( ( ((U8*)s)[5] & 0xFE ) == 0x80 ) ? 6 : 4 ) \
620 : ( ( 0xCD == ((U8*)s)[4] ) && ( 0x82 == ((U8*)s)[5] ) ) ? 6 : 4 )\
621 : 0 ) \
622 : ( ( 0xCD == ((U8*)s)[2] ) && ( 0x82 == ((U8*)s)[3] ) ) ? 4 : 0 )\
623 : ( 0x89 == ((U8*)s)[1] ) ? \
624 ( ( 0xCD == ((U8*)s)[2] ) ? \
625 ( ( 0x82 == ((U8*)s)[3] ) ? \
626 ( ( ( 0xCE == ((U8*)s)[4] ) && ( 0xB9 == ((U8*)s)[5] ) ) ? 6 : 4 )\
627 : 0 ) \
628 : ( ( 0xCE == ((U8*)s)[2] ) && ( 0xB9 == ((U8*)s)[3] ) ) ? 4 : 0 )\
629 : ( ( ( 0x8E == ((U8*)s)[1] ) && ( 0xCE == ((U8*)s)[2] ) ) && ( 0xB9 == ((U8*)s)[3] ) ) ? 4 : 0 )\
630 : ( 0xD5 == ((U8*)s)[0] ) ? \
631 ( ( 0xA5 == ((U8*)s)[1] ) ? \
632 ( ( ( 0xD6 == ((U8*)s)[2] ) && ( 0x82 == ((U8*)s)[3] ) ) ? 4 : 0 )\
633 : ( 0xB4 == ((U8*)s)[1] ) ? \
75929b4b 634 ( ( ( 0xD5 == ((U8*)s)[2] ) && ( ( ( ((U8*)s)[3] & 0xF7 ) == 0xA5 ) || ((U8*)s)[3] == 0xAB || ((U8*)s)[3] == 0xB6 ) ) ? 4 : 0 )\
8769f413
KW
635 : ( ( ( 0xBE == ((U8*)s)[1] ) && ( 0xD5 == ((U8*)s)[2] ) ) && ( 0xB6 == ((U8*)s)[3] ) ) ? 4 : 0 )\
636 : ( 0xE1 == ((U8*)s)[0] ) ? \
637 ( ( 0xBC == ((U8*)s)[1] ) ? \
638 ( ( ( ( ( ((U8*)s)[2] & 0xD8 ) == 0x80 ) && ( 0xCE == ((U8*)s)[3] ) ) && ( 0xB9 == ((U8*)s)[4] ) ) ? 5 : 0 )\
122a2d8f 639 : ( ( ( ( 0xBD == ((U8*)s)[1] ) && ( ( ( ((U8*)s)[2] & 0xF8 ) == 0xA0 ) || ( ( ((U8*)s)[2] & 0xFB ) == 0xB0 ) || ((U8*)s)[2] == 0xBC ) ) && ( 0xCE == ((U8*)s)[3] ) ) && ( 0xB9 == ((U8*)s)[4] ) ) ? 5 : 0 )\
8769f413
KW
640 : 0 ) \
641: ((e)-(s) > 4) ? \
642 ( ( 0x61 == ((U8*)s)[0] ) ? \
643 ( ( ( 0xCA == ((U8*)s)[1] ) && ( 0xBE == ((U8*)s)[2] ) ) ? 3 : 0 ) \
644 : ( 0x66 == ((U8*)s)[0] ) ? \
645 ( ( 0x66 == ((U8*)s)[1] ) ? \
646 ( ( 0x69 == ((U8*)s)[2] || 0x6C == ((U8*)s)[2] ) ? 3 : 2 ) \
647 : ( 0x69 == ((U8*)s)[1] || 0x6C == ((U8*)s)[1] ) ? 2 : 0 ) \
648 : ( 0x68 == ((U8*)s)[0] ) ? \
649 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0xB1 == ((U8*)s)[2] ) ) ? 3 : 0 ) \
650 : ( 0x69 == ((U8*)s)[0] ) ? \
651 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x87 == ((U8*)s)[2] ) ) ? 3 : 0 ) \
652 : ( 0x6A == ((U8*)s)[0] ) ? \
653 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x8C == ((U8*)s)[2] ) ) ? 3 : 0 ) \
654 : ( 0x73 == ((U8*)s)[0] ) ? \
655 ( ( 0x73 == ((U8*)s)[1] || 0x74 == ((U8*)s)[1] ) ? 2 : 0 ) \
656 : ( 0x74 == ((U8*)s)[0] ) ? \
657 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x88 == ((U8*)s)[2] ) ) ? 3 : 0 ) \
658 : ( 0x77 == ((U8*)s)[0] || 0x79 == ((U8*)s)[0] ) ? \
659 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x8A == ((U8*)s)[2] ) ) ? 3 : 0 ) \
660 : ( 0xCA == ((U8*)s)[0] ) ? \
661 ( ( ( 0xBC == ((U8*)s)[1] ) && ( 0x6E == ((U8*)s)[2] ) ) ? 3 : 0 ) \
662 : ( 0xCE == ((U8*)s)[0] ) ? \
663 ( ( ( ((U8*)s)[1] & 0xFD ) == 0xAC ) ? \
664 ( ( ( 0xCE == ((U8*)s)[2] ) && ( 0xB9 == ((U8*)s)[3] ) ) ? 4 : 0 )\
665 : ( 0xB1 == ((U8*)s)[1] || 0xB7 == ((U8*)s)[1] ) ? \
666 ( ( 0xCD == ((U8*)s)[2] ) ? \
667 ( ( 0x82 == ((U8*)s)[3] ) ? 4 : 0 ) \
668 : ( ( 0xCE == ((U8*)s)[2] ) && ( 0xB9 == ((U8*)s)[3] ) ) ? 4 : 0 )\
669 : ( ( ( 0xB9 == ((U8*)s)[1] ) && ( 0xCD == ((U8*)s)[2] ) ) && ( 0x82 == ((U8*)s)[3] ) ) ? 4 : 0 )\
670 : ( 0xCF == ((U8*)s)[0] ) ? \
671 ( ( 0x81 == ((U8*)s)[1] ) ? \
672 ( ( ( 0xCC == ((U8*)s)[2] ) && ( 0x93 == ((U8*)s)[3] ) ) ? 4 : 0 )\
673 : ( 0x85 == ((U8*)s)[1] ) ? \
674 ( ( 0xCC == ((U8*)s)[2] ) ? \
675 ( ( 0x93 == ((U8*)s)[3] ) ? 4 : 0 ) \
676 : ( ( 0xCD == ((U8*)s)[2] ) && ( 0x82 == ((U8*)s)[3] ) ) ? 4 : 0 )\
677 : ( 0x89 == ((U8*)s)[1] ) ? \
678 ( ( 0xCD == ((U8*)s)[2] ) ? \
679 ( ( 0x82 == ((U8*)s)[3] ) ? 4 : 0 ) \
680 : ( ( 0xCE == ((U8*)s)[2] ) && ( 0xB9 == ((U8*)s)[3] ) ) ? 4 : 0 )\
681 : ( ( ( 0x8E == ((U8*)s)[1] ) && ( 0xCE == ((U8*)s)[2] ) ) && ( 0xB9 == ((U8*)s)[3] ) ) ? 4 : 0 )\
682 : ( 0xD5 == ((U8*)s)[0] ) ? \
683 ( ( 0xA5 == ((U8*)s)[1] ) ? \
684 ( ( ( 0xD6 == ((U8*)s)[2] ) && ( 0x82 == ((U8*)s)[3] ) ) ? 4 : 0 )\
685 : ( 0xB4 == ((U8*)s)[1] ) ? \
75929b4b 686 ( ( ( 0xD5 == ((U8*)s)[2] ) && ( ( ( ((U8*)s)[3] & 0xF7 ) == 0xA5 ) || ((U8*)s)[3] == 0xAB || ((U8*)s)[3] == 0xB6 ) ) ? 4 : 0 )\
8769f413
KW
687 : ( ( ( 0xBE == ((U8*)s)[1] ) && ( 0xD5 == ((U8*)s)[2] ) ) && ( 0xB6 == ((U8*)s)[3] ) ) ? 4 : 0 )\
688 : ( 0xE1 == ((U8*)s)[0] ) ? \
689 ( ( 0xBC == ((U8*)s)[1] ) ? \
690 ( ( ( ( ( ((U8*)s)[2] & 0xD8 ) == 0x80 ) && ( 0xCE == ((U8*)s)[3] ) ) && ( 0xB9 == ((U8*)s)[4] ) ) ? 5 : 0 )\
122a2d8f 691 : ( ( ( ( 0xBD == ((U8*)s)[1] ) && ( ( ( ((U8*)s)[2] & 0xF8 ) == 0xA0 ) || ( ( ((U8*)s)[2] & 0xFB ) == 0xB0 ) || ((U8*)s)[2] == 0xBC ) ) && ( 0xCE == ((U8*)s)[3] ) ) && ( 0xB9 == ((U8*)s)[4] ) ) ? 5 : 0 )\
8769f413
KW
692 : 0 ) \
693: ((e)-(s) > 3) ? \
694 ( ( 0x61 == ((U8*)s)[0] ) ? \
695 ( ( ( 0xCA == ((U8*)s)[1] ) && ( 0xBE == ((U8*)s)[2] ) ) ? 3 : 0 ) \
696 : ( 0x66 == ((U8*)s)[0] ) ? \
697 ( ( 0x66 == ((U8*)s)[1] ) ? \
698 ( ( 0x69 == ((U8*)s)[2] || 0x6C == ((U8*)s)[2] ) ? 3 : 2 ) \
699 : ( 0x69 == ((U8*)s)[1] || 0x6C == ((U8*)s)[1] ) ? 2 : 0 ) \
700 : ( 0x68 == ((U8*)s)[0] ) ? \
701 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0xB1 == ((U8*)s)[2] ) ) ? 3 : 0 ) \
702 : ( 0x69 == ((U8*)s)[0] ) ? \
703 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x87 == ((U8*)s)[2] ) ) ? 3 : 0 ) \
704 : ( 0x6A == ((U8*)s)[0] ) ? \
705 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x8C == ((U8*)s)[2] ) ) ? 3 : 0 ) \
706 : ( 0x73 == ((U8*)s)[0] ) ? \
707 ( ( 0x73 == ((U8*)s)[1] || 0x74 == ((U8*)s)[1] ) ? 2 : 0 ) \
708 : ( 0x74 == ((U8*)s)[0] ) ? \
709 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x88 == ((U8*)s)[2] ) ) ? 3 : 0 ) \
710 : ( 0x77 == ((U8*)s)[0] || 0x79 == ((U8*)s)[0] ) ? \
711 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x8A == ((U8*)s)[2] ) ) ? 3 : 0 ) \
712 : ( 0xCA == ((U8*)s)[0] ) ? \
713 ( ( ( 0xBC == ((U8*)s)[1] ) && ( 0x6E == ((U8*)s)[2] ) ) ? 3 : 0 ) \
714 : ( 0xCE == ((U8*)s)[0] ) ? \
715 ( ( ( ((U8*)s)[1] & 0xFD ) == 0xAC ) ? \
716 ( ( ( 0xCE == ((U8*)s)[2] ) && ( 0xB9 == ((U8*)s)[3] ) ) ? 4 : 0 )\
717 : ( 0xB1 == ((U8*)s)[1] || 0xB7 == ((U8*)s)[1] ) ? \
718 ( ( 0xCD == ((U8*)s)[2] ) ? \
719 ( ( 0x82 == ((U8*)s)[3] ) ? 4 : 0 ) \
720 : ( ( 0xCE == ((U8*)s)[2] ) && ( 0xB9 == ((U8*)s)[3] ) ) ? 4 : 0 )\
721 : ( ( ( 0xB9 == ((U8*)s)[1] ) && ( 0xCD == ((U8*)s)[2] ) ) && ( 0x82 == ((U8*)s)[3] ) ) ? 4 : 0 )\
722 : ( 0xCF == ((U8*)s)[0] ) ? \
723 ( ( 0x81 == ((U8*)s)[1] ) ? \
724 ( ( ( 0xCC == ((U8*)s)[2] ) && ( 0x93 == ((U8*)s)[3] ) ) ? 4 : 0 )\
725 : ( 0x85 == ((U8*)s)[1] ) ? \
726 ( ( 0xCC == ((U8*)s)[2] ) ? \
727 ( ( 0x93 == ((U8*)s)[3] ) ? 4 : 0 ) \
728 : ( ( 0xCD == ((U8*)s)[2] ) && ( 0x82 == ((U8*)s)[3] ) ) ? 4 : 0 )\
729 : ( 0x89 == ((U8*)s)[1] ) ? \
730 ( ( 0xCD == ((U8*)s)[2] ) ? \
731 ( ( 0x82 == ((U8*)s)[3] ) ? 4 : 0 ) \
732 : ( ( 0xCE == ((U8*)s)[2] ) && ( 0xB9 == ((U8*)s)[3] ) ) ? 4 : 0 )\
733 : ( ( ( 0x8E == ((U8*)s)[1] ) && ( 0xCE == ((U8*)s)[2] ) ) && ( 0xB9 == ((U8*)s)[3] ) ) ? 4 : 0 )\
734 : ( 0xD5 == ((U8*)s)[0] ) ? \
735 ( ( 0xA5 == ((U8*)s)[1] ) ? \
736 ( ( ( 0xD6 == ((U8*)s)[2] ) && ( 0x82 == ((U8*)s)[3] ) ) ? 4 : 0 )\
737 : ( 0xB4 == ((U8*)s)[1] ) ? \
75929b4b 738 ( ( ( 0xD5 == ((U8*)s)[2] ) && ( ( ( ((U8*)s)[3] & 0xF7 ) == 0xA5 ) || ((U8*)s)[3] == 0xAB || ((U8*)s)[3] == 0xB6 ) ) ? 4 : 0 )\
8769f413
KW
739 : ( ( ( 0xBE == ((U8*)s)[1] ) && ( 0xD5 == ((U8*)s)[2] ) ) && ( 0xB6 == ((U8*)s)[3] ) ) ? 4 : 0 )\
740 : 0 ) \
741: ((e)-(s) > 2) ? \
742 ( ( 0x61 == ((U8*)s)[0] ) ? \
743 ( ( ( 0xCA == ((U8*)s)[1] ) && ( 0xBE == ((U8*)s)[2] ) ) ? 3 : 0 ) \
744 : ( 0x66 == ((U8*)s)[0] ) ? \
745 ( ( 0x66 == ((U8*)s)[1] ) ? \
746 ( ( 0x69 == ((U8*)s)[2] || 0x6C == ((U8*)s)[2] ) ? 3 : 2 ) \
747 : ( 0x69 == ((U8*)s)[1] || 0x6C == ((U8*)s)[1] ) ? 2 : 0 ) \
748 : ( 0x68 == ((U8*)s)[0] ) ? \
749 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0xB1 == ((U8*)s)[2] ) ) ? 3 : 0 ) \
750 : ( 0x69 == ((U8*)s)[0] ) ? \
751 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x87 == ((U8*)s)[2] ) ) ? 3 : 0 ) \
752 : ( 0x6A == ((U8*)s)[0] ) ? \
753 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x8C == ((U8*)s)[2] ) ) ? 3 : 0 ) \
754 : ( 0x73 == ((U8*)s)[0] ) ? \
755 ( ( 0x73 == ((U8*)s)[1] || 0x74 == ((U8*)s)[1] ) ? 2 : 0 ) \
756 : ( 0x74 == ((U8*)s)[0] ) ? \
757 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x88 == ((U8*)s)[2] ) ) ? 3 : 0 ) \
758 : ( 0x77 == ((U8*)s)[0] || 0x79 == ((U8*)s)[0] ) ? \
759 ( ( ( 0xCC == ((U8*)s)[1] ) && ( 0x8A == ((U8*)s)[2] ) ) ? 3 : 0 ) \
760 : ( ( ( 0xCA == ((U8*)s)[0] ) && ( 0xBC == ((U8*)s)[1] ) ) && ( 0x6E == ((U8*)s)[2] ) ) ? 3 : 0 )\
761: ((e)-(s) > 1) ? \
762 ( ( 0x66 == ((U8*)s)[0] ) ? \
763 ( ( 0x66 == ((U8*)s)[1] || 0x69 == ((U8*)s)[1] || 0x6C == ((U8*)s)[1] ) ? 2 : 0 )\
764 : ( ( 0x73 == ((U8*)s)[0] ) && ( 0x73 == ((U8*)s)[1] || 0x74 == ((U8*)s)[1] ) ) ? 2 : 0 )\
765: 0 )
766
767/*
40b1ba4f 768 MULTI_CHAR_FOLD: multi-char strings that are folded to by a single character
8769f413
KW
769
770 &regcharclass_multi_char_folds::multi_char_folds(0)
771*/
772/*** GENERATED CODE ***/
40b1ba4f 773#define is_MULTI_CHAR_FOLD_latin1_safe(s,e) \
8769f413
KW
774( ((e)-(s) > 2) ? \
775 ( ( ( ((U8*)s)[0] & 0xDF ) == 0x46 ) ? \
776 ( ( ( ((U8*)s)[1] & 0xDF ) == 0x46 ) ? \
75929b4b
KW
777 ( ( ( ( ((U8*)s)[2] & 0xDF ) == 0x49 ) || ( ( ((U8*)s)[2] & 0xDF ) == 0x4C ) ) ? 3 : 2 )\
778 : ( ( ( ((U8*)s)[1] & 0xDF ) == 0x49 ) || ( ( ((U8*)s)[1] & 0xDF ) == 0x4C ) ) ? 2 : 0 )\
779 : ( ( ( ((U8*)s)[0] & 0xDF ) == 0x53 ) && ( ( ( ((U8*)s)[1] & 0xDF ) == 0x53 ) || ( ( ((U8*)s)[1] & 0xDF ) == 0x54 ) ) ) ? 2 : 0 )\
8769f413
KW
780: ((e)-(s) > 1) ? \
781 ( ( ( ((U8*)s)[0] & 0xDF ) == 0x46 ) ? \
75929b4b
KW
782 ( ( ( ( ((U8*)s)[1] & 0xDF ) == 0x46 ) || ( ( ((U8*)s)[1] & 0xDF ) == 0x49 ) || ( ( ((U8*)s)[1] & 0xDF ) == 0x4C ) ) ? 2 : 0 )\
783 : ( ( ( ((U8*)s)[0] & 0xDF ) == 0x53 ) && ( ( ( ((U8*)s)[1] & 0xDF ) == 0x53 ) || ( ( ((U8*)s)[1] & 0xDF ) == 0x54 ) ) ) ? 2 : 0 )\
8769f413
KW
784: 0 )
785
8770da0e 786
d10c72f2
KW
787#endif /* H_REGCHARCLASS */
788
58fbde93 789/* ex: set ro: */