This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
msgrcv: properly downgrade the receive buffer
[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 12 * Any changes made here will be lost!
212b6c86
KW
13 * WARNING: These macros are for internal Perl core use only, and may be
14 * changed or removed without notice.
58fbde93 15 */
12b72891 16
d10c72f2 17
6a5bc5ac
KW
18#ifndef PERL_REGCHARCLASS_H_ /* Guard against nested #includes */
19#define PERL_REGCHARCLASS_H_
d10c72f2 20
a1b2a50f 21#if 'A' == 65 /* ASCII/Latin1 */
12b72891
RGS
22/*
23 LNBREAK: Line Break: \R
24
58fbde93 25 "\x0D\x0A" # CRLF - Network (Windows) line ending
05b688d9 26 \p{VertSpace}
12b72891
RGS
27*/
28/*** GENERATED CODE ***/
12b72891 29#define is_LNBREAK_safe(s,e,is_utf8) \
e64b1bd1 30( ((e)-(s) > 2) ? \
fdc26d94
KW
31 ( ( inRANGE(((const U8*)s)[0], '\n', '\f') ) ? 1 \
32 : ( '\r' == ((const U8*)s)[0] ) ? \
33 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
e64b1bd1 34 : ( is_utf8 ) ? \
29f3ce8f
KW
35 ( ( 0xC2 == ((const U8*)s)[0] ) ? \
36 ( ( 0x85 == ((const U8*)s)[1] ) ? 2 : 0 ) \
8c112bb9 37 : ( ( ( 0xE2 == ((const U8*)s)[0] ) && ( 0x80 == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0xA8, 0xA9) ) ) ? 3 : 0 )\
29f3ce8f 38 : ( 0x85 == ((const U8*)s)[0] ) ) \
e64b1bd1 39: ((e)-(s) > 1) ? \
fdc26d94
KW
40 ( ( inRANGE(((const U8*)s)[0], '\n', '\f') ) ? 1 \
41 : ( '\r' == ((const U8*)s)[0] ) ? \
42 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
e64b1bd1 43 : ( is_utf8 ) ? \
29f3ce8f
KW
44 ( ( ( 0xC2 == ((const U8*)s)[0] ) && ( 0x85 == ((const U8*)s)[1] ) ) ? 2 : 0 )\
45 : ( 0x85 == ((const U8*)s)[0] ) ) \
e64b1bd1 46: ((e)-(s) > 0) ? \
fdc26d94 47 ( ( inRANGE(((const U8*)s)[0], '\n', '\r') ) ? 1 \
e64b1bd1 48 : ( !( is_utf8 ) ) ? \
29f3ce8f 49 ( 0x85 == ((const U8*)s)[0] ) \
e64b1bd1
YO
50 : 0 ) \
51: 0 )
e1d1eefb 52
12b72891 53/*** GENERATED CODE ***/
12b72891 54#define is_LNBREAK_utf8_safe(s,e) \
e64b1bd1 55( ((e)-(s) > 2) ? \
fdc26d94
KW
56 ( ( inRANGE(((const U8*)s)[0], '\n', '\f') ) ? 1 \
57 : ( '\r' == ((const U8*)s)[0] ) ? \
58 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
29f3ce8f
KW
59 : ( 0xC2 == ((const U8*)s)[0] ) ? \
60 ( ( 0x85 == ((const U8*)s)[1] ) ? 2 : 0 ) \
8c112bb9 61 : ( ( ( 0xE2 == ((const U8*)s)[0] ) && ( 0x80 == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0xA8, 0xA9) ) ) ? 3 : 0 )\
e64b1bd1 62: ((e)-(s) > 1) ? \
fdc26d94
KW
63 ( ( inRANGE(((const U8*)s)[0], '\n', '\f') ) ? 1 \
64 : ( '\r' == ((const U8*)s)[0] ) ? \
65 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
29f3ce8f 66 : ( ( 0xC2 == ((const U8*)s)[0] ) && ( 0x85 == ((const U8*)s)[1] ) ) ? 2 : 0 )\
e64b1bd1 67: ((e)-(s) > 0) ? \
fdc26d94 68 ( inRANGE(((const U8*)s)[0], '\n', '\r') ) \
e64b1bd1 69: 0 )
e1d1eefb 70
12b72891 71/*** GENERATED CODE ***/
12b72891 72#define is_LNBREAK_latin1_safe(s,e) \
e64b1bd1 73( ((e)-(s) > 1) ? \
fdc26d94
KW
74 ( ( inRANGE(((const U8*)s)[0], '\n', '\f') || 0x85 == ((const U8*)s)[0] ) ? 1\
75 : ( '\r' == ((const U8*)s)[0] ) ? \
76 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
9a3182e9 77 : 0 ) \
e64b1bd1 78: ((e)-(s) > 0) ? \
fdc26d94 79 ( inRANGE(((const U8*)s)[0], '\n', '\r') || 0x85 == ((const U8*)s)[0] ) \
e64b1bd1 80: 0 )
12b72891
RGS
81
82/*
83 HORIZWS: Horizontal Whitespace: \h \H
84
05b688d9 85 \p{HorizSpace}
12b72891
RGS
86*/
87/*** GENERATED CODE ***/
2cafb56b 88#define is_HORIZWS_high(s) \
29f3ce8f
KW
89( ( 0xE1 == ((const U8*)s)[0] ) ? \
90 ( ( ( 0x9A == ((const U8*)s)[1] ) && ( 0x80 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
91: ( 0xE2 == ((const U8*)s)[0] ) ? \
92 ( ( 0x80 == ((const U8*)s)[1] ) ? \
8c112bb9 93 ( ( inRANGE(((const U8*)s)[2], 0x80, 0x8A) || 0xAF == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f
KW
94 : ( ( 0x81 == ((const U8*)s)[1] ) && ( 0x9F == ((const U8*)s)[2] ) ) ? 3 : 0 )\
95: ( ( ( 0xE3 == ((const U8*)s)[0] ) && ( 0x80 == ((const U8*)s)[1] ) ) && ( 0x80 == ((const U8*)s)[2] ) ) ? 3 : 0 )
2cafb56b
KW
96
97/*** GENERATED CODE ***/
2cafb56b 98#define is_HORIZWS_cp_high(cp) \
c7c8bf55 99( 0x1680 == cp || ( 0x1680 < cp && \
e42cde6b 100( inRANGE(cp, 0x2000, 0x200A) || ( 0x200A < cp && \
c7c8bf55
KW
101( 0x202F == cp || ( 0x202F < cp && \
102( 0x205F == cp || 0x3000 == cp ) ) ) ) ) ) )
2cafb56b 103
12b72891
RGS
104/*
105 VERTWS: Vertical Whitespace: \v \V
e1d1eefb 106
05b688d9 107 \p{VertSpace}
12b72891
RGS
108*/
109/*** GENERATED CODE ***/
840f8e92 110#define is_VERTWS_high(s) \
8c112bb9 111( ( ( ( 0xE2 == ((const U8*)s)[0] ) && ( 0x80 == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0xA8, 0xA9) ) ) ? 3 : 0 )
840f8e92
KW
112
113/*** GENERATED CODE ***/
840f8e92 114#define is_VERTWS_cp_high(cp) \
6d2bbfb0 115( inRANGE(cp, 0x2028, 0x2029) )
840f8e92 116
612ead59 117/*
4ac6419d
KW
118 XDIGIT: Hexadecimal digits
119
120 \p{XDigit}
121*/
122/*** GENERATED CODE ***/
4ac6419d 123#define is_XDIGIT_high(s) \
29f3ce8f
KW
124( ( 0xEF == ((const U8*)s)[0] ) ? \
125 ( ( 0xBC == ((const U8*)s)[1] ) ? \
8c112bb9
KW
126 ( ( inRANGE(((const U8*)s)[2], 0x90, 0x99) || inRANGE(((const U8*)s)[2], 0xA1, 0xA6) ) ? 3 : 0 )\
127 : ( ( 0xBD == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x81, 0x86) ) ) ? 3 : 0 )\
4ac6419d
KW
128: 0 )
129
130/*** GENERATED CODE ***/
131#define is_XDIGIT_cp_high(cp) \
e42cde6b
KW
132( inRANGE(cp, 0xFF10, 0xFF19) || ( 0xFF19 < cp && \
133( inRANGE(cp, 0xFF21, 0xFF26) || inRANGE(cp, 0xFF41, 0xFF46) ) ) )
4ac6419d
KW
134
135/*
bedac28b
KW
136 XPERLSPACE: \p{XPerlSpace}
137
138 \p{XPerlSpace}
139*/
140/*** GENERATED CODE ***/
bedac28b 141#define is_XPERLSPACE_high(s) \
29f3ce8f
KW
142( ( 0xE1 == ((const U8*)s)[0] ) ? \
143 ( ( ( 0x9A == ((const U8*)s)[1] ) && ( 0x80 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
144: ( 0xE2 == ((const U8*)s)[0] ) ? \
145 ( ( 0x80 == ((const U8*)s)[1] ) ? \
8c112bb9 146 ( ( inRANGE(((const U8*)s)[2], 0x80, 0x8A) || inRANGE(((const U8*)s)[2], 0xA8, 0xA9) || 0xAF == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f
KW
147 : ( ( 0x81 == ((const U8*)s)[1] ) && ( 0x9F == ((const U8*)s)[2] ) ) ? 3 : 0 )\
148: ( ( ( 0xE3 == ((const U8*)s)[0] ) && ( 0x80 == ((const U8*)s)[1] ) ) && ( 0x80 == ((const U8*)s)[2] ) ) ? 3 : 0 )
bedac28b
KW
149
150/*** GENERATED CODE ***/
151#define is_XPERLSPACE_cp_high(cp) \
c7c8bf55 152( 0x1680 == cp || ( 0x1680 < cp && \
e42cde6b 153( inRANGE(cp, 0x2000, 0x200A) || ( 0x200A < cp && \
6d2bbfb0 154( inRANGE(cp, 0x2028, 0x2029) || ( 0x2029 < cp && \
c7c8bf55 155( 0x202F == cp || ( 0x202F < cp && \
6d2bbfb0 156( 0x205F == cp || 0x3000 == cp ) ) ) ) ) ) ) ) )
bedac28b
KW
157
158/*
b96a92fb
KW
159 NONCHAR: Non character code points
160
099323b4 161 \p{_Perl_Nchar}
b96a92fb
KW
162*/
163/*** GENERATED CODE ***/
89d986df 164#define is_NONCHAR_utf8_safe(s,e) \
29f3ce8f
KW
165( ( ( LIKELY((e) > (s)) ) && ( LIKELY(((e) - (s)) >= UTF8SKIP(s)) ) ) ? ( ( 0xEF == ((const U8*)s)[0] ) ?\
166 ( ( 0xB7 == ((const U8*)s)[1] ) ? \
8c112bb9
KW
167 ( ( inRANGE(((const U8*)s)[2], 0x90, 0xAF) ) ? 3 : 0 ) \
168 : ( ( 0xBF == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0xBE, 0xBF) ) ) ? 3 : 0 )\
29f3ce8f 169 : ( 0xF0 == ((const U8*)s)[0] ) ? \
8c112bb9
KW
170 ( ( ( ( ((const U8*)s)[1] == 0x9F || ( ( ((const U8*)s)[1] & 0xEF ) == 0xAF ) ) && ( 0xBF == ((const U8*)s)[2] ) ) && ( inRANGE(((const U8*)s)[3], 0xBE, 0xBF) ) ) ? 4 : 0 )\
171 : ( inRANGE(((const U8*)s)[0], 0xF1, 0xF3) ) ? \
172 ( ( ( ( ( ((const U8*)s)[1] & 0xCF ) == 0x8F ) && ( 0xBF == ((const U8*)s)[2] ) ) && ( inRANGE(((const U8*)s)[3], 0xBE, 0xBF) ) ) ? 4 : 0 )\
173 : ( ( ( ( 0xF4 == ((const U8*)s)[0] ) && ( 0x8F == ((const U8*)s)[1] ) ) && ( 0xBF == ((const U8*)s)[2] ) ) && ( inRANGE(((const U8*)s)[3], 0xBE, 0xBF) ) ) ? 4 : 0 ) : 0 )
b96a92fb
KW
174
175/*
21cb232c 176 SURROGATE: Surrogate code points
b96a92fb 177
099323b4 178 \p{_Perl_Surrogate}
b96a92fb
KW
179*/
180/*** GENERATED CODE ***/
89d986df 181#define is_SURROGATE_utf8_safe(s,e) \
8c112bb9 182( ( ( ( ( ((e) - (s)) >= 3 ) && ( 0xED == ((const U8*)s)[0] ) ) && ( inRANGE(((const U8*)s)[1], 0xA0, 0xBF) ) ) && ( inRANGE(((const U8*)s)[2], 0x80, 0xBF) ) ) ? 3 : 0 )
b96a92fb
KW
183
184/*
685289b5
KW
185 QUOTEMETA: Meta-characters that \Q should quote
186
187 \p{_Perl_Quotemeta}
188*/
189/*** GENERATED CODE ***/
190#define is_QUOTEMETA_high(s) \
29f3ce8f
KW
191( ( 0xCD == ((const U8*)s)[0] ) ? \
192 ( ( 0x8F == ((const U8*)s)[1] ) ? 2 : 0 ) \
193: ( 0xD8 == ((const U8*)s)[0] ) ? \
194 ( ( 0x9C == ((const U8*)s)[1] ) ? 2 : 0 ) \
195: ( 0xE1 == ((const U8*)s)[0] ) ? \
196 ( ( 0x85 == ((const U8*)s)[1] ) ? \
8c112bb9 197 ( ( inRANGE(((const U8*)s)[2], 0x9F, 0xA0) ) ? 3 : 0 ) \
29f3ce8f
KW
198 : ( 0x9A == ((const U8*)s)[1] ) ? \
199 ( ( 0x80 == ((const U8*)s)[2] ) ? 3 : 0 ) \
200 : ( 0x9E == ((const U8*)s)[1] ) ? \
8c112bb9
KW
201 ( ( inRANGE(((const U8*)s)[2], 0xB4, 0xB5) ) ? 3 : 0 ) \
202 : ( ( 0xA0 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x8B, 0x8E) ) ) ? 3 : 0 )\
29f3ce8f
KW
203: ( 0xE2 == ((const U8*)s)[0] ) ? \
204 ( ( 0x80 == ((const U8*)s)[1] ) ? \
8c112bb9 205 ( ( inRANGE(((const U8*)s)[2], 0x80, 0xBE) ) ? 3 : 0 ) \
29f3ce8f 206 : ( 0x81 == ((const U8*)s)[1] ) ? \
8c112bb9 207 ( ( inRANGE(((const U8*)s)[2], 0x81, 0x93) || inRANGE(((const U8*)s)[2], 0x95, 0xAF) ) ? 3 : 0 )\
29f3ce8f 208 : ( 0x86 == ((const U8*)s)[1] ) ? \
8c112bb9
KW
209 ( ( inRANGE(((const U8*)s)[2], 0x90, 0xBF) ) ? 3 : 0 ) \
210 : ( inRANGE(((const U8*)s)[1], 0x87, 0x90) || inRANGE(((const U8*)s)[1], 0x94, 0x9C) || inRANGE(((const U8*)s)[1], 0x9F, 0xAF) || inRANGE(((const U8*)s)[1], 0xB8, 0xB9) ) ?\
6e130234 211 3 \
29f3ce8f 212 : ( 0x91 == ((const U8*)s)[1] ) ? \
8c112bb9 213 ( ( inRANGE(((const U8*)s)[2], 0x80, 0x9F) ) ? 3 : 0 ) \
29f3ce8f 214 : ( 0x9D == ((const U8*)s)[1] ) ? \
8c112bb9
KW
215 ( ( inRANGE(((const U8*)s)[2], 0x80, 0xB5) ) ? 3 : 0 ) \
216 : ( ( 0x9E == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x94, 0xBF) ) ) ? 3 : 0 )\
29f3ce8f
KW
217: ( 0xE3 == ((const U8*)s)[0] ) ? \
218 ( ( 0x80 == ((const U8*)s)[1] ) ? \
8c112bb9 219 ( ( inRANGE(((const U8*)s)[2], 0x80, 0x83) || inRANGE(((const U8*)s)[2], 0x88, 0xA0) || 0xB0 == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f
KW
220 : ( ( 0x85 == ((const U8*)s)[1] ) && ( 0xA4 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
221: ( 0xEF == ((const U8*)s)[0] ) ? \
222 ( ( 0xB4 == ((const U8*)s)[1] ) ? \
8c112bb9 223 ( ( inRANGE(((const U8*)s)[2], 0xBE, 0xBF) ) ? 3 : 0 ) \
29f3ce8f 224 : ( 0xB8 == ((const U8*)s)[1] ) ? \
8c112bb9 225 ( ( inRANGE(((const U8*)s)[2], 0x80, 0x8F) ) ? 3 : 0 ) \
29f3ce8f 226 : ( 0xB9 == ((const U8*)s)[1] ) ? \
8c112bb9 227 ( ( inRANGE(((const U8*)s)[2], 0x85, 0x86) ) ? 3 : 0 ) \
29f3ce8f
KW
228 : ( 0xBB == ((const U8*)s)[1] ) ? \
229 ( ( 0xBF == ((const U8*)s)[2] ) ? 3 : 0 ) \
230 : ( 0xBE == ((const U8*)s)[1] ) ? \
231 ( ( 0xA0 == ((const U8*)s)[2] ) ? 3 : 0 ) \
8c112bb9 232 : ( ( 0xBF == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0xB0, 0xB8) ) ) ? 3 : 0 )\
29f3ce8f
KW
233: ( 0xF0 == ((const U8*)s)[0] ) ? \
234 ( ( 0x9B == ((const U8*)s)[1] ) ? \
8c112bb9
KW
235 ( ( ( 0xB2 == ((const U8*)s)[2] ) && ( inRANGE(((const U8*)s)[3], 0xA0, 0xA3) ) ) ? 4 : 0 )\
236 : ( ( ( 0x9D == ((const U8*)s)[1] ) && ( 0x85 == ((const U8*)s)[2] ) ) && ( inRANGE(((const U8*)s)[3], 0xB3, 0xBA) ) ) ? 4 : 0 )\
29f3ce8f 237: ( ( 0xF3 == ((const U8*)s)[0] ) && ( 0xA0 == ((const U8*)s)[1] ) ) ? 4 : 0 )
685289b5 238
8769f413
KW
239/*
240 MULTI_CHAR_FOLD: multi-char strings that are folded to by a single character
241
42d7c910 242 &regcharclass_multi_char_folds::multi_char_folds('u', 'a')
8769f413
KW
243*/
244/*** GENERATED CODE ***/
251b239f 245#define is_MULTI_CHAR_FOLD_utf8_safe_part0(s,e) \
114fc8b6
KW
246( ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) ? \
247 ( ( ( ( ((const U8*)s)[2] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[2] & 0xDF ) == 'L' ) ) ? 3 : 2 )\
248 : ( ( ( ((const U8*)s)[1] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[1] & 0xDF ) == 'L' ) ) ? 2 : 0 )
cf9d46fd
KW
249
250
251/*** GENERATED CODE ***/
252#define is_MULTI_CHAR_FOLD_utf8_safe_part1(s,e) \
114fc8b6 253( ( ( ((const U8*)s)[0] & 0xDF ) == 'H' ) ? \
29f3ce8f 254 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0xB1 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 255 : ( ( ((const U8*)s)[0] & 0xDF ) == 'I' ) ? \
29f3ce8f 256 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x87 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 257 : ( ( ((const U8*)s)[0] & 0xDF ) == 'J' ) ? \
29f3ce8f 258 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x8C == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 259 : ( ( ((const U8*)s)[0] & 0xDF ) == 'S' ) ? \
114fc8b6
KW
260 ( ( inRANGE(((const U8*)s)[1], 'S', 'T') || inRANGE(((const U8*)s)[1], 's', 't') ) ? 2\
261 : ( ( 0xC5 == ((const U8*)s)[1] ) && ( 0xBF == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 262 : ( ( ((const U8*)s)[0] & 0xDF ) == 'T' ) ? \
29f3ce8f 263 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x88 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 264 : ( ( ( ((const U8*)s)[0] & 0xDF ) == 'W' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'Y' ) ) ?\
29f3ce8f
KW
265 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x8A == ((const U8*)s)[2] ) ) ? 3 : 0 )\
266 : ( 0xC5 == ((const U8*)s)[0] ) ? \
114fc8b6
KW
267 ( ( 0xBF == ((const U8*)s)[1] ) ? \
268 ( ( inRANGE(((const U8*)s)[2], 'S', 'T') || inRANGE(((const U8*)s)[2], 's', 't') ) ? 3\
269 : ( ( 0xC5 == ((const U8*)s)[2] ) && ( 0xBF == ((const U8*)s)[3] ) ) ? 4 : 0 )\
270 : 0 ) \
29f3ce8f 271 : ( 0xCA == ((const U8*)s)[0] ) ? \
cf9d46fd 272 ( ( ( 0xBC == ((const U8*)s)[1] ) && ( ( ((const U8*)s)[2] & 0xDF ) == 'N' ) ) ? 3 : 0 )\
29f3ce8f
KW
273 : ( 0xCE == ((const U8*)s)[0] ) ? \
274 ( ( ( ((const U8*)s)[1] & 0xFD ) == 0xAC ) ? \
275 ( ( ( 0xCE == ((const U8*)s)[2] ) && ( 0xB9 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
276 : ( 0xB1 == ((const U8*)s)[1] || 0xB7 == ((const U8*)s)[1] ) ? \
277 ( ( 0xCD == ((const U8*)s)[2] ) ? \
cf9d46fd
KW
278 ( ( 0x82 == ((const U8*)s)[3] ) ? \
279 ( ( ( 0xCE == ((const U8*)s)[4] ) && ( 0xB9 == ((const U8*)s)[5] ) ) ? 6 : 4 )\
280 : 0 ) \
29f3ce8f 281 : ( ( 0xCE == ((const U8*)s)[2] ) && ( 0xB9 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
cf9d46fd
KW
282 : ( 0xB9 == ((const U8*)s)[1] ) ? \
283 ( ( 0xCC == ((const U8*)s)[2] ) ? \
284 ( ( 0x88 == ((const U8*)s)[3] ) ? \
285 ( ( 0xCC == ((const U8*)s)[4] ) ? \
286 ( ( inRANGE(((const U8*)s)[5], 0x80, 0x81) ) ? 6 : 0 )\
287 : ( ( 0xCD == ((const U8*)s)[4] ) && ( 0x82 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
288 : 0 ) \
289 : ( ( 0xCD == ((const U8*)s)[2] ) && ( 0x82 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
290 : 0 ) \
29f3ce8f
KW
291 : ( 0xCF == ((const U8*)s)[0] ) ? \
292 ( ( 0x81 == ((const U8*)s)[1] ) ? \
293 ( ( ( 0xCC == ((const U8*)s)[2] ) && ( 0x93 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
294 : ( 0x85 == ((const U8*)s)[1] ) ? \
295 ( ( 0xCC == ((const U8*)s)[2] ) ? \
cf9d46fd
KW
296 ( ( 0x88 == ((const U8*)s)[3] ) ? \
297 ( ( 0xCC == ((const U8*)s)[4] ) ? \
298 ( ( inRANGE(((const U8*)s)[5], 0x80, 0x81) ) ? 6 : 0 )\
299 : ( ( 0xCD == ((const U8*)s)[4] ) && ( 0x82 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
300 : ( 0x93 == ((const U8*)s)[3] ) ? \
301 ( ( 0xCC == ((const U8*)s)[4] ) ? \
302 ( ( inRANGE(((const U8*)s)[5], 0x80, 0x81) ) ? 6 : 4 )\
303 : ( ( 0xCD == ((const U8*)s)[4] ) && ( 0x82 == ((const U8*)s)[5] ) ) ? 6 : 4 )\
304 : 0 ) \
29f3ce8f
KW
305 : ( ( 0xCD == ((const U8*)s)[2] ) && ( 0x82 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
306 : ( 0x89 == ((const U8*)s)[1] ) ? \
307 ( ( 0xCD == ((const U8*)s)[2] ) ? \
cf9d46fd
KW
308 ( ( 0x82 == ((const U8*)s)[3] ) ? \
309 ( ( ( 0xCE == ((const U8*)s)[4] ) && ( 0xB9 == ((const U8*)s)[5] ) ) ? 6 : 4 )\
310 : 0 ) \
29f3ce8f
KW
311 : ( ( 0xCE == ((const U8*)s)[2] ) && ( 0xB9 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
312 : ( ( ( 0x8E == ((const U8*)s)[1] ) && ( 0xCE == ((const U8*)s)[2] ) ) && ( 0xB9 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
313 : ( 0xD5 == ((const U8*)s)[0] ) ? \
314 ( ( 0xA5 == ((const U8*)s)[1] ) ? \
315 ( ( ( 0xD6 == ((const U8*)s)[2] ) && ( 0x82 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
316 : ( 0xB4 == ((const U8*)s)[1] ) ? \
317 ( ( ( 0xD5 == ((const U8*)s)[2] ) && ( ( ( ((const U8*)s)[3] & 0xF7 ) == 0xA5 ) || ((const U8*)s)[3] == 0xAB || ((const U8*)s)[3] == 0xB6 ) ) ? 4 : 0 )\
318 : ( ( ( 0xBE == ((const U8*)s)[1] ) && ( 0xD5 == ((const U8*)s)[2] ) ) && ( 0xB6 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
319 : ( 0xE1 == ((const U8*)s)[0] ) ? \
320 ( ( 0xBC == ((const U8*)s)[1] ) ? \
321 ( ( ( ( ( ((const U8*)s)[2] & 0xD8 ) == 0x80 ) && ( 0xCE == ((const U8*)s)[3] ) ) && ( 0xB9 == ((const U8*)s)[4] ) ) ? 5 : 0 )\
322 : ( ( ( ( 0xBD == ((const U8*)s)[1] ) && ( ( ( ((const U8*)s)[2] & 0xF8 ) == 0xA0 ) || ( ( ((const U8*)s)[2] & 0xFB ) == 0xB0 ) || ((const U8*)s)[2] == 0xBC ) ) && ( 0xCE == ((const U8*)s)[3] ) ) && ( 0xB9 == ((const U8*)s)[4] ) ) ? 5 : 0 )\
251b239f
KW
323 : 0 )
324
325
326/*** GENERATED CODE ***/
cf9d46fd
KW
327#define is_MULTI_CHAR_FOLD_utf8_safe_part2(s,e) \
328( ( ( ((const U8*)s)[0] & 0xDF ) == 'A' ) ? \
29f3ce8f 329 ( ( ( 0xCA == ((const U8*)s)[1] ) && ( 0xBE == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd
KW
330 : ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ? \
331 ( ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) ? \
332 ( ( ( ( ((const U8*)s)[2] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[2] & 0xDF ) == 'L' ) ) ? 3 : 2 )\
333 : ( ( ( ((const U8*)s)[1] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[1] & 0xDF ) == 'L' ) ) ? 2 : 0 )\
334 : ( ( ((const U8*)s)[0] & 0xDF ) == 'H' ) ? \
29f3ce8f 335 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0xB1 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 336 : ( ( ((const U8*)s)[0] & 0xDF ) == 'I' ) ? \
29f3ce8f 337 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x87 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 338 : ( ( ((const U8*)s)[0] & 0xDF ) == 'J' ) ? \
29f3ce8f 339 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x8C == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 340 : ( ( ((const U8*)s)[0] & 0xDF ) == 'S' ) ? \
114fc8b6
KW
341 ( ( inRANGE(((const U8*)s)[1], 'S', 'T') || inRANGE(((const U8*)s)[1], 's', 't') ) ? 2\
342 : ( ( 0xC5 == ((const U8*)s)[1] ) && ( 0xBF == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 343 : ( ( ((const U8*)s)[0] & 0xDF ) == 'T' ) ? \
29f3ce8f 344 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x88 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 345 : ( ( ( ((const U8*)s)[0] & 0xDF ) == 'W' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'Y' ) ) ?\
29f3ce8f
KW
346 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x8A == ((const U8*)s)[2] ) ) ? 3 : 0 )\
347 : ( 0xC5 == ((const U8*)s)[0] ) ? \
114fc8b6
KW
348 ( ( 0xBF == ((const U8*)s)[1] ) ? \
349 ( ( inRANGE(((const U8*)s)[2], 'S', 'T') || inRANGE(((const U8*)s)[2], 's', 't') ) ? 3\
350 : ( ( 0xC5 == ((const U8*)s)[2] ) && ( 0xBF == ((const U8*)s)[3] ) ) ? 4 : 0 )\
351 : 0 ) \
29f3ce8f 352 : ( 0xCA == ((const U8*)s)[0] ) ? \
cf9d46fd 353 ( ( ( 0xBC == ((const U8*)s)[1] ) && ( ( ((const U8*)s)[2] & 0xDF ) == 'N' ) ) ? 3 : 0 )\
29f3ce8f
KW
354 : ( 0xCE == ((const U8*)s)[0] ) ? \
355 ( ( ( ((const U8*)s)[1] & 0xFD ) == 0xAC ) ? \
356 ( ( ( 0xCE == ((const U8*)s)[2] ) && ( 0xB9 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
357 : ( 0xB1 == ((const U8*)s)[1] || 0xB7 == ((const U8*)s)[1] ) ? \
358 ( ( 0xCD == ((const U8*)s)[2] ) ? \
359 ( ( 0x82 == ((const U8*)s)[3] ) ? 4 : 0 ) \
360 : ( ( 0xCE == ((const U8*)s)[2] ) && ( 0xB9 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
361 : ( ( ( 0xB9 == ((const U8*)s)[1] ) && ( 0xCD == ((const U8*)s)[2] ) ) && ( 0x82 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
362 : ( 0xCF == ((const U8*)s)[0] ) ? \
363 ( ( 0x81 == ((const U8*)s)[1] ) ? \
364 ( ( ( 0xCC == ((const U8*)s)[2] ) && ( 0x93 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
365 : ( 0x85 == ((const U8*)s)[1] ) ? \
366 ( ( 0xCC == ((const U8*)s)[2] ) ? \
367 ( ( 0x93 == ((const U8*)s)[3] ) ? 4 : 0 ) \
368 : ( ( 0xCD == ((const U8*)s)[2] ) && ( 0x82 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
369 : ( 0x89 == ((const U8*)s)[1] ) ? \
370 ( ( 0xCD == ((const U8*)s)[2] ) ? \
371 ( ( 0x82 == ((const U8*)s)[3] ) ? 4 : 0 ) \
372 : ( ( 0xCE == ((const U8*)s)[2] ) && ( 0xB9 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
373 : ( ( ( 0x8E == ((const U8*)s)[1] ) && ( 0xCE == ((const U8*)s)[2] ) ) && ( 0xB9 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
374 : ( 0xD5 == ((const U8*)s)[0] ) ? \
375 ( ( 0xA5 == ((const U8*)s)[1] ) ? \
376 ( ( ( 0xD6 == ((const U8*)s)[2] ) && ( 0x82 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
377 : ( 0xB4 == ((const U8*)s)[1] ) ? \
378 ( ( ( 0xD5 == ((const U8*)s)[2] ) && ( ( ( ((const U8*)s)[3] & 0xF7 ) == 0xA5 ) || ((const U8*)s)[3] == 0xAB || ((const U8*)s)[3] == 0xB6 ) ) ? 4 : 0 )\
379 : ( ( ( 0xBE == ((const U8*)s)[1] ) && ( 0xD5 == ((const U8*)s)[2] ) ) && ( 0xB6 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
cf9d46fd
KW
380 : 0 )
381
382
383/*** GENERATED CODE ***/
384#define is_MULTI_CHAR_FOLD_utf8_safe_part3(s,e) \
385( ((e)-(s) > 2) ? \
386 ( ( ( ((const U8*)s)[0] & 0xDF ) == 'A' ) ? \
29f3ce8f 387 ( ( ( 0xCA == ((const U8*)s)[1] ) && ( 0xBE == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd
KW
388 : ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ? \
389 ( ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) ? \
390 ( ( ( ( ((const U8*)s)[2] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[2] & 0xDF ) == 'L' ) ) ? 3 : 2 )\
391 : ( ( ( ((const U8*)s)[1] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[1] & 0xDF ) == 'L' ) ) ? 2 : 0 )\
392 : ( ( ((const U8*)s)[0] & 0xDF ) == 'H' ) ? \
29f3ce8f 393 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0xB1 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 394 : ( ( ((const U8*)s)[0] & 0xDF ) == 'I' ) ? \
29f3ce8f 395 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x87 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 396 : ( ( ((const U8*)s)[0] & 0xDF ) == 'J' ) ? \
29f3ce8f 397 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x8C == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 398 : ( ( ((const U8*)s)[0] & 0xDF ) == 'S' ) ? \
114fc8b6
KW
399 ( ( inRANGE(((const U8*)s)[1], 'S', 'T') || inRANGE(((const U8*)s)[1], 's', 't') ) ? 2\
400 : ( ( 0xC5 == ((const U8*)s)[1] ) && ( 0xBF == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 401 : ( ( ((const U8*)s)[0] & 0xDF ) == 'T' ) ? \
29f3ce8f 402 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x88 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 403 : ( ( ( ((const U8*)s)[0] & 0xDF ) == 'W' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'Y' ) ) ?\
29f3ce8f 404 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x8A == ((const U8*)s)[2] ) ) ? 3 : 0 )\
114fc8b6
KW
405 : ( 0xC5 == ((const U8*)s)[0] ) ? \
406 ( ( ( 0xBF == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 'S', 'T') || inRANGE(((const U8*)s)[2], 's', 't') ) ) ? 3 : 0 )\
cf9d46fd 407 : ( ( ( 0xCA == ((const U8*)s)[0] ) && ( 0xBC == ((const U8*)s)[1] ) ) && ( ( ((const U8*)s)[2] & 0xDF ) == 'N' ) ) ? 3 : 0 )\
251b239f 408: ((e)-(s) > 1) ? \
cf9d46fd
KW
409 ( ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ? \
410 ( ( ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) || ( ( ((const U8*)s)[1] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[1] & 0xDF ) == 'L' ) ) ? 2 : 0 )\
411 : ( ( ( ((const U8*)s)[0] & 0xDF ) == 'S' ) && ( inRANGE(((const U8*)s)[1], 'S', 'T') || inRANGE(((const U8*)s)[1], 's', 't') ) ) ? 2 : 0 )\
c4c8e615
KW
412: 0 )
413
414
415/*** GENERATED CODE ***/
251b239f 416#define is_MULTI_CHAR_FOLD_utf8_safe(s,e) \
c7c8bf55 417( ((e)-(s) > 5) ? \
114fc8b6
KW
418 ( ( ( ((const U8*)s)[0] & 0xDF ) == 'A' ) ? \
419 ( ( ( 0xCA == ((const U8*)s)[1] ) && ( 0xBE == ((const U8*)s)[2] ) ) ? 3 : 0 )\
420 : ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ? is_MULTI_CHAR_FOLD_utf8_safe_part0(s,e) : is_MULTI_CHAR_FOLD_utf8_safe_part1(s,e) )\
cf9d46fd
KW
421: ((e)-(s) > 4) ? \
422 ( ( ( ((const U8*)s)[0] & 0xDF ) == 'A' ) ? \
29f3ce8f 423 ( ( ( 0xCA == ((const U8*)s)[1] ) && ( 0xBE == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd
KW
424 : ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ? \
425 ( ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) ? \
426 ( ( ( ( ((const U8*)s)[2] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[2] & 0xDF ) == 'L' ) ) ? 3 : 2 )\
427 : ( ( ( ((const U8*)s)[1] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[1] & 0xDF ) == 'L' ) ) ? 2 : 0 )\
428 : ( ( ((const U8*)s)[0] & 0xDF ) == 'H' ) ? \
29f3ce8f 429 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0xB1 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 430 : ( ( ((const U8*)s)[0] & 0xDF ) == 'I' ) ? \
29f3ce8f 431 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x87 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 432 : ( ( ((const U8*)s)[0] & 0xDF ) == 'J' ) ? \
29f3ce8f 433 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x8C == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 434 : ( ( ((const U8*)s)[0] & 0xDF ) == 'S' ) ? \
114fc8b6
KW
435 ( ( inRANGE(((const U8*)s)[1], 'S', 'T') || inRANGE(((const U8*)s)[1], 's', 't') ) ? 2\
436 : ( ( 0xC5 == ((const U8*)s)[1] ) && ( 0xBF == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 437 : ( ( ((const U8*)s)[0] & 0xDF ) == 'T' ) ? \
29f3ce8f 438 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x88 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 439 : ( ( ( ((const U8*)s)[0] & 0xDF ) == 'W' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'Y' ) ) ?\
29f3ce8f
KW
440 ( ( ( 0xCC == ((const U8*)s)[1] ) && ( 0x8A == ((const U8*)s)[2] ) ) ? 3 : 0 )\
441 : ( 0xC5 == ((const U8*)s)[0] ) ? \
114fc8b6
KW
442 ( ( 0xBF == ((const U8*)s)[1] ) ? \
443 ( ( inRANGE(((const U8*)s)[2], 'S', 'T') || inRANGE(((const U8*)s)[2], 's', 't') ) ? 3\
444 : ( ( 0xC5 == ((const U8*)s)[2] ) && ( 0xBF == ((const U8*)s)[3] ) ) ? 4 : 0 )\
445 : 0 ) \
29f3ce8f 446 : ( 0xCA == ((const U8*)s)[0] ) ? \
cf9d46fd 447 ( ( ( 0xBC == ((const U8*)s)[1] ) && ( ( ((const U8*)s)[2] & 0xDF ) == 'N' ) ) ? 3 : 0 )\
29f3ce8f
KW
448 : ( 0xCE == ((const U8*)s)[0] ) ? \
449 ( ( ( ((const U8*)s)[1] & 0xFD ) == 0xAC ) ? \
450 ( ( ( 0xCE == ((const U8*)s)[2] ) && ( 0xB9 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
451 : ( 0xB1 == ((const U8*)s)[1] || 0xB7 == ((const U8*)s)[1] ) ? \
452 ( ( 0xCD == ((const U8*)s)[2] ) ? \
cf9d46fd 453 ( ( 0x82 == ((const U8*)s)[3] ) ? 4 : 0 ) \
29f3ce8f 454 : ( ( 0xCE == ((const U8*)s)[2] ) && ( 0xB9 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
cf9d46fd 455 : ( ( ( 0xB9 == ((const U8*)s)[1] ) && ( 0xCD == ((const U8*)s)[2] ) ) && ( 0x82 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
29f3ce8f
KW
456 : ( 0xCF == ((const U8*)s)[0] ) ? \
457 ( ( 0x81 == ((const U8*)s)[1] ) ? \
458 ( ( ( 0xCC == ((const U8*)s)[2] ) && ( 0x93 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
459 : ( 0x85 == ((const U8*)s)[1] ) ? \
460 ( ( 0xCC == ((const U8*)s)[2] ) ? \
cf9d46fd 461 ( ( 0x93 == ((const U8*)s)[3] ) ? 4 : 0 ) \
29f3ce8f
KW
462 : ( ( 0xCD == ((const U8*)s)[2] ) && ( 0x82 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
463 : ( 0x89 == ((const U8*)s)[1] ) ? \
464 ( ( 0xCD == ((const U8*)s)[2] ) ? \
cf9d46fd 465 ( ( 0x82 == ((const U8*)s)[3] ) ? 4 : 0 ) \
29f3ce8f
KW
466 : ( ( 0xCE == ((const U8*)s)[2] ) && ( 0xB9 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
467 : ( ( ( 0x8E == ((const U8*)s)[1] ) && ( 0xCE == ((const U8*)s)[2] ) ) && ( 0xB9 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
468 : ( 0xD5 == ((const U8*)s)[0] ) ? \
469 ( ( 0xA5 == ((const U8*)s)[1] ) ? \
470 ( ( ( 0xD6 == ((const U8*)s)[2] ) && ( 0x82 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
471 : ( 0xB4 == ((const U8*)s)[1] ) ? \
472 ( ( ( 0xD5 == ((const U8*)s)[2] ) && ( ( ( ((const U8*)s)[3] & 0xF7 ) == 0xA5 ) || ((const U8*)s)[3] == 0xAB || ((const U8*)s)[3] == 0xB6 ) ) ? 4 : 0 )\
473 : ( ( ( 0xBE == ((const U8*)s)[1] ) && ( 0xD5 == ((const U8*)s)[2] ) ) && ( 0xB6 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
474 : ( 0xE1 == ((const U8*)s)[0] ) ? \
475 ( ( 0xBC == ((const U8*)s)[1] ) ? \
476 ( ( ( ( ( ((const U8*)s)[2] & 0xD8 ) == 0x80 ) && ( 0xCE == ((const U8*)s)[3] ) ) && ( 0xB9 == ((const U8*)s)[4] ) ) ? 5 : 0 )\
477 : ( ( ( ( 0xBD == ((const U8*)s)[1] ) && ( ( ( ((const U8*)s)[2] & 0xF8 ) == 0xA0 ) || ( ( ((const U8*)s)[2] & 0xFB ) == 0xB0 ) || ((const U8*)s)[2] == 0xBC ) ) && ( 0xCE == ((const U8*)s)[3] ) ) && ( 0xB9 == ((const U8*)s)[4] ) ) ? 5 : 0 )\
c7c8bf55 478 : 0 ) \
cf9d46fd 479: ((e)-(s) > 3) ? is_MULTI_CHAR_FOLD_utf8_safe_part2(s,e) : is_MULTI_CHAR_FOLD_utf8_safe_part3(s,e) )
8769f413
KW
480
481/*
40b1ba4f 482 MULTI_CHAR_FOLD: multi-char strings that are folded to by a single character
8769f413 483
42d7c910 484 &regcharclass_multi_char_folds::multi_char_folds('l', 'a')
8769f413
KW
485*/
486/*** GENERATED CODE ***/
251b239f
KW
487#define is_MULTI_CHAR_FOLD_latin1_safe(s,e) \
488( ((e)-(s) > 2) ? \
fdc26d94
KW
489 ( ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ? \
490 ( ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) ? \
491 ( ( ( ( ((const U8*)s)[2] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[2] & 0xDF ) == 'L' ) ) ? 3 : 2 )\
492 : ( ( ( ((const U8*)s)[1] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[1] & 0xDF ) == 'L' ) ) ? 2 : 0 )\
493 : ( ( ( ((const U8*)s)[0] & 0xDF ) == 'S' ) && ( inRANGE(((const U8*)s)[1], 'S', 'T') || inRANGE(((const U8*)s)[1], 's', 't') ) ) ? 2 : 0 )\
251b239f 494: ((e)-(s) > 1) ? \
fdc26d94
KW
495 ( ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ? \
496 ( ( ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) || ( ( ((const U8*)s)[1] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[1] & 0xDF ) == 'L' ) ) ? 2 : 0 )\
497 : ( ( ( ((const U8*)s)[0] & 0xDF ) == 'S' ) && ( inRANGE(((const U8*)s)[1], 'S', 'T') || inRANGE(((const U8*)s)[1], 's', 't') ) ) ? 2 : 0 )\
251b239f 498: 0 )
8769f413 499
0b50d62a 500/*
42d7c910
KW
501 THREE_CHAR_FOLD: A three-character multi-char fold
502
503 &regcharclass_multi_char_folds::multi_char_folds('u', '3')
504*/
505/*** GENERATED CODE ***/
506#define is_THREE_CHAR_FOLD_utf8_safe(s,e) \
507( ((e)-(s) > 5) ? \
cf9d46fd
KW
508 ( ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ? \
509 ( ( ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) && ( ( ( ((const U8*)s)[2] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[2] & 0xDF ) == 'L' ) ) ) ? 3 : 0 )\
42d7c910
KW
510 : ( 0xCE == ((const U8*)s)[0] ) ? \
511 ( ( 0xB1 == ((const U8*)s)[1] || 0xB7 == ((const U8*)s)[1] ) ? \
512 ( ( ( ( ( 0xCD == ((const U8*)s)[2] ) && ( 0x82 == ((const U8*)s)[3] ) ) && ( 0xCE == ((const U8*)s)[4] ) ) && ( 0xB9 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
513 : ( ( ( 0xB9 == ((const U8*)s)[1] ) && ( 0xCC == ((const U8*)s)[2] ) ) && ( 0x88 == ((const U8*)s)[3] ) ) ? ( ( 0xCC == ((const U8*)s)[4] ) ?\
8c112bb9 514 ( ( inRANGE(((const U8*)s)[5], 0x80, 0x81) ) ? 6 : 0 )\
42d7c910
KW
515 : ( ( 0xCD == ((const U8*)s)[4] ) && ( 0x82 == ((const U8*)s)[5] ) ) ? 6 : 0 ) : 0 )\
516 : ( 0xCF == ((const U8*)s)[0] ) ? \
517 ( ( 0x85 == ((const U8*)s)[1] ) ? \
518 ( ( ( 0xCC == ((const U8*)s)[2] ) && ( 0x88 == ((const U8*)s)[3] || 0x93 == ((const U8*)s)[3] ) ) ? ( ( 0xCC == ((const U8*)s)[4] ) ?\
8c112bb9 519 ( ( inRANGE(((const U8*)s)[5], 0x80, 0x81) ) ? 6 : 0 )\
42d7c910
KW
520 : ( ( 0xCD == ((const U8*)s)[4] ) && ( 0x82 == ((const U8*)s)[5] ) ) ? 6 : 0 ) : 0 )\
521 : ( ( ( ( ( 0x89 == ((const U8*)s)[1] ) && ( 0xCD == ((const U8*)s)[2] ) ) && ( 0x82 == ((const U8*)s)[3] ) ) && ( 0xCE == ((const U8*)s)[4] ) ) && ( 0xB9 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
522 : 0 ) \
cf9d46fd 523: ( ( ( ((e)-(s) > 2) && ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ) && ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) ) && ( ( ( ((const U8*)s)[2] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[2] & 0xDF ) == 'L' ) ) ) ? 3 : 0 )
42d7c910
KW
524
525/*
526 THREE_CHAR_FOLD: A three-character multi-char fold
527
528 &regcharclass_multi_char_folds::multi_char_folds('l', '3')
529*/
530/*** GENERATED CODE ***/
531#define is_THREE_CHAR_FOLD_latin1_safe(s,e) \
fdc26d94 532( ( ( ( ( ((e) - (s)) >= 3 ) && ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ) && ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) ) && ( ( ( ((const U8*)s)[2] & 0xDF ) == 'I' ) || ( ( ((const U8*)s)[2] & 0xDF ) == 'L' ) ) ) ? 3 : 0 )
42d7c910
KW
533
534/*
535 THREE_CHAR_FOLD_HEAD: The first two of three-character multi-char folds
536
537 &regcharclass_multi_char_folds::multi_char_folds('u', 'h')
538*/
539/*** GENERATED CODE ***/
540#define is_THREE_CHAR_FOLD_HEAD_utf8_safe(s,e) \
541( ((e)-(s) > 3) ? \
cf9d46fd
KW
542 ( ( ( ( ((const U8*)s)[0] & 0xDF ) == 'A' ) || ( ( ((const U8*)s)[0] & 0xDE ) == 'H' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'J' ) || ( ( ((const U8*)s)[0] & 0xDB ) == 'S' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'T' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'Y' ) ) ? 1\
543 : ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ? \
544 ( ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) ? 2 : 1 ) \
114fc8b6
KW
545 : ( 0xC5 == ((const U8*)s)[0] ) ? \
546 ( ( 0xBF == ((const U8*)s)[1] ) ? 2 : 0 ) \
42d7c910
KW
547 : ( 0xCA == ((const U8*)s)[0] ) ? \
548 ( ( 0xBC == ((const U8*)s)[1] ) ? 2 : 0 ) \
549 : ( 0xCE == ((const U8*)s)[0] ) ? \
550 ( ( ( ((const U8*)s)[1] & 0xFD ) == 0xAC ) ? 2 \
551 : ( 0xB1 == ((const U8*)s)[1] || 0xB7 == ((const U8*)s)[1] ) ? \
552 ( ( ( 0xCD == ((const U8*)s)[2] ) && ( 0x82 == ((const U8*)s)[3] ) ) ? 4 : 2 )\
553 : ( 0xB9 == ((const U8*)s)[1] ) ? \
554 ( ( ( 0xCC == ((const U8*)s)[2] ) && ( 0x88 == ((const U8*)s)[3] ) ) ? 4 : 2 )\
555 : 0 ) \
556 : ( 0xCF == ((const U8*)s)[0] ) ? \
557 ( ( 0x81 == ((const U8*)s)[1] || 0x8E == ((const U8*)s)[1] ) ? 2 \
558 : ( 0x85 == ((const U8*)s)[1] ) ? \
559 ( ( ( 0xCC == ((const U8*)s)[2] ) && ( 0x88 == ((const U8*)s)[3] || 0x93 == ((const U8*)s)[3] ) ) ? 4 : 2 )\
560 : ( 0x89 == ((const U8*)s)[1] ) ? \
561 ( ( ( 0xCD == ((const U8*)s)[2] ) && ( 0x82 == ((const U8*)s)[3] ) ) ? 4 : 2 )\
562 : 0 ) \
563 : ( 0xD5 == ((const U8*)s)[0] ) ? \
564 ( ( 0xA5 == ((const U8*)s)[1] || 0xB4 == ((const U8*)s)[1] || 0xBE == ((const U8*)s)[1] ) ? 2 : 0 )\
565 : ( 0xE1 == ((const U8*)s)[0] ) ? \
566 ( ( 0xBC == ((const U8*)s)[1] ) ? \
567 ( ( ( ((const U8*)s)[2] & 0xD8 ) == 0x80 ) ? 3 : 0 ) \
568 : ( ( 0xBD == ((const U8*)s)[1] ) && ( ( ( ((const U8*)s)[2] & 0xF8 ) == 0xA0 ) || ( ( ((const U8*)s)[2] & 0xFB ) == 0xB0 ) || ((const U8*)s)[2] == 0xBC ) ) ? 3 : 0 )\
569 : 0 ) \
570: ((e)-(s) > 2) ? \
cf9d46fd
KW
571 ( ( ( ( ((const U8*)s)[0] & 0xDF ) == 'A' ) || ( ( ((const U8*)s)[0] & 0xDE ) == 'H' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'J' ) || ( ( ((const U8*)s)[0] & 0xDB ) == 'S' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'T' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'Y' ) ) ? 1\
572 : ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ? \
573 ( ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) ? 2 : 1 ) \
114fc8b6
KW
574 : ( 0xC5 == ((const U8*)s)[0] ) ? \
575 ( ( 0xBF == ((const U8*)s)[1] ) ? 2 : 0 ) \
42d7c910
KW
576 : ( 0xCA == ((const U8*)s)[0] ) ? \
577 ( ( 0xBC == ((const U8*)s)[1] ) ? 2 : 0 ) \
578 : ( 0xCE == ((const U8*)s)[0] ) ? \
579 ( ( ( ( ((const U8*)s)[1] & 0xFD ) == 0xAC ) || ( ( ((const U8*)s)[1] & 0xF7 ) == 0xB1 ) || ((const U8*)s)[1] == 0xB7 ) ? 2 : 0 )\
580 : ( 0xCF == ((const U8*)s)[0] ) ? \
581 ( ( ( ( ((const U8*)s)[1] & 0xFB ) == 0x81 ) || ((const U8*)s)[1] == 0x89 || ((const U8*)s)[1] == 0x8E ) ? 2 : 0 )\
582 : ( 0xD5 == ((const U8*)s)[0] ) ? \
583 ( ( 0xA5 == ((const U8*)s)[1] || 0xB4 == ((const U8*)s)[1] || 0xBE == ((const U8*)s)[1] ) ? 2 : 0 )\
584 : ( 0xE1 == ((const U8*)s)[0] ) ? \
585 ( ( 0xBC == ((const U8*)s)[1] ) ? \
586 ( ( ( ((const U8*)s)[2] & 0xD8 ) == 0x80 ) ? 3 : 0 ) \
587 : ( ( 0xBD == ((const U8*)s)[1] ) && ( ( ( ((const U8*)s)[2] & 0xF8 ) == 0xA0 ) || ( ( ((const U8*)s)[2] & 0xFB ) == 0xB0 ) || ((const U8*)s)[2] == 0xBC ) ) ? 3 : 0 )\
588 : 0 ) \
589: ((e)-(s) > 1) ? \
cf9d46fd
KW
590 ( ( ( ( ((const U8*)s)[0] & 0xDF ) == 'A' ) || ( ( ((const U8*)s)[0] & 0xDE ) == 'H' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'J' ) || ( ( ((const U8*)s)[0] & 0xDB ) == 'S' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'T' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'Y' ) ) ? 1\
591 : ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ? \
592 ( ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) ? 2 : 1 ) \
114fc8b6
KW
593 : ( 0xC5 == ((const U8*)s)[0] ) ? \
594 ( ( 0xBF == ((const U8*)s)[1] ) ? 2 : 0 ) \
42d7c910
KW
595 : ( 0xCA == ((const U8*)s)[0] ) ? \
596 ( ( 0xBC == ((const U8*)s)[1] ) ? 2 : 0 ) \
597 : ( 0xCE == ((const U8*)s)[0] ) ? \
598 ( ( ( ( ((const U8*)s)[1] & 0xFD ) == 0xAC ) || ( ( ((const U8*)s)[1] & 0xF7 ) == 0xB1 ) || ((const U8*)s)[1] == 0xB7 ) ? 2 : 0 )\
599 : ( 0xCF == ((const U8*)s)[0] ) ? \
600 ( ( ( ( ((const U8*)s)[1] & 0xFB ) == 0x81 ) || ((const U8*)s)[1] == 0x89 || ((const U8*)s)[1] == 0x8E ) ? 2 : 0 )\
601 : ( ( 0xD5 == ((const U8*)s)[0] ) && ( 0xA5 == ((const U8*)s)[1] || 0xB4 == ((const U8*)s)[1] || 0xBE == ((const U8*)s)[1] ) ) ? 2 : 0 )\
602: ((e)-(s) > 0) ? \
cf9d46fd 603 ( ( ( ((const U8*)s)[0] & 0xDF ) == 'A' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) || ( ( ((const U8*)s)[0] & 0xDE ) == 'H' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'J' ) || ( ( ((const U8*)s)[0] & 0xDB ) == 'S' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'T' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'Y' ) )\
42d7c910
KW
604: 0 )
605
606/*
607 THREE_CHAR_FOLD_HEAD: The first two of three-character multi-char folds
608
609 &regcharclass_multi_char_folds::multi_char_folds('l', 'h')
610*/
611/*** GENERATED CODE ***/
612#define is_THREE_CHAR_FOLD_HEAD_latin1_safe(s,e) \
613( ((e)-(s) > 1) ? \
fdc26d94
KW
614 ( ( ( ( ((const U8*)s)[0] & 0xDF ) == 'A' ) || ( ( ((const U8*)s)[0] & 0xDE ) == 'H' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'J' ) || ( ( ((const U8*)s)[0] & 0xDB ) == 'S' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'T' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'Y' ) ) ? 1\
615 : ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) ? \
616 ( ( ( ((const U8*)s)[1] & 0xDF ) == 'F' ) ? 2 : 1 ) \
42d7c910
KW
617 : 0 ) \
618: ((e)-(s) > 0) ? \
fdc26d94 619 ( ( ( ((const U8*)s)[0] & 0xDF ) == 'A' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'F' ) || ( ( ((const U8*)s)[0] & 0xDE ) == 'H' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'J' ) || ( ( ((const U8*)s)[0] & 0xDB ) == 'S' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'T' ) || ( ( ((const U8*)s)[0] & 0xDF ) == 'Y' ) )\
42d7c910
KW
620: 0 )
621
622/*
1a27eb96
KW
623 FOLDS_TO_MULTI: characters that fold to multi-char strings
624
625 \p{_Perl_Folds_To_Multi_Char}
626*/
627/*** GENERATED CODE ***/
628#define is_FOLDS_TO_MULTI_utf8(s) \
29f3ce8f
KW
629( ( 0xC3 == ((const U8*)s)[0] ) ? \
630 ( ( 0x9F == ((const U8*)s)[1] ) ? 2 : 0 ) \
631: ( 0xC4 == ((const U8*)s)[0] || 0xC7 == ((const U8*)s)[0] ) ? \
632 ( ( 0xB0 == ((const U8*)s)[1] ) ? 2 : 0 ) \
633: ( 0xC5 == ((const U8*)s)[0] ) ? \
634 ( ( 0x89 == ((const U8*)s)[1] ) ? 2 : 0 ) \
635: ( 0xCE == ((const U8*)s)[0] ) ? \
636 ( ( ( ((const U8*)s)[1] & 0xDF ) == 0x90 ) ? 2 : 0 ) \
637: ( 0xD6 == ((const U8*)s)[0] ) ? \
638 ( ( 0x87 == ((const U8*)s)[1] ) ? 2 : 0 ) \
639: ( 0xE1 == ((const U8*)s)[0] ) ? \
640 ( ( 0xBA == ((const U8*)s)[1] ) ? \
8c112bb9 641 ( ( inRANGE(((const U8*)s)[2], 0x96, 0x9A) || 0x9E == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f
KW
642 : ( 0xBD == ((const U8*)s)[1] ) ? \
643 ( ( ( ((const U8*)s)[2] & 0xF9 ) == 0x90 ) ? 3 : 0 ) \
644 : ( 0xBE == ((const U8*)s)[1] ) ? \
8c112bb9 645 ( ( inRANGE(((const U8*)s)[2], 0x80, 0xAF) || inRANGE(((const U8*)s)[2], 0xB2, 0xB4) || inRANGE(((const U8*)s)[2], 0xB6, 0xB7) || 0xBC == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f 646 : ( ( 0xBF == ((const U8*)s)[1] ) && ( ( ( ((const U8*)s)[2] & 0xCA ) == 0x82 ) || ( ( ((const U8*)s)[2] & 0xF7 ) == 0x84 ) || ((const U8*)s)[2] == 0xA4 || ( ( ((const U8*)s)[2] & 0xF7 ) == 0xB4 ) ) ) ? 3 : 0 )\
8c112bb9 647: ( ( ( 0xEF == ((const U8*)s)[0] ) && ( 0xAC == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0x80, 0x86) || inRANGE(((const U8*)s)[2], 0x93, 0x97) ) ) ? 3 : 0 )
1a27eb96
KW
648
649/*
31f05a37
KW
650 PROBLEMATIC_LOCALE_FOLD: characters whose fold is problematic under locale
651
652 \p{_Perl_Problematic_Locale_Folds}
653*/
654/*** GENERATED CODE ***/
655#define is_PROBLEMATIC_LOCALE_FOLD_utf8(s) \
29f3ce8f 656( ( ((const U8*)s)[0] <= 0x7F ) ? 1 \
8c112bb9 657: ( inRANGE(((const U8*)s)[0], 0xC2, 0xC3) ) ? \
31f05a37 658 2 \
e061e593 659: ( 0xC4 == ((const U8*)s)[0] ) ? \
8c112bb9 660 ( ( inRANGE(((const U8*)s)[1], 0xB0, 0xB1) ) ? 2 : 0 ) \
29f3ce8f
KW
661: ( 0xC5 == ((const U8*)s)[0] ) ? \
662 ( ( 0x89 == ((const U8*)s)[1] || 0xB8 == ((const U8*)s)[1] || 0xBF == ((const U8*)s)[1] ) ? 2 : 0 )\
e061e593
KW
663: ( 0xC7 == ((const U8*)s)[0] ) ? \
664 ( ( 0xB0 == ((const U8*)s)[1] ) ? 2 : 0 ) \
665: ( 0xCC == ((const U8*)s)[0] ) ? \
666 ( ( 0x87 == ((const U8*)s)[1] ) ? 2 : 0 ) \
29f3ce8f
KW
667: ( 0xCE == ((const U8*)s)[0] ) ? \
668 ( ( ( ((const U8*)s)[1] & 0xDF ) == 0x9C ) ? 2 : 0 ) \
669: ( 0xE1 == ((const U8*)s)[0] ) ? \
8c112bb9 670 ( ( ( 0xBA == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x96, 0x9A) || 0x9E == ((const U8*)s)[2] ) ) ? 3 : 0 )\
29f3ce8f 671: ( 0xE2 == ((const U8*)s)[0] ) ? \
8c112bb9
KW
672 ( ( ( 0x84 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0xAA, 0xAB) ) ) ? 3 : 0 )\
673: ( ( ( 0xEF == ((const U8*)s)[0] ) && ( 0xAC == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0x80, 0x86) ) ) ? 3 : 0 )
31f05a37
KW
674
675/*** GENERATED CODE ***/
676#define is_PROBLEMATIC_LOCALE_FOLD_cp(cp) \
c7c8bf55 677( cp <= 0xFF || ( 0xFF < cp && \
6d2bbfb0 678( inRANGE(cp, 0x130, 0x131) || ( 0x131 < cp && \
c7c8bf55
KW
679( 0x149 == cp || ( 0x149 < cp && \
680( 0x178 == cp || ( 0x178 < cp && \
681( 0x17F == cp || ( 0x17F < cp && \
682( 0x1F0 == cp || ( 0x1F0 < cp && \
e061e593 683( 0x307 == cp || ( 0x307 < cp && \
c7c8bf55
KW
684( 0x39C == cp || ( 0x39C < cp && \
685( 0x3BC == cp || ( 0x3BC < cp && \
e42cde6b 686( inRANGE(cp, 0x1E96, 0x1E9A) || ( 0x1E9A < cp && \
c7c8bf55 687( 0x1E9E == cp || ( 0x1E9E < cp && \
6d2bbfb0 688( inRANGE(cp, 0x212A, 0x212B) || inRANGE(cp, 0xFB00, 0xFB06) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )
31f05a37
KW
689
690/*
691 PROBLEMATIC_LOCALE_FOLDEDS_START: The first folded character of folds which are problematic under locale
692
693 \p{_Perl_Problematic_Locale_Foldeds_Start}
694*/
695/*** GENERATED CODE ***/
696#define is_PROBLEMATIC_LOCALE_FOLDEDS_START_utf8(s) \
29f3ce8f 697( ( ((const U8*)s)[0] <= 0x7F ) ? 1 \
8c112bb9 698: ( inRANGE(((const U8*)s)[0], 0xC2, 0xC3) ) ? \
31f05a37 699 2 \
e061e593 700: ( 0xC4 == ((const U8*)s)[0] ) ? \
8c112bb9 701 ( ( inRANGE(((const U8*)s)[1], 0xB0, 0xB1) ) ? 2 : 0 ) \
29f3ce8f
KW
702: ( 0xC5 == ((const U8*)s)[0] ) ? \
703 ( ( 0x89 == ((const U8*)s)[1] || 0xB8 == ((const U8*)s)[1] || 0xBF == ((const U8*)s)[1] ) ? 2 : 0 )\
e061e593
KW
704: ( 0xC7 == ((const U8*)s)[0] ) ? \
705 ( ( 0xB0 == ((const U8*)s)[1] ) ? 2 : 0 ) \
29f3ce8f
KW
706: ( 0xCA == ((const U8*)s)[0] ) ? \
707 ( ( 0xBC == ((const U8*)s)[1] ) ? 2 : 0 ) \
708: ( 0xCE == ((const U8*)s)[0] ) ? \
709 ( ( ( ((const U8*)s)[1] & 0xDF ) == 0x9C ) ? 2 : 0 ) \
710: ( 0xE1 == ((const U8*)s)[0] ) ? \
8c112bb9 711 ( ( ( 0xBA == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x96, 0x9A) || 0x9E == ((const U8*)s)[2] ) ) ? 3 : 0 )\
29f3ce8f 712: ( 0xE2 == ((const U8*)s)[0] ) ? \
8c112bb9
KW
713 ( ( ( 0x84 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0xAA, 0xAB) ) ) ? 3 : 0 )\
714: ( ( ( 0xEF == ((const U8*)s)[0] ) && ( 0xAC == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0x80, 0x86) ) ) ? 3 : 0 )
31f05a37
KW
715
716/*** GENERATED CODE ***/
717#define is_PROBLEMATIC_LOCALE_FOLDEDS_START_cp(cp) \
c7c8bf55 718( cp <= 0xFF || ( 0xFF < cp && \
6d2bbfb0 719( inRANGE(cp, 0x130, 0x131) || ( 0x131 < cp && \
c7c8bf55
KW
720( 0x149 == cp || ( 0x149 < cp && \
721( 0x178 == cp || ( 0x178 < cp && \
722( 0x17F == cp || ( 0x17F < cp && \
723( 0x1F0 == cp || ( 0x1F0 < cp && \
724( 0x2BC == cp || ( 0x2BC < cp && \
725( 0x39C == cp || ( 0x39C < cp && \
726( 0x3BC == cp || ( 0x3BC < cp && \
e42cde6b 727( inRANGE(cp, 0x1E96, 0x1E9A) || ( 0x1E9A < cp && \
c7c8bf55 728( 0x1E9E == cp || ( 0x1E9E < cp && \
6d2bbfb0 729( inRANGE(cp, 0x212A, 0x212B) || inRANGE(cp, 0xFB00, 0xFB06) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )
31f05a37
KW
730
731/*
0b50d62a
KW
732 PATWS: pattern white space
733
099323b4 734 \p{_Perl_PatWS}
0b50d62a
KW
735*/
736/*** GENERATED CODE ***/
0b50d62a 737#define is_PATWS_safe(s,e,is_utf8) \
dd9bc2b0 738( ( LIKELY((e) > (s)) ) ? \
fdc26d94 739 ( ( inRANGE(((const U8*)s)[0], '\t', '\r') || ' ' == ((const U8*)s)[0] ) ? 1\
5ab0c3af 740 : (! is_utf8 ) ? \
29f3ce8f 741 ( 0x85 == ((const U8*)s)[0] ) \
dd9bc2b0 742 : ( LIKELY(((e) - (s)) >= UTF8SKIP(s)) ) ? \
29f3ce8f
KW
743 ( ( 0xC2 == ((const U8*)s)[0] ) ? \
744 ( ( 0x85 == ((const U8*)s)[1] ) ? 2 : 0 ) \
8c112bb9 745 : ( ( ( 0xE2 == ((const U8*)s)[0] ) && ( 0x80 == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0x8E, 0x8F) || inRANGE(((const U8*)s)[2], 0xA8, 0xA9) ) ) ? 3 : 0 )\
5ab0c3af 746 : 0 ) \
0b50d62a
KW
747: 0 )
748
6c12993c
KW
749/*
750 HANGUL_ED: Hangul syllables whose first character is \xED
751
752 0xD000 - 0xD7FF
753*/
754/*** GENERATED CODE ***/
755#define is_HANGUL_ED_utf8_safe(s,e) \
8c112bb9 756( ( ( ( ( ((e) - (s)) >= 3 ) && ( 0xED == ((const U8*)s)[0] ) ) && ( inRANGE(((const U8*)s)[1], 0x80, 0x9F) ) ) && ( inRANGE(((const U8*)s)[2], 0x80, 0xBF) ) ) ? 3 : 0 )
6c12993c 757
a1b2a50f
KW
758#endif /* ASCII/Latin1 */
759
760#if 'A' == 193 /* EBCDIC 1047 */ \
761 && '\\' == 224 && '[' == 173 && ']' == 189 && '{' == 192 && '}' == 208 \
762 && '^' == 95 && '~' == 161 && '!' == 90 && '#' == 123 && '|' == 79 \
c11f6329 763 && '$' == 91 && '@' == 124 && '`' == 121 && '\n' == 21
a1b2a50f
KW
764/*
765 LNBREAK: Line Break: \R
766
767 "\x0D\x0A" # CRLF - Network (Windows) line ending
768 \p{VertSpace}
769*/
770/*** GENERATED CODE ***/
771#define is_LNBREAK_safe(s,e,is_utf8) \
772( ((e)-(s) > 2) ? \
fdc26d94
KW
773 ( ( inRANGE(((const U8*)s)[0], '\v', '\f') || '\n' == ((const U8*)s)[0] || 0x25 == ((const U8*)s)[0] ) ? 1\
774 : ( '\r' == ((const U8*)s)[0] ) ? \
775 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
8c112bb9 776 : ( ( ( ( is_utf8 ) && ( 0xCA == ((const U8*)s)[0] ) ) && ( 0x42 == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0x49, 0x4A) ) ) ? 3 : 0 )\
a1b2a50f 777: ((e)-(s) > 1) ? \
fdc26d94
KW
778 ( ( inRANGE(((const U8*)s)[0], '\v', '\f') || '\n' == ((const U8*)s)[0] || 0x25 == ((const U8*)s)[0] ) ? 1\
779 : ( '\r' == ((const U8*)s)[0] ) ? \
780 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
a1b2a50f
KW
781 : 0 ) \
782: ((e)-(s) > 0) ? \
fdc26d94 783 ( inRANGE(((const U8*)s)[0], '\v', '\r') || '\n' == ((const U8*)s)[0] || 0x25 == ((const U8*)s)[0] )\
a1b2a50f
KW
784: 0 )
785
786/*** GENERATED CODE ***/
787#define is_LNBREAK_utf8_safe(s,e) \
788( ((e)-(s) > 2) ? \
fdc26d94
KW
789 ( ( inRANGE(((const U8*)s)[0], '\v', '\f') || '\n' == ((const U8*)s)[0] || 0x25 == ((const U8*)s)[0] ) ? 1\
790 : ( '\r' == ((const U8*)s)[0] ) ? \
791 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
8c112bb9 792 : ( ( ( 0xCA == ((const U8*)s)[0] ) && ( 0x42 == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0x49, 0x4A) ) ) ? 3 : 0 )\
a1b2a50f 793: ((e)-(s) > 1) ? \
fdc26d94
KW
794 ( ( inRANGE(((const U8*)s)[0], '\v', '\f') || '\n' == ((const U8*)s)[0] || 0x25 == ((const U8*)s)[0] ) ? 1\
795 : ( '\r' == ((const U8*)s)[0] ) ? \
796 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
a1b2a50f
KW
797 : 0 ) \
798: ((e)-(s) > 0) ? \
fdc26d94 799 ( inRANGE(((const U8*)s)[0], '\v', '\r') || '\n' == ((const U8*)s)[0] || 0x25 == ((const U8*)s)[0] )\
a1b2a50f
KW
800: 0 )
801
802/*** GENERATED CODE ***/
803#define is_LNBREAK_latin1_safe(s,e) \
804( ((e)-(s) > 1) ? \
fdc26d94
KW
805 ( ( inRANGE(((const U8*)s)[0], '\v', '\f') || '\n' == ((const U8*)s)[0] || 0x25 == ((const U8*)s)[0] ) ? 1\
806 : ( '\r' == ((const U8*)s)[0] ) ? \
807 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
a1b2a50f
KW
808 : 0 ) \
809: ((e)-(s) > 0) ? \
fdc26d94 810 ( inRANGE(((const U8*)s)[0], '\v', '\r') || '\n' == ((const U8*)s)[0] || 0x25 == ((const U8*)s)[0] )\
a1b2a50f
KW
811: 0 )
812
813/*
814 HORIZWS: Horizontal Whitespace: \h \H
815
816 \p{HorizSpace}
817*/
818/*** GENERATED CODE ***/
819#define is_HORIZWS_high(s) \
29f3ce8f
KW
820( ( 0xBC == ((const U8*)s)[0] ) ? \
821 ( ( ( 0x63 == ((const U8*)s)[1] ) && ( 0x41 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
822: ( 0xCA == ((const U8*)s)[0] ) ? \
823 ( ( 0x41 == ((const U8*)s)[1] ) ? \
8c112bb9 824 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || 0x51 == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f
KW
825 : ( 0x42 == ((const U8*)s)[1] ) ? \
826 ( ( 0x56 == ((const U8*)s)[2] ) ? 3 : 0 ) \
827 : ( ( 0x43 == ((const U8*)s)[1] ) && ( 0x73 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
828: ( ( ( 0xCE == ((const U8*)s)[0] ) && ( 0x41 == ((const U8*)s)[1] ) ) && ( 0x41 == ((const U8*)s)[2] ) ) ? 3 : 0 )
a1b2a50f
KW
829
830/*** GENERATED CODE ***/
831#define is_HORIZWS_cp_high(cp) \
832( 0x1680 == cp || ( 0x1680 < cp && \
e42cde6b 833( inRANGE(cp, 0x2000, 0x200A) || ( 0x200A < cp && \
a1b2a50f
KW
834( 0x202F == cp || ( 0x202F < cp && \
835( 0x205F == cp || 0x3000 == cp ) ) ) ) ) ) )
836
837/*
838 VERTWS: Vertical Whitespace: \v \V
839
840 \p{VertSpace}
841*/
842/*** GENERATED CODE ***/
843#define is_VERTWS_high(s) \
8c112bb9 844( ( ( ( 0xCA == ((const U8*)s)[0] ) && ( 0x42 == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0x49, 0x4A) ) ) ? 3 : 0 )
a1b2a50f
KW
845
846/*** GENERATED CODE ***/
847#define is_VERTWS_cp_high(cp) \
6d2bbfb0 848( inRANGE(cp, 0x2028, 0x2029) )
a1b2a50f
KW
849
850/*
851 XDIGIT: Hexadecimal digits
852
853 \p{XDigit}
854*/
855/*** GENERATED CODE ***/
856#define is_XDIGIT_high(s) \
29f3ce8f 857( ( ( 0xDD == ((const U8*)s)[0] ) && ( 0x73 == ((const U8*)s)[1] ) ) ? ( ( 0x67 == ((const U8*)s)[2] ) ?\
8c112bb9
KW
858 ( ( inRANGE(((const U8*)s)[3], 0x57, 0x59) || inRANGE(((const U8*)s)[3], 0x62, 0x68) ) ? 4 : 0 )\
859 : ( ( inRANGE(((const U8*)s)[2], 0x68, 0x69) ) && ( inRANGE(((const U8*)s)[3], 0x42, 0x47) ) ) ? 4 : 0 ) : 0 )
a1b2a50f
KW
860
861/*** GENERATED CODE ***/
862#define is_XDIGIT_cp_high(cp) \
e42cde6b
KW
863( inRANGE(cp, 0xFF10, 0xFF19) || ( 0xFF19 < cp && \
864( inRANGE(cp, 0xFF21, 0xFF26) || inRANGE(cp, 0xFF41, 0xFF46) ) ) )
a1b2a50f
KW
865
866/*
867 XPERLSPACE: \p{XPerlSpace}
868
869 \p{XPerlSpace}
870*/
871/*** GENERATED CODE ***/
872#define is_XPERLSPACE_high(s) \
29f3ce8f
KW
873( ( 0xBC == ((const U8*)s)[0] ) ? \
874 ( ( ( 0x63 == ((const U8*)s)[1] ) && ( 0x41 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
875: ( 0xCA == ((const U8*)s)[0] ) ? \
876 ( ( 0x41 == ((const U8*)s)[1] ) ? \
8c112bb9 877 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || 0x51 == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f 878 : ( 0x42 == ((const U8*)s)[1] ) ? \
8c112bb9 879 ( ( inRANGE(((const U8*)s)[2], 0x49, 0x4A) || 0x56 == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f
KW
880 : ( ( 0x43 == ((const U8*)s)[1] ) && ( 0x73 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
881: ( ( ( 0xCE == ((const U8*)s)[0] ) && ( 0x41 == ((const U8*)s)[1] ) ) && ( 0x41 == ((const U8*)s)[2] ) ) ? 3 : 0 )
a1b2a50f
KW
882
883/*** GENERATED CODE ***/
884#define is_XPERLSPACE_cp_high(cp) \
885( 0x1680 == cp || ( 0x1680 < cp && \
e42cde6b 886( inRANGE(cp, 0x2000, 0x200A) || ( 0x200A < cp && \
6d2bbfb0 887( inRANGE(cp, 0x2028, 0x2029) || ( 0x2029 < cp && \
a1b2a50f 888( 0x202F == cp || ( 0x202F < cp && \
6d2bbfb0 889( 0x205F == cp || 0x3000 == cp ) ) ) ) ) ) ) ) )
a1b2a50f
KW
890
891/*
a1b2a50f
KW
892 NONCHAR: Non character code points
893
099323b4 894 \p{_Perl_Nchar}
a1b2a50f
KW
895*/
896/*** GENERATED CODE ***/
89d986df 897#define is_NONCHAR_utf8_safe(s,e) \
29f3ce8f
KW
898( ( ( LIKELY((e) > (s)) ) && ( LIKELY(((e) - (s)) >= UTF8SKIP(s)) ) ) ? ( ( 0xDD == ((const U8*)s)[0] ) ?\
899 ( ( 0x73 == ((const U8*)s)[1] ) ? \
900 ( ( 0x55 == ((const U8*)s)[2] ) ? \
8c112bb9 901 ( ( inRANGE(((const U8*)s)[3], 0x57, 0x59) || inRANGE(((const U8*)s)[3], 0x62, 0x6A) || inRANGE(((const U8*)s)[3], 0x70, 0x73) ) ? 4 : 0 )\
29f3ce8f 902 : ( 0x56 == ((const U8*)s)[2] ) ? \
8c112bb9
KW
903 ( ( inRANGE(((const U8*)s)[3], 0x41, 0x4A) || inRANGE(((const U8*)s)[3], 0x51, 0x56) ) ? 4 : 0 )\
904 : ( ( 0x73 == ((const U8*)s)[2] ) && ( inRANGE(((const U8*)s)[3], 0x72, 0x73) ) ) ? 4 : 0 )\
89d986df 905 : 0 ) \
29f3ce8f 906 : ( 0xDF == ((const U8*)s)[0] || 0xEA == ((const U8*)s)[0] || 0xEC == ((const U8*)s)[0] ) ?\
8c112bb9 907 ( ( ( ( 0x73 == ((const U8*)s)[1] ) && ( 0x73 == ((const U8*)s)[2] ) ) && ( inRANGE(((const U8*)s)[3], 0x72, 0x73) ) ) ? 4 : 0 )\
29f3ce8f 908 : ( 0xED == ((const U8*)s)[0] ) ? \
8c112bb9
KW
909 ( ( ( ( ( ((const U8*)s)[1] == 0x4A || ((const U8*)s)[1] == 0x52 || ( ( ((const U8*)s)[1] & 0xFD ) == 0x54 ) || ((const U8*)s)[1] == 0x58 || ((const U8*)s)[1] == 0x62 || ( ( ((const U8*)s)[1] & 0xFD ) == 0x64 ) || ( ( ((const U8*)s)[1] & 0xFD ) == 0x68 ) || ( ( ((const U8*)s)[1] & 0xFD ) == 0x71 ) ) && ( 0x73 == ((const U8*)s)[2] ) ) && ( 0x73 == ((const U8*)s)[3] ) ) && ( inRANGE(((const U8*)s)[4], 0x72, 0x73) ) ) ? 5 : 0 )\
910 : ( ( ( ( ( 0xEE == ((const U8*)s)[0] ) && ( 0x42 == ((const U8*)s)[1] ) ) && ( 0x73 == ((const U8*)s)[2] ) ) && ( 0x73 == ((const U8*)s)[3] ) ) && ( inRANGE(((const U8*)s)[4], 0x72, 0x73) ) ) ? 5 : 0 ) : 0 )
a1b2a50f
KW
911
912/*
21cb232c 913 SURROGATE: Surrogate code points
a1b2a50f 914
099323b4 915 \p{_Perl_Surrogate}
a1b2a50f
KW
916*/
917/*** GENERATED CODE ***/
89d986df 918#define is_SURROGATE_utf8_safe(s,e) \
8c112bb9 919( ( ( ( ( ( ((e) - (s)) >= 4 ) && ( 0xDD == ((const U8*)s)[0] ) ) && ( inRANGE(((const U8*)s)[1], 0x65, 0x66) ) ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x73) ) ) && ( inRANGE(((const U8*)s)[3], 0x41, 0x4A) || inRANGE(((const U8*)s)[3], 0x51, 0x59) || inRANGE(((const U8*)s)[3], 0x62, 0x6A) || inRANGE(((const U8*)s)[3], 0x70, 0x73) ) ) ? 4 : 0 )
a1b2a50f
KW
920
921/*
a1b2a50f
KW
922 QUOTEMETA: Meta-characters that \Q should quote
923
924 \p{_Perl_Quotemeta}
925*/
926/*** GENERATED CODE ***/
e42cde6b
KW
927#define is_QUOTEMETA_high(s) \
928( ( 0xB1 == ((const U8*)s)[0] ) ? \
929 ( ( 0x56 == ((const U8*)s)[1] ) ? 2 : 0 ) \
930: ( 0xB8 == ((const U8*)s)[0] ) ? \
931 ( ( ( 0x57 == ((const U8*)s)[1] ) && ( 0x70 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
932: ( 0xBB == ((const U8*)s)[0] ) ? \
933 ( ( 0x51 == ((const U8*)s)[1] ) ? \
934 ( ( 0x73 == ((const U8*)s)[2] ) ? 3 : 0 ) \
935 : ( ( 0x52 == ((const U8*)s)[1] ) && ( 0x41 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
936: ( 0xBC == ((const U8*)s)[0] ) ? \
937 ( ( 0x63 == ((const U8*)s)[1] ) ? \
938 ( ( 0x41 == ((const U8*)s)[2] ) ? 3 : 0 ) \
8c112bb9 939 : ( ( 0x71 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x63, 0x64) ) ) ? 3 : 0 )\
e42cde6b 940: ( 0xBE == ((const U8*)s)[0] ) ? \
8c112bb9 941 ( ( ( 0x41 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x52, 0x55) ) ) ? 3 : 0 )\
e42cde6b 942: ( 0xCA == ((const U8*)s)[0] ) ? \
8c112bb9
KW
943 ( ( 0x41 == ((const U8*)s)[1] || inRANGE(((const U8*)s)[1], 0x54, 0x59) || inRANGE(((const U8*)s)[1], 0x62, 0x6A) || inRANGE(((const U8*)s)[1], 0x70, 0x73) ) ?\
944 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x73) ) ? 3 : 0 )\
29f3ce8f 945 : ( 0x42 == ((const U8*)s)[1] ) ? \
8c112bb9 946 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x72) ) ? 3 : 0 )\
29f3ce8f 947 : ( 0x43 == ((const U8*)s)[1] ) ? \
8c112bb9 948 ( ( inRANGE(((const U8*)s)[2], 0x42, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || 0x62 == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x64, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x73) ) ? 3 : 0 )\
29f3ce8f 949 : ( 0x44 == ((const U8*)s)[1] ) ? \
8c112bb9
KW
950 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x56) ) ? 3 : 0 )\
951 : ( ( 0x53 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x57, 0x59) || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x73) ) ) ? 3 : 0 )\
e42cde6b 952: ( 0xCB == ((const U8*)s)[0] ) ? \
8c112bb9
KW
953 ( ( inRANGE(((const U8*)s)[1], 0x41, 0x43) || inRANGE(((const U8*)s)[1], 0x49, 0x4A) || inRANGE(((const U8*)s)[1], 0x51, 0x59) || inRANGE(((const U8*)s)[1], 0x62, 0x69) || inRANGE(((const U8*)s)[1], 0x71, 0x73) ) ?\
954 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x73) ) ? 3 : 0 )\
29f3ce8f 955 : ( 0x6A == ((const U8*)s)[1] ) ? \
8c112bb9
KW
956 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || inRANGE(((const U8*)s)[2], 0x62, 0x64) ) ? 3 : 0 )\
957 : ( ( 0x70 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x63, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x73) ) ) ? 3 : 0 )\
29f3ce8f 958: ( 0xCC == ((const U8*)s)[0] ) ? \
8c112bb9 959 ( ( ( inRANGE(((const U8*)s)[1], 0x41, 0x4A) || inRANGE(((const U8*)s)[1], 0x51, 0x59) || inRANGE(((const U8*)s)[1], 0x62, 0x6A) || inRANGE(((const U8*)s)[1], 0x70, 0x73) ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x73) ) ) ? 3 : 0 )\
29f3ce8f 960: ( 0xCD == ((const U8*)s)[0] ) ? \
8c112bb9 961 ( ( ( inRANGE(((const U8*)s)[1], 0x57, 0x59) || 0x62 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x73) ) ) ? 3 : 0 )\
29f3ce8f
KW
962: ( 0xCE == ((const U8*)s)[0] ) ? \
963 ( ( 0x41 == ((const U8*)s)[1] ) ? \
8c112bb9 964 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x44) || inRANGE(((const U8*)s)[2], 0x49, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x73) ) ? 3 : 0 )\
29f3ce8f
KW
965 : ( 0x42 == ((const U8*)s)[1] ) ? \
966 ( ( 0x41 == ((const U8*)s)[2] || 0x57 == ((const U8*)s)[2] ) ? 3 : 0 )\
967 : ( ( 0x52 == ((const U8*)s)[1] ) && ( 0x45 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
968: ( 0xDD == ((const U8*)s)[0] ) ? \
969 ( ( 0x73 == ((const U8*)s)[1] ) ? \
970 ( ( 0x4A == ((const U8*)s)[2] ) ? \
8c112bb9 971 ( ( inRANGE(((const U8*)s)[3], 0x72, 0x73) ) ? 4 : 0 ) \
29f3ce8f 972 : ( 0x57 == ((const U8*)s)[2] ) ? \
8c112bb9 973 ( ( inRANGE(((const U8*)s)[3], 0x41, 0x4A) || inRANGE(((const U8*)s)[3], 0x51, 0x56) ) ? 4 : 0 )\
29f3ce8f 974 : ( 0x59 == ((const U8*)s)[2] ) ? \
8c112bb9 975 ( ( inRANGE(((const U8*)s)[3], 0x46, 0x47) ) ? 4 : 0 ) \
29f3ce8f
KW
976 : ( 0x66 == ((const U8*)s)[2] ) ? \
977 ( ( 0x73 == ((const U8*)s)[3] ) ? 4 : 0 ) \
978 : ( 0x71 == ((const U8*)s)[2] ) ? \
979 ( ( 0x41 == ((const U8*)s)[3] ) ? 4 : 0 ) \
8c112bb9 980 : ( ( 0x73 == ((const U8*)s)[2] ) && ( inRANGE(((const U8*)s)[3], 0x57, 0x59) || inRANGE(((const U8*)s)[3], 0x62, 0x67) ) ) ? 4 : 0 )\
a1b2a50f 981 : 0 ) \
29f3ce8f
KW
982: ( 0xDF == ((const U8*)s)[0] ) ? \
983 ( ( 0x56 == ((const U8*)s)[1] ) ? \
8c112bb9
KW
984 ( ( ( 0x46 == ((const U8*)s)[2] ) && ( inRANGE(((const U8*)s)[3], 0x41, 0x44) ) ) ? 4 : 0 )\
985 : ( ( ( 0x63 == ((const U8*)s)[1] ) && ( 0x52 == ((const U8*)s)[2] ) ) && ( inRANGE(((const U8*)s)[3], 0x62, 0x69) ) ) ? 4 : 0 )\
986: ( ( ( ( ( 0xED == ((const U8*)s)[0] ) && ( 0x70 == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x44) ) ) && ( inRANGE(((const U8*)s)[3], 0x41, 0x4A) || inRANGE(((const U8*)s)[3], 0x51, 0x59) || inRANGE(((const U8*)s)[3], 0x62, 0x6A) || inRANGE(((const U8*)s)[3], 0x70, 0x73) ) ) && ( inRANGE(((const U8*)s)[4], 0x41, 0x4A) || inRANGE(((const U8*)s)[4], 0x51, 0x59) || inRANGE(((const U8*)s)[4], 0x62, 0x6A) || inRANGE(((const U8*)s)[4], 0x70, 0x73) ) ) ? 5 : 0 )
a1b2a50f
KW
987
988/*
989 MULTI_CHAR_FOLD: multi-char strings that are folded to by a single character
990
42d7c910 991 &regcharclass_multi_char_folds::multi_char_folds('u', 'a')
a1b2a50f
KW
992*/
993/*** GENERATED CODE ***/
994#define is_MULTI_CHAR_FOLD_utf8_safe_part0(s,e) \
114fc8b6 995( ( ( 0xB0 == ((const U8*)s)[1] ) && ( 0x58 == ((const U8*)s)[2] ) ) ? 3 : 0 )
a1b2a50f
KW
996
997
998/*** GENERATED CODE ***/
999#define is_MULTI_CHAR_FOLD_utf8_safe_part1(s,e) \
114fc8b6 1000( ( ( ((const U8*)s)[0] & 0xBF ) == 'i' ) ? \
29f3ce8f
KW
1001 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x48 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1002 : ( 0x8F == ((const U8*)s)[0] ) ? \
114fc8b6
KW
1003 ( ( 0x73 == ((const U8*)s)[1] ) ? \
1004 ( ( 0x8F == ((const U8*)s)[2] ) ? \
1005 ( ( 0x73 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1006 : ( ( ((const U8*)s)[2] & 0xBE ) == 's' ) ? 3 : 0 ) \
1007 : 0 ) \
cf9d46fd 1008 : ( ( ((const U8*)s)[0] & 0xBF ) == 'j' ) ? \
29f3ce8f 1009 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x53 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1010 : ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) ? \
114fc8b6
KW
1011 ( ( 0x8F == ((const U8*)s)[1] ) ? \
1012 ( ( 0x73 == ((const U8*)s)[2] ) ? 3 : 0 ) \
1013 : ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ? 2 : 0 ) \
cf9d46fd 1014 : ( ( ((const U8*)s)[0] & 0xBF ) == 't' ) ? \
29f3ce8f 1015 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x49 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1016 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ?\
29f3ce8f
KW
1017 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x51 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1018 : ( 0xAB == ((const U8*)s)[0] ) ? \
cf9d46fd 1019 ( ( ( 0x70 == ((const U8*)s)[1] ) && ( ( ((const U8*)s)[2] & 0xBF ) == 'n' ) ) ? 3 : 0 )\
29f3ce8f
KW
1020 : ( 0xB4 == ((const U8*)s)[0] ) ? \
1021 ( ( 0x53 == ((const U8*)s)[1] || 0x55 == ((const U8*)s)[1] ) ? \
1022 ( ( ( 0xB4 == ((const U8*)s)[2] ) && ( 0x68 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1023 : ( 0x58 == ((const U8*)s)[1] || 0x66 == ((const U8*)s)[1] ) ? \
1024 ( ( 0xB1 == ((const U8*)s)[2] ) ? \
1025 ( ( 0x43 == ((const U8*)s)[3] ) ? \
1026 ( ( ( 0xB4 == ((const U8*)s)[4] ) && ( 0x68 == ((const U8*)s)[5] ) ) ? 6 : 4 )\
1027 : 0 ) \
1028 : ( ( 0xB4 == ((const U8*)s)[2] ) && ( 0x68 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1029 : ( 0x68 == ((const U8*)s)[1] ) ? \
1030 ( ( 0xAF == ((const U8*)s)[2] ) ? \
1031 ( ( 0x49 == ((const U8*)s)[3] ) ? \
1032 ( ( 0xAF == ((const U8*)s)[4] ) ? \
8c112bb9 1033 ( ( inRANGE(((const U8*)s)[5], 0x41, 0x42) ) ? 6 : 0 )\
29f3ce8f
KW
1034 : ( ( 0xB1 == ((const U8*)s)[4] ) && ( 0x43 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
1035 : 0 ) \
1036 : ( ( 0xB1 == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1037 : 0 ) \
1038 : ( 0xB5 == ((const U8*)s)[0] ) ? \
1039 ( ( 0x42 == ((const U8*)s)[1] ) ? \
1040 ( ( ( 0xAF == ((const U8*)s)[2] ) && ( 0x62 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1041 : ( 0x46 == ((const U8*)s)[1] ) ? \
1042 ( ( 0xAF == ((const U8*)s)[2] ) ? \
1043 ( ( 0x49 == ((const U8*)s)[3] ) ? \
1044 ( ( 0xAF == ((const U8*)s)[4] ) ? \
8c112bb9 1045 ( ( inRANGE(((const U8*)s)[5], 0x41, 0x42) ) ? 6 : 0 )\
29f3ce8f
KW
1046 : ( ( 0xB1 == ((const U8*)s)[4] ) && ( 0x43 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
1047 : ( 0x62 == ((const U8*)s)[3] ) ? \
1048 ( ( 0xAF == ((const U8*)s)[4] ) ? \
8c112bb9 1049 ( ( inRANGE(((const U8*)s)[5], 0x41, 0x42) ) ? 6 : 4 )\
29f3ce8f
KW
1050 : ( ( 0xB1 == ((const U8*)s)[4] ) && ( 0x43 == ((const U8*)s)[5] ) ) ? 6 : 4 )\
1051 : 0 ) \
1052 : ( ( 0xB1 == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1053 : ( 0x4A == ((const U8*)s)[1] ) ? \
1054 ( ( 0xB1 == ((const U8*)s)[2] ) ? \
1055 ( ( 0x43 == ((const U8*)s)[3] ) ? \
1056 ( ( ( 0xB4 == ((const U8*)s)[4] ) && ( 0x68 == ((const U8*)s)[5] ) ) ? 6 : 4 )\
1057 : 0 ) \
1058 : ( ( 0xB4 == ((const U8*)s)[2] ) && ( 0x68 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1059 : ( ( ( 0x55 == ((const U8*)s)[1] ) && ( 0xB4 == ((const U8*)s)[2] ) ) && ( 0x68 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1060 : ( 0xB8 == ((const U8*)s)[0] ) ? \
1061 ( ( 0x52 == ((const U8*)s)[1] ) ? \
1062 ( ( 0x46 == ((const U8*)s)[2] ) ? \
1063 ( ( ( ( 0xB8 == ((const U8*)s)[3] ) && ( 0x53 == ((const U8*)s)[4] ) ) && ( 0x43 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
1064 : ( 0x63 == ((const U8*)s)[2] ) ? \
1065 ( ( ( ( 0xB8 == ((const U8*)s)[3] ) && ( 0x52 == ((const U8*)s)[4] ) ) && ( 0x46 == ((const U8*)s)[5] || 0x52 == ((const U8*)s)[5] || 0x54 == ((const U8*)s)[5] || 0x65 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
1066 : ( ( ( ( 0x72 == ((const U8*)s)[2] ) && ( 0xB8 == ((const U8*)s)[3] ) ) && ( 0x52 == ((const U8*)s)[4] ) ) && ( 0x65 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
1067 : 0 ) \
1068 : ( 0xBF == ((const U8*)s)[0] ) ? \
8c112bb9
KW
1069 ( ( inRANGE(((const U8*)s)[1], 0x67, 0x68) ) ? \
1070 ( ( ( ( inRANGE(((const U8*)s)[2], 0x41, 0x48) ) && ( 0xB4 == ((const U8*)s)[3] ) ) && ( 0x68 == ((const U8*)s)[4] ) ) ? 5 : 0 )\
1071 : ( ( ( ( 0x6A == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x48) || 0x57 == ((const U8*)s)[2] || 0x63 == ((const U8*)s)[2] || 0x70 == ((const U8*)s)[2] ) ) && ( 0xB4 == ((const U8*)s)[3] ) ) && ( 0x68 == ((const U8*)s)[4] ) ) ? 5 : 0 )\
29f3ce8f
KW
1072 : 0 )
1073
1074
1075/*** GENERATED CODE ***/
1076#define is_MULTI_CHAR_FOLD_utf8_safe_part2(s,e) \
cf9d46fd 1077( ( ( ((const U8*)s)[0] & 0xBF ) == 'a' ) ? \
29f3ce8f 1078 ( ( ( 0xAB == ((const U8*)s)[1] ) && ( 0x72 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd
KW
1079 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1080 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? \
1081 ( ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ? 3 : 2 )\
1082 : ( ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1083 : ( ( ((const U8*)s)[0] & 0xBF ) == 'h' ) ? \
29f3ce8f 1084 ( ( ( 0xB0 == ((const U8*)s)[1] ) && ( 0x58 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1085 : ( ( ((const U8*)s)[0] & 0xBF ) == 'i' ) ? \
29f3ce8f
KW
1086 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x48 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1087 : ( 0x8F == ((const U8*)s)[0] ) ? \
114fc8b6
KW
1088 ( ( 0x73 == ((const U8*)s)[1] ) ? \
1089 ( ( 0x8F == ((const U8*)s)[2] ) ? \
1090 ( ( 0x73 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1091 : ( ( ((const U8*)s)[2] & 0xBE ) == 's' ) ? 3 : 0 ) \
1092 : 0 ) \
cf9d46fd 1093 : ( ( ((const U8*)s)[0] & 0xBF ) == 'j' ) ? \
29f3ce8f 1094 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x53 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1095 : ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) ? \
114fc8b6
KW
1096 ( ( 0x8F == ((const U8*)s)[1] ) ? \
1097 ( ( 0x73 == ((const U8*)s)[2] ) ? 3 : 0 ) \
1098 : ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ? 2 : 0 ) \
cf9d46fd 1099 : ( ( ((const U8*)s)[0] & 0xBF ) == 't' ) ? \
29f3ce8f 1100 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x49 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1101 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ?\
29f3ce8f
KW
1102 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x51 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1103 : ( 0xAB == ((const U8*)s)[0] ) ? \
cf9d46fd 1104 ( ( ( 0x70 == ((const U8*)s)[1] ) && ( ( ((const U8*)s)[2] & 0xBF ) == 'n' ) ) ? 3 : 0 )\
29f3ce8f
KW
1105 : ( 0xB4 == ((const U8*)s)[0] ) ? \
1106 ( ( 0x53 == ((const U8*)s)[1] || 0x55 == ((const U8*)s)[1] ) ? \
1107 ( ( ( 0xB4 == ((const U8*)s)[2] ) && ( 0x68 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1108 : ( 0x58 == ((const U8*)s)[1] || 0x66 == ((const U8*)s)[1] ) ? \
1109 ( ( 0xB1 == ((const U8*)s)[2] ) ? \
1110 ( ( 0x43 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1111 : ( ( 0xB4 == ((const U8*)s)[2] ) && ( 0x68 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1112 : ( ( ( 0x68 == ((const U8*)s)[1] ) && ( 0xB1 == ((const U8*)s)[2] ) ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1113 : ( 0xB5 == ((const U8*)s)[0] ) ? \
1114 ( ( 0x42 == ((const U8*)s)[1] ) ? \
1115 ( ( ( 0xAF == ((const U8*)s)[2] ) && ( 0x62 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1116 : ( 0x46 == ((const U8*)s)[1] ) ? \
1117 ( ( 0xAF == ((const U8*)s)[2] ) ? \
1118 ( ( 0x62 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1119 : ( ( 0xB1 == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1120 : ( 0x4A == ((const U8*)s)[1] ) ? \
1121 ( ( 0xB1 == ((const U8*)s)[2] ) ? \
1122 ( ( 0x43 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1123 : ( ( 0xB4 == ((const U8*)s)[2] ) && ( 0x68 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1124 : ( ( ( 0x55 == ((const U8*)s)[1] ) && ( 0xB4 == ((const U8*)s)[2] ) ) && ( 0x68 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1125 : ( 0xBF == ((const U8*)s)[0] ) ? \
8c112bb9
KW
1126 ( ( inRANGE(((const U8*)s)[1], 0x67, 0x68) ) ? \
1127 ( ( ( ( inRANGE(((const U8*)s)[2], 0x41, 0x48) ) && ( 0xB4 == ((const U8*)s)[3] ) ) && ( 0x68 == ((const U8*)s)[4] ) ) ? 5 : 0 )\
1128 : ( ( ( ( 0x6A == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x48) || 0x57 == ((const U8*)s)[2] || 0x63 == ((const U8*)s)[2] || 0x70 == ((const U8*)s)[2] ) ) && ( 0xB4 == ((const U8*)s)[3] ) ) && ( 0x68 == ((const U8*)s)[4] ) ) ? 5 : 0 )\
29f3ce8f
KW
1129 : 0 )
1130
1131
1132/*** GENERATED CODE ***/
1133#define is_MULTI_CHAR_FOLD_utf8_safe_part3(s,e) \
a1b2a50f 1134( ((e)-(s) > 3) ? \
cf9d46fd 1135 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'a' ) ? \
29f3ce8f 1136 ( ( ( 0xAB == ((const U8*)s)[1] ) && ( 0x72 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd
KW
1137 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1138 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? \
1139 ( ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ? 3 : 2 )\
1140 : ( ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1141 : ( ( ((const U8*)s)[0] & 0xBF ) == 'h' ) ? \
29f3ce8f 1142 ( ( ( 0xB0 == ((const U8*)s)[1] ) && ( 0x58 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1143 : ( ( ((const U8*)s)[0] & 0xBF ) == 'i' ) ? \
29f3ce8f
KW
1144 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x48 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1145 : ( 0x8F == ((const U8*)s)[0] ) ? \
114fc8b6
KW
1146 ( ( 0x73 == ((const U8*)s)[1] ) ? \
1147 ( ( 0x8F == ((const U8*)s)[2] ) ? \
1148 ( ( 0x73 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1149 : ( ( ((const U8*)s)[2] & 0xBE ) == 's' ) ? 3 : 0 ) \
1150 : 0 ) \
cf9d46fd 1151 : ( ( ((const U8*)s)[0] & 0xBF ) == 'j' ) ? \
29f3ce8f 1152 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x53 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1153 : ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) ? \
114fc8b6
KW
1154 ( ( 0x8F == ((const U8*)s)[1] ) ? \
1155 ( ( 0x73 == ((const U8*)s)[2] ) ? 3 : 0 ) \
1156 : ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ? 2 : 0 ) \
cf9d46fd 1157 : ( ( ((const U8*)s)[0] & 0xBF ) == 't' ) ? \
29f3ce8f 1158 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x49 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1159 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ?\
29f3ce8f
KW
1160 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x51 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1161 : ( 0xAB == ((const U8*)s)[0] ) ? \
cf9d46fd 1162 ( ( ( 0x70 == ((const U8*)s)[1] ) && ( ( ((const U8*)s)[2] & 0xBF ) == 'n' ) ) ? 3 : 0 )\
29f3ce8f
KW
1163 : ( 0xB4 == ((const U8*)s)[0] ) ? \
1164 ( ( 0x53 == ((const U8*)s)[1] || 0x55 == ((const U8*)s)[1] ) ? \
1165 ( ( ( 0xB4 == ((const U8*)s)[2] ) && ( 0x68 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1166 : ( 0x58 == ((const U8*)s)[1] || 0x66 == ((const U8*)s)[1] ) ? \
1167 ( ( 0xB1 == ((const U8*)s)[2] ) ? \
1168 ( ( 0x43 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1169 : ( ( 0xB4 == ((const U8*)s)[2] ) && ( 0x68 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1170 : ( ( ( 0x68 == ((const U8*)s)[1] ) && ( 0xB1 == ((const U8*)s)[2] ) ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1171 : ( 0xB5 == ((const U8*)s)[0] ) ? \
1172 ( ( 0x42 == ((const U8*)s)[1] ) ? \
1173 ( ( ( 0xAF == ((const U8*)s)[2] ) && ( 0x62 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1174 : ( 0x46 == ((const U8*)s)[1] ) ? \
1175 ( ( 0xAF == ((const U8*)s)[2] ) ? \
1176 ( ( 0x62 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1177 : ( ( 0xB1 == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1178 : ( 0x4A == ((const U8*)s)[1] ) ? \
1179 ( ( 0xB1 == ((const U8*)s)[2] ) ? \
1180 ( ( 0x43 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1181 : ( ( 0xB4 == ((const U8*)s)[2] ) && ( 0x68 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1182 : ( ( ( 0x55 == ((const U8*)s)[1] ) && ( 0xB4 == ((const U8*)s)[2] ) ) && ( 0x68 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
a1b2a50f
KW
1183 : 0 ) \
1184: ((e)-(s) > 2) ? \
cf9d46fd 1185 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'a' ) ? \
29f3ce8f 1186 ( ( ( 0xAB == ((const U8*)s)[1] ) && ( 0x72 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd
KW
1187 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1188 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? \
1189 ( ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ? 3 : 2 )\
1190 : ( ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1191 : ( ( ((const U8*)s)[0] & 0xBF ) == 'h' ) ? \
29f3ce8f 1192 ( ( ( 0xB0 == ((const U8*)s)[1] ) && ( 0x58 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1193 : ( ( ((const U8*)s)[0] & 0xBF ) == 'i' ) ? \
29f3ce8f 1194 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x48 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
114fc8b6
KW
1195 : ( 0x8F == ((const U8*)s)[0] ) ? \
1196 ( ( ( 0x73 == ((const U8*)s)[1] ) && ( ( ((const U8*)s)[2] & 0xBE ) == 's' ) ) ? 3 : 0 )\
cf9d46fd 1197 : ( ( ((const U8*)s)[0] & 0xBF ) == 'j' ) ? \
29f3ce8f 1198 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x53 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1199 : ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) ? \
114fc8b6
KW
1200 ( ( 0x8F == ((const U8*)s)[1] ) ? \
1201 ( ( 0x73 == ((const U8*)s)[2] ) ? 3 : 0 ) \
1202 : ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ? 2 : 0 ) \
cf9d46fd 1203 : ( ( ((const U8*)s)[0] & 0xBF ) == 't' ) ? \
29f3ce8f 1204 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x49 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1205 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ?\
29f3ce8f 1206 ( ( ( 0xAF == ((const U8*)s)[1] ) && ( 0x51 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1207 : ( ( ( 0xAB == ((const U8*)s)[0] ) && ( 0x70 == ((const U8*)s)[1] ) ) && ( ( ((const U8*)s)[2] & 0xBF ) == 'n' ) ) ? 3 : 0 )\
a1b2a50f 1208: ((e)-(s) > 1) ? \
cf9d46fd
KW
1209 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1210 ( ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1211 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) && ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ) ? 2 : 0 )\
a1b2a50f
KW
1212: 0 )
1213
1214
1215/*** GENERATED CODE ***/
1216#define is_MULTI_CHAR_FOLD_utf8_safe(s,e) \
1217( ((e)-(s) > 5) ? \
cf9d46fd 1218 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'a' ) ? \
29f3ce8f 1219 ( ( ( 0xAB == ((const U8*)s)[1] ) && ( 0x72 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
114fc8b6
KW
1220 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1221 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? \
1222 ( ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ? 3 : 2 )\
1223 : ( ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1224 : ( ( ((const U8*)s)[0] & 0xBF ) == 'h' ) ? is_MULTI_CHAR_FOLD_utf8_safe_part0(s,e) : is_MULTI_CHAR_FOLD_utf8_safe_part1(s,e) )\
29f3ce8f 1225: ((e)-(s) > 4) ? is_MULTI_CHAR_FOLD_utf8_safe_part2(s,e) : is_MULTI_CHAR_FOLD_utf8_safe_part3(s,e) )
a1b2a50f
KW
1226
1227/*
1228 MULTI_CHAR_FOLD: multi-char strings that are folded to by a single character
1229
42d7c910 1230 &regcharclass_multi_char_folds::multi_char_folds('l', 'a')
a1b2a50f
KW
1231*/
1232/*** GENERATED CODE ***/
1233#define is_MULTI_CHAR_FOLD_latin1_safe(s,e) \
1234( ((e)-(s) > 2) ? \
fdc26d94
KW
1235 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1236 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? \
1237 ( ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ? 3 : 2 )\
1238 : ( ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1239 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) && ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ) ? 2 : 0 )\
a1b2a50f 1240: ((e)-(s) > 1) ? \
fdc26d94
KW
1241 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1242 ( ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1243 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) && ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ) ? 2 : 0 )\
a1b2a50f
KW
1244: 0 )
1245
1246/*
42d7c910
KW
1247 THREE_CHAR_FOLD: A three-character multi-char fold
1248
1249 &regcharclass_multi_char_folds::multi_char_folds('u', '3')
1250*/
1251/*** GENERATED CODE ***/
1252#define is_THREE_CHAR_FOLD_utf8_safe(s,e) \
1253( ((e)-(s) > 5) ? \
cf9d46fd
KW
1254 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1255 ( ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) && ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ) ? 3 : 0 )\
42d7c910
KW
1256 : ( 0xB4 == ((const U8*)s)[0] ) ? \
1257 ( ( 0x58 == ((const U8*)s)[1] || 0x66 == ((const U8*)s)[1] ) ? \
1258 ( ( ( ( ( 0xB1 == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) && ( 0xB4 == ((const U8*)s)[4] ) ) && ( 0x68 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
1259 : ( ( ( 0x68 == ((const U8*)s)[1] ) && ( 0xAF == ((const U8*)s)[2] ) ) && ( 0x49 == ((const U8*)s)[3] ) ) ? ( ( 0xAF == ((const U8*)s)[4] ) ?\
8c112bb9 1260 ( ( inRANGE(((const U8*)s)[5], 0x41, 0x42) ) ? 6 : 0 )\
42d7c910
KW
1261 : ( ( 0xB1 == ((const U8*)s)[4] ) && ( 0x43 == ((const U8*)s)[5] ) ) ? 6 : 0 ) : 0 )\
1262 : ( 0xB5 == ((const U8*)s)[0] ) ? \
1263 ( ( 0x46 == ((const U8*)s)[1] ) ? \
1264 ( ( ( 0xAF == ((const U8*)s)[2] ) && ( 0x49 == ((const U8*)s)[3] || 0x62 == ((const U8*)s)[3] ) ) ? ( ( 0xAF == ((const U8*)s)[4] ) ?\
8c112bb9 1265 ( ( inRANGE(((const U8*)s)[5], 0x41, 0x42) ) ? 6 : 0 )\
42d7c910
KW
1266 : ( ( 0xB1 == ((const U8*)s)[4] ) && ( 0x43 == ((const U8*)s)[5] ) ) ? 6 : 0 ) : 0 )\
1267 : ( ( ( ( ( 0x4A == ((const U8*)s)[1] ) && ( 0xB1 == ((const U8*)s)[2] ) ) && ( 0x43 == ((const U8*)s)[3] ) ) && ( 0xB4 == ((const U8*)s)[4] ) ) && ( 0x68 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
1268 : 0 ) \
cf9d46fd 1269: ( ( ( ((e)-(s) > 2) && ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ) && ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ) && ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ) ? 3 : 0 )
42d7c910
KW
1270
1271/*
1272 THREE_CHAR_FOLD: A three-character multi-char fold
1273
1274 &regcharclass_multi_char_folds::multi_char_folds('l', '3')
1275*/
1276/*** GENERATED CODE ***/
1277#define is_THREE_CHAR_FOLD_latin1_safe(s,e) \
fdc26d94 1278( ( ( ( ( ((e) - (s)) >= 3 ) && ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ) && ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ) && ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ) ? 3 : 0 )
42d7c910
KW
1279
1280/*
1281 THREE_CHAR_FOLD_HEAD: The first two of three-character multi-char folds
1282
1283 &regcharclass_multi_char_folds::multi_char_folds('u', 'h')
1284*/
1285/*** GENERATED CODE ***/
1286#define is_THREE_CHAR_FOLD_HEAD_utf8_safe(s,e) \
1287( ((e)-(s) > 3) ? \
cf9d46fd
KW
1288 ( ( ( ( ((const U8*)s)[0] & 0xAF ) == 'a' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 'h' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 's' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ? 1\
1289 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1290 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? 2 : 1 ) \
114fc8b6
KW
1291 : ( 0x8F == ((const U8*)s)[0] ) ? \
1292 ( ( 0x73 == ((const U8*)s)[1] ) ? 2 : 0 ) \
42d7c910
KW
1293 : ( 0xAB == ((const U8*)s)[0] ) ? \
1294 ( ( 0x70 == ((const U8*)s)[1] ) ? 2 : 0 ) \
1295 : ( 0xB4 == ((const U8*)s)[0] ) ? \
1296 ( ( 0x53 == ((const U8*)s)[1] || 0x55 == ((const U8*)s)[1] ) ? 2 \
1297 : ( 0x58 == ((const U8*)s)[1] || 0x66 == ((const U8*)s)[1] ) ? \
1298 ( ( ( 0xB1 == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 2 )\
1299 : ( 0x68 == ((const U8*)s)[1] ) ? \
1300 ( ( ( 0xAF == ((const U8*)s)[2] ) && ( 0x49 == ((const U8*)s)[3] ) ) ? 4 : 2 )\
1301 : 0 ) \
1302 : ( 0xB5 == ((const U8*)s)[0] ) ? \
1303 ( ( 0x42 == ((const U8*)s)[1] || 0x55 == ((const U8*)s)[1] ) ? 2 \
1304 : ( 0x46 == ((const U8*)s)[1] ) ? \
1305 ( ( ( 0xAF == ((const U8*)s)[2] ) && ( 0x49 == ((const U8*)s)[3] || 0x62 == ((const U8*)s)[3] ) ) ? 4 : 2 )\
1306 : ( 0x4A == ((const U8*)s)[1] ) ? \
1307 ( ( ( 0xB1 == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 2 )\
1308 : 0 ) \
1309 : ( 0xB8 == ((const U8*)s)[0] ) ? \
1310 ( ( ( 0x52 == ((const U8*)s)[1] ) && ( 0x46 == ((const U8*)s)[2] || 0x63 == ((const U8*)s)[2] || 0x72 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1311 : ( 0xBF == ((const U8*)s)[0] ) ? \
8c112bb9
KW
1312 ( ( inRANGE(((const U8*)s)[1], 0x67, 0x68) ) ? \
1313 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x48) ) ? 3 : 0 ) \
1314 : ( ( 0x6A == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x48) || 0x57 == ((const U8*)s)[2] || 0x63 == ((const U8*)s)[2] || 0x70 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
42d7c910
KW
1315 : 0 ) \
1316: ((e)-(s) > 2) ? \
cf9d46fd
KW
1317 ( ( ( ( ((const U8*)s)[0] & 0xAF ) == 'a' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 'h' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 's' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ? 1\
1318 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1319 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? 2 : 1 ) \
114fc8b6
KW
1320 : ( 0x8F == ((const U8*)s)[0] ) ? \
1321 ( ( 0x73 == ((const U8*)s)[1] ) ? 2 : 0 ) \
42d7c910
KW
1322 : ( 0xAB == ((const U8*)s)[0] ) ? \
1323 ( ( 0x70 == ((const U8*)s)[1] ) ? 2 : 0 ) \
1324 : ( 0xB4 == ((const U8*)s)[0] ) ? \
1325 ( ( 0x53 == ((const U8*)s)[1] || 0x55 == ((const U8*)s)[1] || 0x58 == ((const U8*)s)[1] || 0x66 == ((const U8*)s)[1] || 0x68 == ((const U8*)s)[1] ) ? 2 : 0 )\
1326 : ( 0xB5 == ((const U8*)s)[0] ) ? \
1327 ( ( ( ( ((const U8*)s)[1] & 0xFB ) == 0x42 ) || ((const U8*)s)[1] == 0x4A || ((const U8*)s)[1] == 0x55 ) ? 2 : 0 )\
1328 : ( 0xB8 == ((const U8*)s)[0] ) ? \
1329 ( ( ( 0x52 == ((const U8*)s)[1] ) && ( 0x46 == ((const U8*)s)[2] || 0x63 == ((const U8*)s)[2] || 0x72 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1330 : ( 0xBF == ((const U8*)s)[0] ) ? \
8c112bb9
KW
1331 ( ( inRANGE(((const U8*)s)[1], 0x67, 0x68) ) ? \
1332 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x48) ) ? 3 : 0 ) \
1333 : ( ( 0x6A == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x48) || 0x57 == ((const U8*)s)[2] || 0x63 == ((const U8*)s)[2] || 0x70 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
42d7c910
KW
1334 : 0 ) \
1335: ((e)-(s) > 1) ? \
cf9d46fd
KW
1336 ( ( ( ( ((const U8*)s)[0] & 0xAF ) == 'a' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 'h' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 's' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ? 1\
1337 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1338 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? 2 : 1 ) \
114fc8b6
KW
1339 : ( 0x8F == ((const U8*)s)[0] ) ? \
1340 ( ( 0x73 == ((const U8*)s)[1] ) ? 2 : 0 ) \
42d7c910
KW
1341 : ( 0xAB == ((const U8*)s)[0] ) ? \
1342 ( ( 0x70 == ((const U8*)s)[1] ) ? 2 : 0 ) \
1343 : ( 0xB4 == ((const U8*)s)[0] ) ? \
1344 ( ( 0x53 == ((const U8*)s)[1] || 0x55 == ((const U8*)s)[1] || 0x58 == ((const U8*)s)[1] || 0x66 == ((const U8*)s)[1] || 0x68 == ((const U8*)s)[1] ) ? 2 : 0 )\
1345 : ( ( 0xB5 == ((const U8*)s)[0] ) && ( ( ( ((const U8*)s)[1] & 0xFB ) == 0x42 ) || ((const U8*)s)[1] == 0x4A || ((const U8*)s)[1] == 0x55 ) ) ? 2 : 0 )\
1346: ((e)-(s) > 0) ? \
cf9d46fd 1347 ( ( ( ((const U8*)s)[0] & 0xAF ) == 'a' ) || ( ( ((const U8*)s)[0] & 0x9F ) == 'f' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 'h' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 's' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) )\
42d7c910
KW
1348: 0 )
1349
1350/*
1351 THREE_CHAR_FOLD_HEAD: The first two of three-character multi-char folds
1352
1353 &regcharclass_multi_char_folds::multi_char_folds('l', 'h')
1354*/
1355/*** GENERATED CODE ***/
1356#define is_THREE_CHAR_FOLD_HEAD_latin1_safe(s,e) \
1357( ((e)-(s) > 1) ? \
fdc26d94
KW
1358 ( ( ( ( ((const U8*)s)[0] & 0xAF ) == 'a' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 'h' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 's' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ? 1\
1359 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1360 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? 2 : 1 ) \
42d7c910
KW
1361 : 0 ) \
1362: ((e)-(s) > 0) ? \
fdc26d94 1363 ( ( ( ((const U8*)s)[0] & 0xAF ) == 'a' ) || ( ( ((const U8*)s)[0] & 0x9F ) == 'f' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 'h' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 's' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) )\
42d7c910
KW
1364: 0 )
1365
1366/*
a1b2a50f
KW
1367 FOLDS_TO_MULTI: characters that fold to multi-char strings
1368
1369 \p{_Perl_Folds_To_Multi_Char}
1370*/
1371/*** GENERATED CODE ***/
1372#define is_FOLDS_TO_MULTI_utf8(s) \
29f3ce8f
KW
1373( ( 0x8A == ((const U8*)s)[0] ) ? \
1374 ( ( 0x73 == ((const U8*)s)[1] ) ? 2 : 0 ) \
8c112bb9 1375: ( 0x8D == ((const U8*)s)[0] || 0x9C == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], 0xB3, 0xB4) ) ?\
29f3ce8f
KW
1376 ( ( 0x57 == ((const U8*)s)[1] ) ? 2 : 0 ) \
1377: ( 0x8E == ((const U8*)s)[0] ) ? \
1378 ( ( 0x4A == ((const U8*)s)[1] ) ? 2 : 0 ) \
1379: ( 0xB8 == ((const U8*)s)[0] ) ? \
1380 ( ( ( 0x53 == ((const U8*)s)[1] ) && ( 0x48 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1381: ( 0xBF == ((const U8*)s)[0] ) ? \
1382 ( ( 0x63 == ((const U8*)s)[1] ) ? \
8c112bb9 1383 ( ( inRANGE(((const U8*)s)[2], 0x65, 0x69) || 0x72 == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f
KW
1384 : ( 0x69 == ((const U8*)s)[1] ) ? \
1385 ( ( 0x57 == ((const U8*)s)[2] || 0x59 == ((const U8*)s)[2] || 0x63 == ((const U8*)s)[2] || 0x65 == ((const U8*)s)[2] ) ? 3 : 0 )\
1386 : ( 0x70 == ((const U8*)s)[1] ) ? \
8c112bb9 1387 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x73) ) ? 3 : 0 )\
29f3ce8f 1388 : ( 0x71 == ((const U8*)s)[1] ) ? \
8c112bb9 1389 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x56) || 0x59 == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x62, 0x63) || inRANGE(((const U8*)s)[2], 0x65, 0x66) || 0x70 == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f 1390 : ( 0x72 == ((const U8*)s)[1] ) ? \
8c112bb9
KW
1391 ( ( inRANGE(((const U8*)s)[2], 0x43, 0x45) || inRANGE(((const U8*)s)[2], 0x47, 0x48) || 0x53 == ((const U8*)s)[2] || 0x59 == ((const U8*)s)[2] || 0x62 == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x65, 0x66) ) ? 3 : 0 )\
1392 : ( ( 0x73 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x43, 0x45) || inRANGE(((const U8*)s)[2], 0x47, 0x48) || 0x59 == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x62, 0x63) || inRANGE(((const U8*)s)[2], 0x65, 0x66) || 0x70 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1393: ( ( ( ( 0xDD == ((const U8*)s)[0] ) && ( 0x72 == ((const U8*)s)[1] ) ) && ( 0x67 == ((const U8*)s)[2] ) ) && ( inRANGE(((const U8*)s)[3], 0x41, 0x47) || inRANGE(((const U8*)s)[3], 0x62, 0x66) ) ) ? 4 : 0 )
a1b2a50f
KW
1394
1395/*
1396 PROBLEMATIC_LOCALE_FOLD: characters whose fold is problematic under locale
1397
1398 \p{_Perl_Problematic_Locale_Folds}
1399*/
1400/*** GENERATED CODE ***/
1401#define is_PROBLEMATIC_LOCALE_FOLD_utf8(s) \
fdc26d94 1402( ( ( ((const U8*)s)[0] <= ' ' ) || inRANGE(((const U8*)s)[0], '.', '&') || inRANGE(((const U8*)s)[0], '!', '/') || inRANGE(((const U8*)s)[0], ',', '?') || inRANGE(((const U8*)s)[0], '`', '"') || inRANGE(((const U8*)s)[0], 'a', 'i') || inRANGE(((const U8*)s)[0], 'j', 'r') || inRANGE(((const U8*)s)[0], '~', 'z') || '[' == ((const U8*)s)[0] || ']' == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], '{', 'I') || inRANGE(((const U8*)s)[0], '}', 'R') || '\\' == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], 'S', 'Z') || inRANGE(((const U8*)s)[0], '0', '9') || 0xFF == ((const U8*)s)[0] ) ? 1\
8c112bb9
KW
1403: ( 0x80 == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], 0x8A, 0x8B) ) ? \
1404 ( ( inRANGE(((const U8*)s)[1], 0x41, 0x4A) || inRANGE(((const U8*)s)[1], 0x51, 0x59) || inRANGE(((const U8*)s)[1], 0x62, 0x6A) || inRANGE(((const U8*)s)[1], 0x70, 0x73) ) ? 2 : 0 )\
e061e593 1405: ( 0x8D == ((const U8*)s)[0] ) ? \
8c112bb9 1406 ( ( inRANGE(((const U8*)s)[1], 0x57, 0x58) ) ? 2 : 0 ) \
29f3ce8f
KW
1407: ( 0x8E == ((const U8*)s)[0] ) ? \
1408 ( ( 0x4A == ((const U8*)s)[1] ) ? 2 : 0 ) \
1409: ( 0x8F == ((const U8*)s)[0] ) ? \
1410 ( ( 0x67 == ((const U8*)s)[1] || 0x73 == ((const U8*)s)[1] ) ? 2 : 0 ) \
e061e593
KW
1411: ( 0x9C == ((const U8*)s)[0] ) ? \
1412 ( ( 0x57 == ((const U8*)s)[1] ) ? 2 : 0 ) \
1413: ( 0xAF == ((const U8*)s)[0] ) ? \
1414 ( ( 0x48 == ((const U8*)s)[1] ) ? 2 : 0 ) \
8c112bb9 1415: ( inRANGE(((const U8*)s)[0], 0xB3, 0xB4) ) ? \
29f3ce8f
KW
1416 ( ( 0x70 == ((const U8*)s)[1] ) ? 2 : 0 ) \
1417: ( 0xBF == ((const U8*)s)[0] ) ? \
8c112bb9 1418 ( ( ( 0x63 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x65, 0x69) || 0x72 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
29f3ce8f 1419: ( 0xCA == ((const U8*)s)[0] ) ? \
8c112bb9
KW
1420 ( ( ( 0x4A == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x51, 0x52) ) ) ? 3 : 0 )\
1421: ( ( ( ( 0xDD == ((const U8*)s)[0] ) && ( 0x72 == ((const U8*)s)[1] ) ) && ( 0x67 == ((const U8*)s)[2] ) ) && ( inRANGE(((const U8*)s)[3], 0x41, 0x47) ) ) ? 4 : 0 )
a1b2a50f
KW
1422
1423/*** GENERATED CODE ***/
1424#define is_PROBLEMATIC_LOCALE_FOLD_cp(cp) \
1425( cp <= 0xFF || ( 0xFF < cp && \
6d2bbfb0 1426( inRANGE(cp, 0x130, 0x131) || ( 0x131 < cp && \
a1b2a50f
KW
1427( 0x149 == cp || ( 0x149 < cp && \
1428( 0x178 == cp || ( 0x178 < cp && \
1429( 0x17F == cp || ( 0x17F < cp && \
1430( 0x1F0 == cp || ( 0x1F0 < cp && \
e061e593 1431( 0x307 == cp || ( 0x307 < cp && \
a1b2a50f
KW
1432( 0x39C == cp || ( 0x39C < cp && \
1433( 0x3BC == cp || ( 0x3BC < cp && \
e42cde6b 1434( inRANGE(cp, 0x1E96, 0x1E9A) || ( 0x1E9A < cp && \
a1b2a50f 1435( 0x1E9E == cp || ( 0x1E9E < cp && \
6d2bbfb0 1436( inRANGE(cp, 0x212A, 0x212B) || inRANGE(cp, 0xFB00, 0xFB06) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )
a1b2a50f
KW
1437
1438/*
1439 PROBLEMATIC_LOCALE_FOLDEDS_START: The first folded character of folds which are problematic under locale
1440
1441 \p{_Perl_Problematic_Locale_Foldeds_Start}
1442*/
1443/*** GENERATED CODE ***/
1444#define is_PROBLEMATIC_LOCALE_FOLDEDS_START_utf8(s) \
fdc26d94 1445( ( ( ((const U8*)s)[0] <= ' ' ) || inRANGE(((const U8*)s)[0], '.', '&') || inRANGE(((const U8*)s)[0], '!', '/') || inRANGE(((const U8*)s)[0], ',', '?') || inRANGE(((const U8*)s)[0], '`', '"') || inRANGE(((const U8*)s)[0], 'a', 'i') || inRANGE(((const U8*)s)[0], 'j', 'r') || inRANGE(((const U8*)s)[0], '~', 'z') || '[' == ((const U8*)s)[0] || ']' == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], '{', 'I') || inRANGE(((const U8*)s)[0], '}', 'R') || '\\' == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], 'S', 'Z') || inRANGE(((const U8*)s)[0], '0', '9') || 0xFF == ((const U8*)s)[0] ) ? 1\
8c112bb9
KW
1446: ( 0x80 == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], 0x8A, 0x8B) ) ? \
1447 ( ( inRANGE(((const U8*)s)[1], 0x41, 0x4A) || inRANGE(((const U8*)s)[1], 0x51, 0x59) || inRANGE(((const U8*)s)[1], 0x62, 0x6A) || inRANGE(((const U8*)s)[1], 0x70, 0x73) ) ? 2 : 0 )\
e061e593 1448: ( 0x8D == ((const U8*)s)[0] ) ? \
8c112bb9 1449 ( ( inRANGE(((const U8*)s)[1], 0x57, 0x58) ) ? 2 : 0 ) \
29f3ce8f
KW
1450: ( 0x8E == ((const U8*)s)[0] ) ? \
1451 ( ( 0x4A == ((const U8*)s)[1] ) ? 2 : 0 ) \
1452: ( 0x8F == ((const U8*)s)[0] ) ? \
1453 ( ( 0x67 == ((const U8*)s)[1] || 0x73 == ((const U8*)s)[1] ) ? 2 : 0 ) \
e061e593
KW
1454: ( 0x9C == ((const U8*)s)[0] ) ? \
1455 ( ( 0x57 == ((const U8*)s)[1] ) ? 2 : 0 ) \
8c112bb9 1456: ( 0xAB == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], 0xB3, 0xB4) ) ? \
29f3ce8f
KW
1457 ( ( 0x70 == ((const U8*)s)[1] ) ? 2 : 0 ) \
1458: ( 0xBF == ((const U8*)s)[0] ) ? \
8c112bb9 1459 ( ( ( 0x63 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x65, 0x69) || 0x72 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
29f3ce8f 1460: ( 0xCA == ((const U8*)s)[0] ) ? \
8c112bb9
KW
1461 ( ( ( 0x4A == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x51, 0x52) ) ) ? 3 : 0 )\
1462: ( ( ( ( 0xDD == ((const U8*)s)[0] ) && ( 0x72 == ((const U8*)s)[1] ) ) && ( 0x67 == ((const U8*)s)[2] ) ) && ( inRANGE(((const U8*)s)[3], 0x41, 0x47) ) ) ? 4 : 0 )
a1b2a50f
KW
1463
1464/*** GENERATED CODE ***/
1465#define is_PROBLEMATIC_LOCALE_FOLDEDS_START_cp(cp) \
1466( cp <= 0xFF || ( 0xFF < cp && \
6d2bbfb0 1467( inRANGE(cp, 0x130, 0x131) || ( 0x131 < cp && \
a1b2a50f
KW
1468( 0x149 == cp || ( 0x149 < cp && \
1469( 0x178 == cp || ( 0x178 < cp && \
1470( 0x17F == cp || ( 0x17F < cp && \
1471( 0x1F0 == cp || ( 0x1F0 < cp && \
1472( 0x2BC == cp || ( 0x2BC < cp && \
1473( 0x39C == cp || ( 0x39C < cp && \
1474( 0x3BC == cp || ( 0x3BC < cp && \
e42cde6b 1475( inRANGE(cp, 0x1E96, 0x1E9A) || ( 0x1E9A < cp && \
a1b2a50f 1476( 0x1E9E == cp || ( 0x1E9E < cp && \
6d2bbfb0 1477( inRANGE(cp, 0x212A, 0x212B) || inRANGE(cp, 0xFB00, 0xFB06) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )
a1b2a50f
KW
1478
1479/*
1480 PATWS: pattern white space
1481
099323b4 1482 \p{_Perl_PatWS}
a1b2a50f
KW
1483*/
1484/*** GENERATED CODE ***/
1485#define is_PATWS_safe(s,e,is_utf8) \
dd9bc2b0 1486( ( LIKELY((e) > (s)) ) ? \
fdc26d94 1487 ( ( '\t' == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], '\v', '\r') || '\n' == ((const U8*)s)[0] || 0x25 == ((const U8*)s)[0] || ' ' == ((const U8*)s)[0] ) ? 1\
29f3ce8f 1488 : ( ( is_utf8 && LIKELY(((e) - (s)) >= UTF8SKIP(s)) ) && ( 0xCA == ((const U8*)s)[0] ) ) ? ( ( 0x41 == ((const U8*)s)[1] ) ?\
8c112bb9
KW
1489 ( ( inRANGE(((const U8*)s)[2], 0x55, 0x56) ) ? 3 : 0 ) \
1490 : ( ( 0x42 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x49, 0x4A) ) ) ? 3 : 0 ) : 0 )\
a1b2a50f
KW
1491: 0 )
1492
a1b2a50f
KW
1493#endif /* EBCDIC 1047 */
1494
1495#if 'A' == 193 /* EBCDIC 037 */ \
1496 && '\\' == 224 && '[' == 186 && ']' == 187 && '{' == 192 && '}' == 208 \
1497 && '^' == 176 && '~' == 161 && '!' == 90 && '#' == 123 && '|' == 79 \
c11f6329 1498 && '$' == 91 && '@' == 124 && '`' == 121 && '\n' == 37
a1b2a50f
KW
1499/*
1500 LNBREAK: Line Break: \R
1501
1502 "\x0D\x0A" # CRLF - Network (Windows) line ending
1503 \p{VertSpace}
1504*/
1505/*** GENERATED CODE ***/
1506#define is_LNBREAK_safe(s,e,is_utf8) \
1507( ((e)-(s) > 2) ? \
fdc26d94
KW
1508 ( ( inRANGE(((const U8*)s)[0], '\v', '\f') || 0x15 == ((const U8*)s)[0] || '\n' == ((const U8*)s)[0] ) ? 1\
1509 : ( '\r' == ((const U8*)s)[0] ) ? \
1510 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
8c112bb9 1511 : ( ( ( ( is_utf8 ) && ( 0xCA == ((const U8*)s)[0] ) ) && ( 0x42 == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0x49, 0x4A) ) ) ? 3 : 0 )\
a1b2a50f 1512: ((e)-(s) > 1) ? \
fdc26d94
KW
1513 ( ( inRANGE(((const U8*)s)[0], '\v', '\f') || 0x15 == ((const U8*)s)[0] || '\n' == ((const U8*)s)[0] ) ? 1\
1514 : ( '\r' == ((const U8*)s)[0] ) ? \
1515 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
a1b2a50f
KW
1516 : 0 ) \
1517: ((e)-(s) > 0) ? \
fdc26d94 1518 ( inRANGE(((const U8*)s)[0], '\v', '\r') || 0x15 == ((const U8*)s)[0] || '\n' == ((const U8*)s)[0] )\
a1b2a50f
KW
1519: 0 )
1520
1521/*** GENERATED CODE ***/
1522#define is_LNBREAK_utf8_safe(s,e) \
1523( ((e)-(s) > 2) ? \
fdc26d94
KW
1524 ( ( inRANGE(((const U8*)s)[0], '\v', '\f') || 0x15 == ((const U8*)s)[0] || '\n' == ((const U8*)s)[0] ) ? 1\
1525 : ( '\r' == ((const U8*)s)[0] ) ? \
1526 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
8c112bb9 1527 : ( ( ( 0xCA == ((const U8*)s)[0] ) && ( 0x42 == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0x49, 0x4A) ) ) ? 3 : 0 )\
a1b2a50f 1528: ((e)-(s) > 1) ? \
fdc26d94
KW
1529 ( ( inRANGE(((const U8*)s)[0], '\v', '\f') || 0x15 == ((const U8*)s)[0] || '\n' == ((const U8*)s)[0] ) ? 1\
1530 : ( '\r' == ((const U8*)s)[0] ) ? \
1531 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
a1b2a50f
KW
1532 : 0 ) \
1533: ((e)-(s) > 0) ? \
fdc26d94 1534 ( inRANGE(((const U8*)s)[0], '\v', '\r') || 0x15 == ((const U8*)s)[0] || '\n' == ((const U8*)s)[0] )\
a1b2a50f
KW
1535: 0 )
1536
1537/*** GENERATED CODE ***/
1538#define is_LNBREAK_latin1_safe(s,e) \
1539( ((e)-(s) > 1) ? \
fdc26d94
KW
1540 ( ( inRANGE(((const U8*)s)[0], '\v', '\f') || 0x15 == ((const U8*)s)[0] || '\n' == ((const U8*)s)[0] ) ? 1\
1541 : ( '\r' == ((const U8*)s)[0] ) ? \
1542 ( ( '\n' == ((const U8*)s)[1] ) ? 2 : 1 ) \
a1b2a50f
KW
1543 : 0 ) \
1544: ((e)-(s) > 0) ? \
fdc26d94 1545 ( inRANGE(((const U8*)s)[0], '\v', '\r') || 0x15 == ((const U8*)s)[0] || '\n' == ((const U8*)s)[0] )\
a1b2a50f
KW
1546: 0 )
1547
1548/*
1549 HORIZWS: Horizontal Whitespace: \h \H
1550
1551 \p{HorizSpace}
1552*/
1553/*** GENERATED CODE ***/
1554#define is_HORIZWS_high(s) \
29f3ce8f
KW
1555( ( 0xBD == ((const U8*)s)[0] ) ? \
1556 ( ( ( 0x62 == ((const U8*)s)[1] ) && ( 0x41 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1557: ( 0xCA == ((const U8*)s)[0] ) ? \
1558 ( ( 0x41 == ((const U8*)s)[1] ) ? \
8c112bb9 1559 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || 0x51 == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f
KW
1560 : ( 0x42 == ((const U8*)s)[1] ) ? \
1561 ( ( 0x56 == ((const U8*)s)[2] ) ? 3 : 0 ) \
1562 : ( ( 0x43 == ((const U8*)s)[1] ) && ( 0x72 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1563: ( ( ( 0xCE == ((const U8*)s)[0] ) && ( 0x41 == ((const U8*)s)[1] ) ) && ( 0x41 == ((const U8*)s)[2] ) ) ? 3 : 0 )
a1b2a50f
KW
1564
1565/*** GENERATED CODE ***/
1566#define is_HORIZWS_cp_high(cp) \
1567( 0x1680 == cp || ( 0x1680 < cp && \
e42cde6b 1568( inRANGE(cp, 0x2000, 0x200A) || ( 0x200A < cp && \
a1b2a50f
KW
1569( 0x202F == cp || ( 0x202F < cp && \
1570( 0x205F == cp || 0x3000 == cp ) ) ) ) ) ) )
1571
1572/*
1573 VERTWS: Vertical Whitespace: \v \V
1574
1575 \p{VertSpace}
1576*/
1577/*** GENERATED CODE ***/
1578#define is_VERTWS_high(s) \
8c112bb9 1579( ( ( ( 0xCA == ((const U8*)s)[0] ) && ( 0x42 == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0x49, 0x4A) ) ) ? 3 : 0 )
a1b2a50f
KW
1580
1581/*** GENERATED CODE ***/
1582#define is_VERTWS_cp_high(cp) \
6d2bbfb0 1583( inRANGE(cp, 0x2028, 0x2029) )
a1b2a50f
KW
1584
1585/*
1586 XDIGIT: Hexadecimal digits
1587
1588 \p{XDigit}
1589*/
1590/*** GENERATED CODE ***/
1591#define is_XDIGIT_high(s) \
29f3ce8f 1592( ( ( 0xDD == ((const U8*)s)[0] ) && ( 0x72 == ((const U8*)s)[1] ) ) ? ( ( 0x66 == ((const U8*)s)[2] ) ?\
8c112bb9
KW
1593 ( ( inRANGE(((const U8*)s)[3], 0x57, 0x59) || 0x5F == ((const U8*)s)[3] || inRANGE(((const U8*)s)[3], 0x62, 0x67) ) ? 4 : 0 )\
1594 : ( ( inRANGE(((const U8*)s)[2], 0x67, 0x68) ) && ( inRANGE(((const U8*)s)[3], 0x42, 0x47) ) ) ? 4 : 0 ) : 0 )
a1b2a50f
KW
1595
1596/*** GENERATED CODE ***/
1597#define is_XDIGIT_cp_high(cp) \
e42cde6b
KW
1598( inRANGE(cp, 0xFF10, 0xFF19) || ( 0xFF19 < cp && \
1599( inRANGE(cp, 0xFF21, 0xFF26) || inRANGE(cp, 0xFF41, 0xFF46) ) ) )
a1b2a50f
KW
1600
1601/*
1602 XPERLSPACE: \p{XPerlSpace}
1603
1604 \p{XPerlSpace}
1605*/
1606/*** GENERATED CODE ***/
1607#define is_XPERLSPACE_high(s) \
29f3ce8f
KW
1608( ( 0xBD == ((const U8*)s)[0] ) ? \
1609 ( ( ( 0x62 == ((const U8*)s)[1] ) && ( 0x41 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1610: ( 0xCA == ((const U8*)s)[0] ) ? \
1611 ( ( 0x41 == ((const U8*)s)[1] ) ? \
8c112bb9 1612 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || 0x51 == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f 1613 : ( 0x42 == ((const U8*)s)[1] ) ? \
8c112bb9 1614 ( ( inRANGE(((const U8*)s)[2], 0x49, 0x4A) || 0x56 == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f
KW
1615 : ( ( 0x43 == ((const U8*)s)[1] ) && ( 0x72 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1616: ( ( ( 0xCE == ((const U8*)s)[0] ) && ( 0x41 == ((const U8*)s)[1] ) ) && ( 0x41 == ((const U8*)s)[2] ) ) ? 3 : 0 )
a1b2a50f
KW
1617
1618/*** GENERATED CODE ***/
1619#define is_XPERLSPACE_cp_high(cp) \
1620( 0x1680 == cp || ( 0x1680 < cp && \
e42cde6b 1621( inRANGE(cp, 0x2000, 0x200A) || ( 0x200A < cp && \
6d2bbfb0 1622( inRANGE(cp, 0x2028, 0x2029) || ( 0x2029 < cp && \
a1b2a50f 1623( 0x202F == cp || ( 0x202F < cp && \
6d2bbfb0 1624( 0x205F == cp || 0x3000 == cp ) ) ) ) ) ) ) ) )
a1b2a50f
KW
1625
1626/*
a1b2a50f
KW
1627 NONCHAR: Non character code points
1628
099323b4 1629 \p{_Perl_Nchar}
a1b2a50f
KW
1630*/
1631/*** GENERATED CODE ***/
89d986df 1632#define is_NONCHAR_utf8_safe(s,e) \
29f3ce8f
KW
1633( ( ( LIKELY((e) > (s)) ) && ( LIKELY(((e) - (s)) >= UTF8SKIP(s)) ) ) ? ( ( 0xDD == ((const U8*)s)[0] ) ?\
1634 ( ( 0x72 == ((const U8*)s)[1] ) ? \
1635 ( ( 0x55 == ((const U8*)s)[2] ) ? \
8c112bb9 1636 ( ( inRANGE(((const U8*)s)[3], 0x57, 0x59) || 0x5F == ((const U8*)s)[3] || inRANGE(((const U8*)s)[3], 0x62, 0x6A) || inRANGE(((const U8*)s)[3], 0x70, 0x72) ) ? 4 : 0 )\
29f3ce8f 1637 : ( 0x56 == ((const U8*)s)[2] ) ? \
8c112bb9
KW
1638 ( ( inRANGE(((const U8*)s)[3], 0x41, 0x4A) || inRANGE(((const U8*)s)[3], 0x51, 0x56) ) ? 4 : 0 )\
1639 : ( ( 0x72 == ((const U8*)s)[2] ) && ( inRANGE(((const U8*)s)[3], 0x71, 0x72) ) ) ? 4 : 0 )\
89d986df 1640 : 0 ) \
29f3ce8f 1641 : ( 0xDF == ((const U8*)s)[0] || 0xEA == ((const U8*)s)[0] || 0xEC == ((const U8*)s)[0] ) ?\
8c112bb9 1642 ( ( ( ( 0x72 == ((const U8*)s)[1] ) && ( 0x72 == ((const U8*)s)[2] ) ) && ( inRANGE(((const U8*)s)[3], 0x71, 0x72) ) ) ? 4 : 0 )\
29f3ce8f 1643 : ( 0xED == ((const U8*)s)[0] ) ? \
8c112bb9
KW
1644 ( ( ( ( ( ((const U8*)s)[1] == 0x4A || ((const U8*)s)[1] == 0x52 || ( ( ((const U8*)s)[1] & 0xFD ) == 0x54 ) || ((const U8*)s)[1] == 0x58 || ((const U8*)s)[1] == 0x5F || ((const U8*)s)[1] == 0x63 || ( ( ((const U8*)s)[1] & 0xFD ) == 0x65 ) || ((const U8*)s)[1] == 0x69 || ( ( ((const U8*)s)[1] & 0xFD ) == 0x70 ) ) && ( 0x72 == ((const U8*)s)[2] ) ) && ( 0x72 == ((const U8*)s)[3] ) ) && ( inRANGE(((const U8*)s)[4], 0x71, 0x72) ) ) ? 5 : 0 )\
1645 : ( ( ( ( ( 0xEE == ((const U8*)s)[0] ) && ( 0x42 == ((const U8*)s)[1] ) ) && ( 0x72 == ((const U8*)s)[2] ) ) && ( 0x72 == ((const U8*)s)[3] ) ) && ( inRANGE(((const U8*)s)[4], 0x71, 0x72) ) ) ? 5 : 0 ) : 0 )
a1b2a50f
KW
1646
1647/*
21cb232c 1648 SURROGATE: Surrogate code points
a1b2a50f 1649
099323b4 1650 \p{_Perl_Surrogate}
a1b2a50f
KW
1651*/
1652/*** GENERATED CODE ***/
89d986df 1653#define is_SURROGATE_utf8_safe(s,e) \
8c112bb9 1654( ( ( ( ( ( ((e) - (s)) >= 4 ) && ( 0xDD == ((const U8*)s)[0] ) ) && ( inRANGE(((const U8*)s)[1], 0x64, 0x65) ) ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || 0x5F == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x72) ) ) && ( inRANGE(((const U8*)s)[3], 0x41, 0x4A) || inRANGE(((const U8*)s)[3], 0x51, 0x59) || 0x5F == ((const U8*)s)[3] || inRANGE(((const U8*)s)[3], 0x62, 0x6A) || inRANGE(((const U8*)s)[3], 0x70, 0x72) ) ) ? 4 : 0 )
a1b2a50f
KW
1655
1656/*
a1b2a50f
KW
1657 QUOTEMETA: Meta-characters that \Q should quote
1658
1659 \p{_Perl_Quotemeta}
1660*/
1661/*** GENERATED CODE ***/
1662#define is_QUOTEMETA_high_part0(s) \
8c112bb9 1663( ( ( 0x57 == ((const U8*)s)[1] ) && ( 0x6A == ((const U8*)s)[2] ) ) ? 3 : 0 )
a1b2a50f
KW
1664
1665
1666/*** GENERATED CODE ***/
1667#define is_QUOTEMETA_high_part1(s) \
8c112bb9
KW
1668( ( 0xBC == ((const U8*)s)[0] ) ? \
1669 ( ( 0x51 == ((const U8*)s)[1] ) ? \
1670 ( ( 0x72 == ((const U8*)s)[2] ) ? 3 : 0 ) \
1671 : ( ( 0x52 == ((const U8*)s)[1] ) && ( 0x41 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1672: ( 0xBD == ((const U8*)s)[0] ) ? \
e42cde6b
KW
1673 ( ( 0x62 == ((const U8*)s)[1] ) ? \
1674 ( ( 0x41 == ((const U8*)s)[2] ) ? 3 : 0 ) \
8c112bb9 1675 : ( ( 0x70 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x62, 0x63) ) ) ? 3 : 0 )\
e42cde6b 1676: ( 0xBE == ((const U8*)s)[0] ) ? \
8c112bb9 1677 ( ( ( 0x41 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x52, 0x55) ) ) ? 3 : 0 )\
e42cde6b 1678: ( 0xCA == ((const U8*)s)[0] ) ? \
8c112bb9
KW
1679 ( ( 0x41 == ((const U8*)s)[1] || inRANGE(((const U8*)s)[1], 0x54, 0x59) || 0x5F == ((const U8*)s)[1] || inRANGE(((const U8*)s)[1], 0x62, 0x6A) || inRANGE(((const U8*)s)[1], 0x70, 0x72) ) ?\
1680 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || 0x5F == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x72) ) ? 3 : 0 )\
e42cde6b 1681 : ( 0x42 == ((const U8*)s)[1] ) ? \
8c112bb9 1682 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || 0x5F == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x71) ) ? 3 : 0 )\
e42cde6b 1683 : ( 0x43 == ((const U8*)s)[1] ) ? \
8c112bb9 1684 ( ( inRANGE(((const U8*)s)[2], 0x42, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || 0x5F == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x63, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x72) ) ? 3 : 0 )\
e42cde6b 1685 : ( 0x44 == ((const U8*)s)[1] ) ? \
8c112bb9
KW
1686 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x56) ) ? 3 : 0 )\
1687 : ( ( 0x53 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x57, 0x59) || 0x5F == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x72) ) ) ? 3 : 0 )\
e42cde6b 1688: ( 0xCB == ((const U8*)s)[0] ) ? \
8c112bb9
KW
1689 ( ( inRANGE(((const U8*)s)[1], 0x41, 0x43) || inRANGE(((const U8*)s)[1], 0x49, 0x4A) || inRANGE(((const U8*)s)[1], 0x51, 0x59) || 0x5F == ((const U8*)s)[1] || inRANGE(((const U8*)s)[1], 0x62, 0x68) || inRANGE(((const U8*)s)[1], 0x70, 0x72) ) ?\
1690 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || 0x5F == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x72) ) ? 3 : 0 )\
29f3ce8f 1691 : ( 0x69 == ((const U8*)s)[1] ) ? \
8c112bb9
KW
1692 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || 0x5F == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x62, 0x63) ) ? 3 : 0 )\
1693 : ( ( 0x6A == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x72) ) ) ? 3 : 0 )\
29f3ce8f 1694: ( 0xCC == ((const U8*)s)[0] ) ? \
8c112bb9 1695 ( ( ( inRANGE(((const U8*)s)[1], 0x41, 0x4A) || inRANGE(((const U8*)s)[1], 0x51, 0x59) || 0x5F == ((const U8*)s)[1] || inRANGE(((const U8*)s)[1], 0x62, 0x6A) || inRANGE(((const U8*)s)[1], 0x70, 0x72) ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || 0x5F == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x72) ) ) ? 3 : 0 )\
29f3ce8f 1696: ( 0xCD == ((const U8*)s)[0] ) ? \
8c112bb9 1697 ( ( ( inRANGE(((const U8*)s)[1], 0x57, 0x59) || 0x5F == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || 0x5F == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x72) ) ) ? 3 : 0 )\
29f3ce8f
KW
1698: ( 0xCE == ((const U8*)s)[0] ) ? \
1699 ( ( 0x41 == ((const U8*)s)[1] ) ? \
8c112bb9 1700 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x44) || inRANGE(((const U8*)s)[2], 0x49, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || 0x5F == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x72) ) ? 3 : 0 )\
29f3ce8f
KW
1701 : ( 0x42 == ((const U8*)s)[1] ) ? \
1702 ( ( 0x41 == ((const U8*)s)[2] || 0x57 == ((const U8*)s)[2] ) ? 3 : 0 )\
1703 : ( ( 0x52 == ((const U8*)s)[1] ) && ( 0x45 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1704: ( 0xDD == ((const U8*)s)[0] ) ? \
1705 ( ( 0x72 == ((const U8*)s)[1] ) ? \
1706 ( ( 0x4A == ((const U8*)s)[2] ) ? \
8c112bb9 1707 ( ( inRANGE(((const U8*)s)[3], 0x71, 0x72) ) ? 4 : 0 ) \
29f3ce8f 1708 : ( 0x57 == ((const U8*)s)[2] ) ? \
8c112bb9 1709 ( ( inRANGE(((const U8*)s)[3], 0x41, 0x4A) || inRANGE(((const U8*)s)[3], 0x51, 0x56) ) ? 4 : 0 )\
29f3ce8f 1710 : ( 0x59 == ((const U8*)s)[2] ) ? \
8c112bb9 1711 ( ( inRANGE(((const U8*)s)[3], 0x46, 0x47) ) ? 4 : 0 ) \
29f3ce8f
KW
1712 : ( 0x65 == ((const U8*)s)[2] ) ? \
1713 ( ( 0x72 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1714 : ( 0x70 == ((const U8*)s)[2] ) ? \
1715 ( ( 0x41 == ((const U8*)s)[3] ) ? 4 : 0 ) \
8c112bb9 1716 : ( ( 0x72 == ((const U8*)s)[2] ) && ( inRANGE(((const U8*)s)[3], 0x57, 0x59) || 0x5F == ((const U8*)s)[3] || inRANGE(((const U8*)s)[3], 0x62, 0x66) ) ) ? 4 : 0 )\
a1b2a50f 1717 : 0 ) \
29f3ce8f
KW
1718: ( 0xDF == ((const U8*)s)[0] ) ? \
1719 ( ( 0x56 == ((const U8*)s)[1] ) ? \
8c112bb9
KW
1720 ( ( ( 0x46 == ((const U8*)s)[2] ) && ( inRANGE(((const U8*)s)[3], 0x41, 0x44) ) ) ? 4 : 0 )\
1721 : ( ( ( 0x62 == ((const U8*)s)[1] ) && ( 0x52 == ((const U8*)s)[2] ) ) && ( 0x5F == ((const U8*)s)[3] || inRANGE(((const U8*)s)[3], 0x62, 0x68) ) ) ? 4 : 0 )\
1722: ( ( ( ( ( 0xED == ((const U8*)s)[0] ) && ( 0x6A == ((const U8*)s)[1] ) ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x44) ) ) && ( inRANGE(((const U8*)s)[3], 0x41, 0x4A) || inRANGE(((const U8*)s)[3], 0x51, 0x59) || 0x5F == ((const U8*)s)[3] || inRANGE(((const U8*)s)[3], 0x62, 0x6A) || inRANGE(((const U8*)s)[3], 0x70, 0x72) ) ) && ( inRANGE(((const U8*)s)[4], 0x41, 0x4A) || inRANGE(((const U8*)s)[4], 0x51, 0x59) || 0x5F == ((const U8*)s)[4] || inRANGE(((const U8*)s)[4], 0x62, 0x6A) || inRANGE(((const U8*)s)[4], 0x70, 0x72) ) ) ? 5 : 0 )
a1b2a50f
KW
1723
1724
1725/*** GENERATED CODE ***/
1726#define is_QUOTEMETA_high(s) \
29f3ce8f
KW
1727( ( 0xAF == ((const U8*)s)[0] ) ? \
1728 ( ( 0x56 == ((const U8*)s)[1] ) ? 2 : 0 ) \
8c112bb9 1729: ( 0xB7 == ((const U8*)s)[0] ) ? is_QUOTEMETA_high_part0(s) : is_QUOTEMETA_high_part1(s) )
a1b2a50f
KW
1730
1731/*
1732 MULTI_CHAR_FOLD: multi-char strings that are folded to by a single character
1733
42d7c910 1734 &regcharclass_multi_char_folds::multi_char_folds('u', 'a')
a1b2a50f
KW
1735*/
1736/*** GENERATED CODE ***/
1737#define is_MULTI_CHAR_FOLD_utf8_safe_part0(s,e) \
114fc8b6 1738( ( ( 0xAE == ((const U8*)s)[1] ) && ( 0x58 == ((const U8*)s)[2] ) ) ? 3 : 0 )
a1b2a50f
KW
1739
1740
1741/*** GENERATED CODE ***/
1742#define is_MULTI_CHAR_FOLD_utf8_safe_part1(s,e) \
114fc8b6 1743( ( ( ((const U8*)s)[0] & 0xBF ) == 'i' ) ? \
29f3ce8f
KW
1744 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x48 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1745 : ( 0x8E == ((const U8*)s)[0] ) ? \
114fc8b6
KW
1746 ( ( 0x72 == ((const U8*)s)[1] ) ? \
1747 ( ( 0x8E == ((const U8*)s)[2] ) ? \
1748 ( ( 0x72 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1749 : ( ( ((const U8*)s)[2] & 0xBE ) == 's' ) ? 3 : 0 ) \
1750 : 0 ) \
cf9d46fd 1751 : ( ( ((const U8*)s)[0] & 0xBF ) == 'j' ) ? \
29f3ce8f 1752 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x53 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1753 : ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) ? \
114fc8b6
KW
1754 ( ( 0x8E == ((const U8*)s)[1] ) ? \
1755 ( ( 0x72 == ((const U8*)s)[2] ) ? 3 : 0 ) \
1756 : ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ? 2 : 0 ) \
cf9d46fd 1757 : ( ( ((const U8*)s)[0] & 0xBF ) == 't' ) ? \
29f3ce8f 1758 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x49 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1759 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ?\
29f3ce8f
KW
1760 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x51 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1761 : ( 0xAA == ((const U8*)s)[0] ) ? \
cf9d46fd 1762 ( ( ( 0x6A == ((const U8*)s)[1] ) && ( ( ((const U8*)s)[2] & 0xBF ) == 'n' ) ) ? 3 : 0 )\
29f3ce8f
KW
1763 : ( 0xB3 == ((const U8*)s)[0] ) ? \
1764 ( ( 0x53 == ((const U8*)s)[1] || 0x55 == ((const U8*)s)[1] ) ? \
1765 ( ( ( 0xB3 == ((const U8*)s)[2] ) && ( 0x67 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1766 : ( 0x58 == ((const U8*)s)[1] || 0x65 == ((const U8*)s)[1] ) ? \
1767 ( ( 0xAF == ((const U8*)s)[2] ) ? \
1768 ( ( 0x43 == ((const U8*)s)[3] ) ? \
1769 ( ( ( 0xB3 == ((const U8*)s)[4] ) && ( 0x67 == ((const U8*)s)[5] ) ) ? 6 : 4 )\
1770 : 0 ) \
1771 : ( ( 0xB3 == ((const U8*)s)[2] ) && ( 0x67 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1772 : ( 0x67 == ((const U8*)s)[1] ) ? \
1773 ( ( 0xAD == ((const U8*)s)[2] ) ? \
1774 ( ( 0x49 == ((const U8*)s)[3] ) ? \
1775 ( ( 0xAD == ((const U8*)s)[4] ) ? \
8c112bb9 1776 ( ( inRANGE(((const U8*)s)[5], 0x41, 0x42) ) ? 6 : 0 )\
29f3ce8f
KW
1777 : ( ( 0xAF == ((const U8*)s)[4] ) && ( 0x43 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
1778 : 0 ) \
1779 : ( ( 0xAF == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1780 : 0 ) \
1781 : ( 0xB4 == ((const U8*)s)[0] ) ? \
1782 ( ( 0x42 == ((const U8*)s)[1] ) ? \
1783 ( ( ( 0xAD == ((const U8*)s)[2] ) && ( 0x5F == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1784 : ( 0x46 == ((const U8*)s)[1] ) ? \
1785 ( ( 0xAD == ((const U8*)s)[2] ) ? \
1786 ( ( 0x49 == ((const U8*)s)[3] ) ? \
1787 ( ( 0xAD == ((const U8*)s)[4] ) ? \
8c112bb9 1788 ( ( inRANGE(((const U8*)s)[5], 0x41, 0x42) ) ? 6 : 0 )\
29f3ce8f
KW
1789 : ( ( 0xAF == ((const U8*)s)[4] ) && ( 0x43 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
1790 : ( 0x5F == ((const U8*)s)[3] ) ? \
1791 ( ( 0xAD == ((const U8*)s)[4] ) ? \
8c112bb9 1792 ( ( inRANGE(((const U8*)s)[5], 0x41, 0x42) ) ? 6 : 4 )\
29f3ce8f
KW
1793 : ( ( 0xAF == ((const U8*)s)[4] ) && ( 0x43 == ((const U8*)s)[5] ) ) ? 6 : 4 )\
1794 : 0 ) \
1795 : ( ( 0xAF == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1796 : ( 0x4A == ((const U8*)s)[1] ) ? \
1797 ( ( 0xAF == ((const U8*)s)[2] ) ? \
1798 ( ( 0x43 == ((const U8*)s)[3] ) ? \
1799 ( ( ( 0xB3 == ((const U8*)s)[4] ) && ( 0x67 == ((const U8*)s)[5] ) ) ? 6 : 4 )\
1800 : 0 ) \
1801 : ( ( 0xB3 == ((const U8*)s)[2] ) && ( 0x67 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1802 : ( ( ( 0x55 == ((const U8*)s)[1] ) && ( 0xB3 == ((const U8*)s)[2] ) ) && ( 0x67 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1803 : ( 0xB7 == ((const U8*)s)[0] ) ? \
1804 ( ( 0x52 == ((const U8*)s)[1] ) ? \
1805 ( ( 0x46 == ((const U8*)s)[2] ) ? \
1806 ( ( ( ( 0xB7 == ((const U8*)s)[3] ) && ( 0x53 == ((const U8*)s)[4] ) ) && ( 0x43 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
1807 : ( 0x62 == ((const U8*)s)[2] ) ? \
1808 ( ( ( ( 0xB7 == ((const U8*)s)[3] ) && ( 0x52 == ((const U8*)s)[4] ) ) && ( 0x46 == ((const U8*)s)[5] || 0x52 == ((const U8*)s)[5] || 0x54 == ((const U8*)s)[5] || 0x64 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
1809 : ( ( ( ( 0x71 == ((const U8*)s)[2] ) && ( 0xB7 == ((const U8*)s)[3] ) ) && ( 0x52 == ((const U8*)s)[4] ) ) && ( 0x64 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
1810 : 0 ) \
1811 : ( 0xBF == ((const U8*)s)[0] ) ? \
8c112bb9
KW
1812 ( ( inRANGE(((const U8*)s)[1], 0x66, 0x67) ) ? \
1813 ( ( ( ( inRANGE(((const U8*)s)[2], 0x41, 0x48) ) && ( 0xB3 == ((const U8*)s)[3] ) ) && ( 0x67 == ((const U8*)s)[4] ) ) ? 5 : 0 )\
1814 : ( ( ( ( 0x69 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x48) || 0x57 == ((const U8*)s)[2] || 0x62 == ((const U8*)s)[2] || 0x6A == ((const U8*)s)[2] ) ) && ( 0xB3 == ((const U8*)s)[3] ) ) && ( 0x67 == ((const U8*)s)[4] ) ) ? 5 : 0 )\
29f3ce8f
KW
1815 : 0 )
1816
1817
1818/*** GENERATED CODE ***/
1819#define is_MULTI_CHAR_FOLD_utf8_safe_part2(s,e) \
cf9d46fd 1820( ( ( ((const U8*)s)[0] & 0xBF ) == 'a' ) ? \
29f3ce8f 1821 ( ( ( 0xAA == ((const U8*)s)[1] ) && ( 0x71 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd
KW
1822 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1823 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? \
1824 ( ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ? 3 : 2 )\
1825 : ( ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1826 : ( ( ((const U8*)s)[0] & 0xBF ) == 'h' ) ? \
29f3ce8f 1827 ( ( ( 0xAE == ((const U8*)s)[1] ) && ( 0x58 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1828 : ( ( ((const U8*)s)[0] & 0xBF ) == 'i' ) ? \
29f3ce8f
KW
1829 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x48 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1830 : ( 0x8E == ((const U8*)s)[0] ) ? \
114fc8b6
KW
1831 ( ( 0x72 == ((const U8*)s)[1] ) ? \
1832 ( ( 0x8E == ((const U8*)s)[2] ) ? \
1833 ( ( 0x72 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1834 : ( ( ((const U8*)s)[2] & 0xBE ) == 's' ) ? 3 : 0 ) \
1835 : 0 ) \
cf9d46fd 1836 : ( ( ((const U8*)s)[0] & 0xBF ) == 'j' ) ? \
29f3ce8f 1837 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x53 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1838 : ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) ? \
114fc8b6
KW
1839 ( ( 0x8E == ((const U8*)s)[1] ) ? \
1840 ( ( 0x72 == ((const U8*)s)[2] ) ? 3 : 0 ) \
1841 : ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ? 2 : 0 ) \
cf9d46fd 1842 : ( ( ((const U8*)s)[0] & 0xBF ) == 't' ) ? \
29f3ce8f 1843 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x49 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1844 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ?\
29f3ce8f
KW
1845 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x51 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1846 : ( 0xAA == ((const U8*)s)[0] ) ? \
cf9d46fd 1847 ( ( ( 0x6A == ((const U8*)s)[1] ) && ( ( ((const U8*)s)[2] & 0xBF ) == 'n' ) ) ? 3 : 0 )\
29f3ce8f
KW
1848 : ( 0xB3 == ((const U8*)s)[0] ) ? \
1849 ( ( 0x53 == ((const U8*)s)[1] || 0x55 == ((const U8*)s)[1] ) ? \
1850 ( ( ( 0xB3 == ((const U8*)s)[2] ) && ( 0x67 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1851 : ( 0x58 == ((const U8*)s)[1] || 0x65 == ((const U8*)s)[1] ) ? \
1852 ( ( 0xAF == ((const U8*)s)[2] ) ? \
1853 ( ( 0x43 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1854 : ( ( 0xB3 == ((const U8*)s)[2] ) && ( 0x67 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1855 : ( ( ( 0x67 == ((const U8*)s)[1] ) && ( 0xAF == ((const U8*)s)[2] ) ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1856 : ( 0xB4 == ((const U8*)s)[0] ) ? \
1857 ( ( 0x42 == ((const U8*)s)[1] ) ? \
1858 ( ( ( 0xAD == ((const U8*)s)[2] ) && ( 0x5F == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1859 : ( 0x46 == ((const U8*)s)[1] ) ? \
1860 ( ( 0xAD == ((const U8*)s)[2] ) ? \
1861 ( ( 0x5F == ((const U8*)s)[3] ) ? 4 : 0 ) \
1862 : ( ( 0xAF == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1863 : ( 0x4A == ((const U8*)s)[1] ) ? \
1864 ( ( 0xAF == ((const U8*)s)[2] ) ? \
1865 ( ( 0x43 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1866 : ( ( 0xB3 == ((const U8*)s)[2] ) && ( 0x67 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1867 : ( ( ( 0x55 == ((const U8*)s)[1] ) && ( 0xB3 == ((const U8*)s)[2] ) ) && ( 0x67 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1868 : ( 0xBF == ((const U8*)s)[0] ) ? \
8c112bb9
KW
1869 ( ( inRANGE(((const U8*)s)[1], 0x66, 0x67) ) ? \
1870 ( ( ( ( inRANGE(((const U8*)s)[2], 0x41, 0x48) ) && ( 0xB3 == ((const U8*)s)[3] ) ) && ( 0x67 == ((const U8*)s)[4] ) ) ? 5 : 0 )\
1871 : ( ( ( ( 0x69 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x48) || 0x57 == ((const U8*)s)[2] || 0x62 == ((const U8*)s)[2] || 0x6A == ((const U8*)s)[2] ) ) && ( 0xB3 == ((const U8*)s)[3] ) ) && ( 0x67 == ((const U8*)s)[4] ) ) ? 5 : 0 )\
29f3ce8f
KW
1872 : 0 )
1873
1874
1875/*** GENERATED CODE ***/
1876#define is_MULTI_CHAR_FOLD_utf8_safe_part3(s,e) \
a1b2a50f 1877( ((e)-(s) > 3) ? \
cf9d46fd 1878 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'a' ) ? \
29f3ce8f 1879 ( ( ( 0xAA == ((const U8*)s)[1] ) && ( 0x71 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd
KW
1880 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1881 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? \
1882 ( ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ? 3 : 2 )\
1883 : ( ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1884 : ( ( ((const U8*)s)[0] & 0xBF ) == 'h' ) ? \
29f3ce8f 1885 ( ( ( 0xAE == ((const U8*)s)[1] ) && ( 0x58 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1886 : ( ( ((const U8*)s)[0] & 0xBF ) == 'i' ) ? \
29f3ce8f
KW
1887 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x48 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1888 : ( 0x8E == ((const U8*)s)[0] ) ? \
114fc8b6
KW
1889 ( ( 0x72 == ((const U8*)s)[1] ) ? \
1890 ( ( 0x8E == ((const U8*)s)[2] ) ? \
1891 ( ( 0x72 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1892 : ( ( ((const U8*)s)[2] & 0xBE ) == 's' ) ? 3 : 0 ) \
1893 : 0 ) \
cf9d46fd 1894 : ( ( ((const U8*)s)[0] & 0xBF ) == 'j' ) ? \
29f3ce8f 1895 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x53 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1896 : ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) ? \
114fc8b6
KW
1897 ( ( 0x8E == ((const U8*)s)[1] ) ? \
1898 ( ( 0x72 == ((const U8*)s)[2] ) ? 3 : 0 ) \
1899 : ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ? 2 : 0 ) \
cf9d46fd 1900 : ( ( ((const U8*)s)[0] & 0xBF ) == 't' ) ? \
29f3ce8f 1901 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x49 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1902 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ?\
29f3ce8f
KW
1903 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x51 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
1904 : ( 0xAA == ((const U8*)s)[0] ) ? \
cf9d46fd 1905 ( ( ( 0x6A == ((const U8*)s)[1] ) && ( ( ((const U8*)s)[2] & 0xBF ) == 'n' ) ) ? 3 : 0 )\
29f3ce8f
KW
1906 : ( 0xB3 == ((const U8*)s)[0] ) ? \
1907 ( ( 0x53 == ((const U8*)s)[1] || 0x55 == ((const U8*)s)[1] ) ? \
1908 ( ( ( 0xB3 == ((const U8*)s)[2] ) && ( 0x67 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1909 : ( 0x58 == ((const U8*)s)[1] || 0x65 == ((const U8*)s)[1] ) ? \
1910 ( ( 0xAF == ((const U8*)s)[2] ) ? \
1911 ( ( 0x43 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1912 : ( ( 0xB3 == ((const U8*)s)[2] ) && ( 0x67 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1913 : ( ( ( 0x67 == ((const U8*)s)[1] ) && ( 0xAF == ((const U8*)s)[2] ) ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1914 : ( 0xB4 == ((const U8*)s)[0] ) ? \
1915 ( ( 0x42 == ((const U8*)s)[1] ) ? \
1916 ( ( ( 0xAD == ((const U8*)s)[2] ) && ( 0x5F == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1917 : ( 0x46 == ((const U8*)s)[1] ) ? \
1918 ( ( 0xAD == ((const U8*)s)[2] ) ? \
1919 ( ( 0x5F == ((const U8*)s)[3] ) ? 4 : 0 ) \
1920 : ( ( 0xAF == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1921 : ( 0x4A == ((const U8*)s)[1] ) ? \
1922 ( ( 0xAF == ((const U8*)s)[2] ) ? \
1923 ( ( 0x43 == ((const U8*)s)[3] ) ? 4 : 0 ) \
1924 : ( ( 0xB3 == ((const U8*)s)[2] ) && ( 0x67 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
1925 : ( ( ( 0x55 == ((const U8*)s)[1] ) && ( 0xB3 == ((const U8*)s)[2] ) ) && ( 0x67 == ((const U8*)s)[3] ) ) ? 4 : 0 )\
a1b2a50f
KW
1926 : 0 ) \
1927: ((e)-(s) > 2) ? \
cf9d46fd 1928 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'a' ) ? \
29f3ce8f 1929 ( ( ( 0xAA == ((const U8*)s)[1] ) && ( 0x71 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd
KW
1930 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1931 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? \
1932 ( ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ? 3 : 2 )\
1933 : ( ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1934 : ( ( ((const U8*)s)[0] & 0xBF ) == 'h' ) ? \
29f3ce8f 1935 ( ( ( 0xAE == ((const U8*)s)[1] ) && ( 0x58 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1936 : ( ( ((const U8*)s)[0] & 0xBF ) == 'i' ) ? \
29f3ce8f 1937 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x48 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
114fc8b6
KW
1938 : ( 0x8E == ((const U8*)s)[0] ) ? \
1939 ( ( ( 0x72 == ((const U8*)s)[1] ) && ( ( ((const U8*)s)[2] & 0xBE ) == 's' ) ) ? 3 : 0 )\
cf9d46fd 1940 : ( ( ((const U8*)s)[0] & 0xBF ) == 'j' ) ? \
29f3ce8f 1941 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x53 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1942 : ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) ? \
114fc8b6
KW
1943 ( ( 0x8E == ((const U8*)s)[1] ) ? \
1944 ( ( 0x72 == ((const U8*)s)[2] ) ? 3 : 0 ) \
1945 : ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ? 2 : 0 ) \
cf9d46fd 1946 : ( ( ((const U8*)s)[0] & 0xBF ) == 't' ) ? \
29f3ce8f 1947 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x49 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1948 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ?\
29f3ce8f 1949 ( ( ( 0xAD == ((const U8*)s)[1] ) && ( 0x51 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
cf9d46fd 1950 : ( ( ( 0xAA == ((const U8*)s)[0] ) && ( 0x6A == ((const U8*)s)[1] ) ) && ( ( ((const U8*)s)[2] & 0xBF ) == 'n' ) ) ? 3 : 0 )\
a1b2a50f 1951: ((e)-(s) > 1) ? \
cf9d46fd
KW
1952 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1953 ( ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1954 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) && ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ) ? 2 : 0 )\
a1b2a50f
KW
1955: 0 )
1956
1957
1958/*** GENERATED CODE ***/
1959#define is_MULTI_CHAR_FOLD_utf8_safe(s,e) \
1960( ((e)-(s) > 5) ? \
cf9d46fd 1961 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'a' ) ? \
29f3ce8f 1962 ( ( ( 0xAA == ((const U8*)s)[1] ) && ( 0x71 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
114fc8b6
KW
1963 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1964 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? \
1965 ( ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ? 3 : 2 )\
1966 : ( ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1967 : ( ( ((const U8*)s)[0] & 0xBF ) == 'h' ) ? is_MULTI_CHAR_FOLD_utf8_safe_part0(s,e) : is_MULTI_CHAR_FOLD_utf8_safe_part1(s,e) )\
29f3ce8f 1968: ((e)-(s) > 4) ? is_MULTI_CHAR_FOLD_utf8_safe_part2(s,e) : is_MULTI_CHAR_FOLD_utf8_safe_part3(s,e) )
a1b2a50f
KW
1969
1970/*
1971 MULTI_CHAR_FOLD: multi-char strings that are folded to by a single character
1972
42d7c910 1973 &regcharclass_multi_char_folds::multi_char_folds('l', 'a')
a1b2a50f
KW
1974*/
1975/*** GENERATED CODE ***/
1976#define is_MULTI_CHAR_FOLD_latin1_safe(s,e) \
1977( ((e)-(s) > 2) ? \
fdc26d94
KW
1978 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1979 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? \
1980 ( ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ? 3 : 2 )\
1981 : ( ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1982 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) && ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ) ? 2 : 0 )\
a1b2a50f 1983: ((e)-(s) > 1) ? \
fdc26d94
KW
1984 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1985 ( ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[1] & 0xBF ) == 'l' ) ) ? 2 : 0 )\
1986 : ( ( ( ((const U8*)s)[0] & 0xBF ) == 's' ) && ( ( ((const U8*)s)[1] & 0xBE ) == 's' ) ) ? 2 : 0 )\
a1b2a50f
KW
1987: 0 )
1988
1989/*
42d7c910
KW
1990 THREE_CHAR_FOLD: A three-character multi-char fold
1991
1992 &regcharclass_multi_char_folds::multi_char_folds('u', '3')
1993*/
1994/*** GENERATED CODE ***/
1995#define is_THREE_CHAR_FOLD_utf8_safe(s,e) \
1996( ((e)-(s) > 5) ? \
cf9d46fd
KW
1997 ( ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
1998 ( ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) && ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ) ? 3 : 0 )\
42d7c910
KW
1999 : ( 0xB3 == ((const U8*)s)[0] ) ? \
2000 ( ( 0x58 == ((const U8*)s)[1] || 0x65 == ((const U8*)s)[1] ) ? \
2001 ( ( ( ( ( 0xAF == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) && ( 0xB3 == ((const U8*)s)[4] ) ) && ( 0x67 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
2002 : ( ( ( 0x67 == ((const U8*)s)[1] ) && ( 0xAD == ((const U8*)s)[2] ) ) && ( 0x49 == ((const U8*)s)[3] ) ) ? ( ( 0xAD == ((const U8*)s)[4] ) ?\
8c112bb9 2003 ( ( inRANGE(((const U8*)s)[5], 0x41, 0x42) ) ? 6 : 0 )\
42d7c910
KW
2004 : ( ( 0xAF == ((const U8*)s)[4] ) && ( 0x43 == ((const U8*)s)[5] ) ) ? 6 : 0 ) : 0 )\
2005 : ( 0xB4 == ((const U8*)s)[0] ) ? \
2006 ( ( 0x46 == ((const U8*)s)[1] ) ? \
2007 ( ( ( 0xAD == ((const U8*)s)[2] ) && ( 0x49 == ((const U8*)s)[3] || 0x5F == ((const U8*)s)[3] ) ) ? ( ( 0xAD == ((const U8*)s)[4] ) ?\
8c112bb9 2008 ( ( inRANGE(((const U8*)s)[5], 0x41, 0x42) ) ? 6 : 0 )\
42d7c910
KW
2009 : ( ( 0xAF == ((const U8*)s)[4] ) && ( 0x43 == ((const U8*)s)[5] ) ) ? 6 : 0 ) : 0 )\
2010 : ( ( ( ( ( 0x4A == ((const U8*)s)[1] ) && ( 0xAF == ((const U8*)s)[2] ) ) && ( 0x43 == ((const U8*)s)[3] ) ) && ( 0xB3 == ((const U8*)s)[4] ) ) && ( 0x67 == ((const U8*)s)[5] ) ) ? 6 : 0 )\
2011 : 0 ) \
cf9d46fd 2012: ( ( ( ((e)-(s) > 2) && ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ) && ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ) && ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ) ? 3 : 0 )
42d7c910
KW
2013
2014/*
2015 THREE_CHAR_FOLD: A three-character multi-char fold
2016
2017 &regcharclass_multi_char_folds::multi_char_folds('l', '3')
2018*/
2019/*** GENERATED CODE ***/
2020#define is_THREE_CHAR_FOLD_latin1_safe(s,e) \
fdc26d94 2021( ( ( ( ( ((e) - (s)) >= 3 ) && ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ) && ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ) && ( ( ( ((const U8*)s)[2] & 0xBF ) == 'i' ) || ( ( ((const U8*)s)[2] & 0xBF ) == 'l' ) ) ) ? 3 : 0 )
42d7c910
KW
2022
2023/*
2024 THREE_CHAR_FOLD_HEAD: The first two of three-character multi-char folds
2025
2026 &regcharclass_multi_char_folds::multi_char_folds('u', 'h')
2027*/
2028/*** GENERATED CODE ***/
2029#define is_THREE_CHAR_FOLD_HEAD_utf8_safe(s,e) \
2030( ((e)-(s) > 3) ? \
cf9d46fd
KW
2031 ( ( ( ( ((const U8*)s)[0] & 0xAF ) == 'a' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 'h' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 's' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ? 1\
2032 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
2033 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? 2 : 1 ) \
114fc8b6
KW
2034 : ( 0x8E == ((const U8*)s)[0] ) ? \
2035 ( ( 0x72 == ((const U8*)s)[1] ) ? 2 : 0 ) \
42d7c910
KW
2036 : ( 0xAA == ((const U8*)s)[0] ) ? \
2037 ( ( 0x6A == ((const U8*)s)[1] ) ? 2 : 0 ) \
2038 : ( 0xB3 == ((const U8*)s)[0] ) ? \
2039 ( ( 0x53 == ((const U8*)s)[1] || 0x55 == ((const U8*)s)[1] ) ? 2 \
2040 : ( 0x58 == ((const U8*)s)[1] || 0x65 == ((const U8*)s)[1] ) ? \
2041 ( ( ( 0xAF == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 2 )\
2042 : ( 0x67 == ((const U8*)s)[1] ) ? \
2043 ( ( ( 0xAD == ((const U8*)s)[2] ) && ( 0x49 == ((const U8*)s)[3] ) ) ? 4 : 2 )\
2044 : 0 ) \
2045 : ( 0xB4 == ((const U8*)s)[0] ) ? \
2046 ( ( 0x42 == ((const U8*)s)[1] || 0x55 == ((const U8*)s)[1] ) ? 2 \
2047 : ( 0x46 == ((const U8*)s)[1] ) ? \
2048 ( ( ( 0xAD == ((const U8*)s)[2] ) && ( 0x49 == ((const U8*)s)[3] || 0x5F == ((const U8*)s)[3] ) ) ? 4 : 2 )\
2049 : ( 0x4A == ((const U8*)s)[1] ) ? \
2050 ( ( ( 0xAF == ((const U8*)s)[2] ) && ( 0x43 == ((const U8*)s)[3] ) ) ? 4 : 2 )\
2051 : 0 ) \
2052 : ( 0xB7 == ((const U8*)s)[0] ) ? \
2053 ( ( ( 0x52 == ((const U8*)s)[1] ) && ( 0x46 == ((const U8*)s)[2] || 0x62 == ((const U8*)s)[2] || 0x71 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
2054 : ( 0xBF == ((const U8*)s)[0] ) ? \
8c112bb9
KW
2055 ( ( inRANGE(((const U8*)s)[1], 0x66, 0x67) ) ? \
2056 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x48) ) ? 3 : 0 ) \
2057 : ( ( 0x69 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x48) || 0x57 == ((const U8*)s)[2] || 0x62 == ((const U8*)s)[2] || 0x6A == ((const U8*)s)[2] ) ) ? 3 : 0 )\
42d7c910
KW
2058 : 0 ) \
2059: ((e)-(s) > 2) ? \
cf9d46fd
KW
2060 ( ( ( ( ((const U8*)s)[0] & 0xAF ) == 'a' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 'h' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 's' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ? 1\
2061 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
2062 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? 2 : 1 ) \
114fc8b6
KW
2063 : ( 0x8E == ((const U8*)s)[0] ) ? \
2064 ( ( 0x72 == ((const U8*)s)[1] ) ? 2 : 0 ) \
42d7c910
KW
2065 : ( 0xAA == ((const U8*)s)[0] ) ? \
2066 ( ( 0x6A == ((const U8*)s)[1] ) ? 2 : 0 ) \
2067 : ( 0xB3 == ((const U8*)s)[0] ) ? \
2068 ( ( ((const U8*)s)[1] == 0x53 || ((const U8*)s)[1] == 0x55 || ((const U8*)s)[1] == 0x58 || ( ( ((const U8*)s)[1] & 0xFD ) == 0x65 ) ) ? 2 : 0 )\
2069 : ( 0xB4 == ((const U8*)s)[0] ) ? \
2070 ( ( ( ( ((const U8*)s)[1] & 0xFB ) == 0x42 ) || ((const U8*)s)[1] == 0x4A || ((const U8*)s)[1] == 0x55 ) ? 2 : 0 )\
2071 : ( 0xB7 == ((const U8*)s)[0] ) ? \
2072 ( ( ( 0x52 == ((const U8*)s)[1] ) && ( 0x46 == ((const U8*)s)[2] || 0x62 == ((const U8*)s)[2] || 0x71 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
2073 : ( 0xBF == ((const U8*)s)[0] ) ? \
8c112bb9
KW
2074 ( ( inRANGE(((const U8*)s)[1], 0x66, 0x67) ) ? \
2075 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x48) ) ? 3 : 0 ) \
2076 : ( ( 0x69 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x41, 0x48) || 0x57 == ((const U8*)s)[2] || 0x62 == ((const U8*)s)[2] || 0x6A == ((const U8*)s)[2] ) ) ? 3 : 0 )\
42d7c910
KW
2077 : 0 ) \
2078: ((e)-(s) > 1) ? \
cf9d46fd
KW
2079 ( ( ( ( ((const U8*)s)[0] & 0xAF ) == 'a' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 'h' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 's' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ? 1\
2080 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
2081 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? 2 : 1 ) \
114fc8b6
KW
2082 : ( 0x8E == ((const U8*)s)[0] ) ? \
2083 ( ( 0x72 == ((const U8*)s)[1] ) ? 2 : 0 ) \
42d7c910
KW
2084 : ( 0xAA == ((const U8*)s)[0] ) ? \
2085 ( ( 0x6A == ((const U8*)s)[1] ) ? 2 : 0 ) \
2086 : ( 0xB3 == ((const U8*)s)[0] ) ? \
2087 ( ( ((const U8*)s)[1] == 0x53 || ((const U8*)s)[1] == 0x55 || ((const U8*)s)[1] == 0x58 || ( ( ((const U8*)s)[1] & 0xFD ) == 0x65 ) ) ? 2 : 0 )\
2088 : ( ( 0xB4 == ((const U8*)s)[0] ) && ( ( ( ((const U8*)s)[1] & 0xFB ) == 0x42 ) || ((const U8*)s)[1] == 0x4A || ((const U8*)s)[1] == 0x55 ) ) ? 2 : 0 )\
2089: ((e)-(s) > 0) ? \
cf9d46fd 2090 ( ( ( ((const U8*)s)[0] & 0xAF ) == 'a' ) || ( ( ((const U8*)s)[0] & 0x9F ) == 'f' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 'h' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 's' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) )\
42d7c910
KW
2091: 0 )
2092
2093/*
2094 THREE_CHAR_FOLD_HEAD: The first two of three-character multi-char folds
2095
2096 &regcharclass_multi_char_folds::multi_char_folds('l', 'h')
2097*/
2098/*** GENERATED CODE ***/
2099#define is_THREE_CHAR_FOLD_HEAD_latin1_safe(s,e) \
2100( ((e)-(s) > 1) ? \
fdc26d94
KW
2101 ( ( ( ( ((const U8*)s)[0] & 0xAF ) == 'a' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 'h' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 's' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'w' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) ) ? 1\
2102 : ( ( ((const U8*)s)[0] & 0xBF ) == 'f' ) ? \
2103 ( ( ( ((const U8*)s)[1] & 0xBF ) == 'f' ) ? 2 : 1 ) \
42d7c910
KW
2104 : 0 ) \
2105: ((e)-(s) > 0) ? \
fdc26d94 2106 ( ( ( ((const U8*)s)[0] & 0xAF ) == 'a' ) || ( ( ((const U8*)s)[0] & 0x9F ) == 'f' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 'h' ) || ( ( ((const U8*)s)[0] & 0xBE ) == 's' ) || ( ( ((const U8*)s)[0] & 0xBF ) == 'y' ) )\
42d7c910
KW
2107: 0 )
2108
2109/*
a1b2a50f
KW
2110 FOLDS_TO_MULTI: characters that fold to multi-char strings
2111
2112 \p{_Perl_Folds_To_Multi_Char}
2113*/
2114/*** GENERATED CODE ***/
2115#define is_FOLDS_TO_MULTI_utf8(s) \
29f3ce8f
KW
2116( ( 0x80 == ((const U8*)s)[0] ) ? \
2117 ( ( 0x72 == ((const U8*)s)[1] ) ? 2 : 0 ) \
8c112bb9 2118: ( 0x8C == ((const U8*)s)[0] || 0x9B == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], 0xB2, 0xB3) ) ?\
29f3ce8f
KW
2119 ( ( 0x57 == ((const U8*)s)[1] ) ? 2 : 0 ) \
2120: ( 0x8D == ((const U8*)s)[0] ) ? \
2121 ( ( 0x4A == ((const U8*)s)[1] ) ? 2 : 0 ) \
2122: ( 0xB7 == ((const U8*)s)[0] ) ? \
2123 ( ( ( 0x53 == ((const U8*)s)[1] ) && ( 0x48 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
2124: ( 0xBF == ((const U8*)s)[0] ) ? \
2125 ( ( 0x62 == ((const U8*)s)[1] ) ? \
8c112bb9 2126 ( ( inRANGE(((const U8*)s)[2], 0x64, 0x68) || 0x71 == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f
KW
2127 : ( 0x68 == ((const U8*)s)[1] ) ? \
2128 ( ( 0x57 == ((const U8*)s)[2] || 0x59 == ((const U8*)s)[2] || 0x62 == ((const U8*)s)[2] || 0x64 == ((const U8*)s)[2] ) ? 3 : 0 )\
2129 : ( 0x6A == ((const U8*)s)[1] ) ? \
8c112bb9 2130 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x59) || 0x5F == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x62, 0x6A) || inRANGE(((const U8*)s)[2], 0x70, 0x72) ) ? 3 : 0 )\
29f3ce8f 2131 : ( 0x70 == ((const U8*)s)[1] ) ? \
8c112bb9 2132 ( ( inRANGE(((const U8*)s)[2], 0x41, 0x4A) || inRANGE(((const U8*)s)[2], 0x51, 0x56) || 0x59 == ((const U8*)s)[2] || 0x5F == ((const U8*)s)[2] || 0x62 == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x64, 0x65) || 0x6A == ((const U8*)s)[2] ) ? 3 : 0 )\
29f3ce8f 2133 : ( 0x71 == ((const U8*)s)[1] ) ? \
8c112bb9 2134 ( ( inRANGE(((const U8*)s)[2], 0x43, 0x45) || inRANGE(((const U8*)s)[2], 0x47, 0x48) || 0x53 == ((const U8*)s)[2] || 0x59 == ((const U8*)s)[2] || 0x5F == ((const U8*)s)[2] || inRANGE(((const U8*)s)[2], 0x64, 0x65) ) ? 3 : 0 )\
fdc26d94 2135 : ( ( 0x72 == ((const U8*)s)[1] ) && ( ( ( ((const U8*)s)[2] & 0xFB ) == 0x43 ) || ( ( ((const U8*)s)[2] & 0xDE ) == 0x44 ) || ((const U8*)s)[2] == 0x48 || ((const U8*)s)[2] == 0x59 || ((const U8*)s)[2] == 0x5F || ( ( ((const U8*)s)[2] & '7' ) == 0x62 ) ) ) ? 3 : 0 )\
8c112bb9 2136: ( ( ( ( 0xDD == ((const U8*)s)[0] ) && ( 0x71 == ((const U8*)s)[1] ) ) && ( 0x66 == ((const U8*)s)[2] ) ) && ( inRANGE(((const U8*)s)[3], 0x41, 0x47) || 0x5F == ((const U8*)s)[3] || inRANGE(((const U8*)s)[3], 0x62, 0x65) ) ) ? 4 : 0 )
a1b2a50f
KW
2137
2138/*
2139 PROBLEMATIC_LOCALE_FOLD: characters whose fold is problematic under locale
2140
2141 \p{_Perl_Problematic_Locale_Folds}
2142*/
2143/*** GENERATED CODE ***/
2144#define is_PROBLEMATIC_LOCALE_FOLD_utf8(s) \
fdc26d94 2145( ( ( ((const U8*)s)[0] <= ' ' ) || inRANGE(((const U8*)s)[0], '.', '&') || inRANGE(((const U8*)s)[0], '!', ';') || inRANGE(((const U8*)s)[0], '-', '/') || inRANGE(((const U8*)s)[0], ',', '?') || inRANGE(((const U8*)s)[0], '`', '"') || inRANGE(((const U8*)s)[0], 'a', 'i') || inRANGE(((const U8*)s)[0], 'j', 'r') || inRANGE(((const U8*)s)[0], '~', 'z') || '^' == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], '[', ']') || inRANGE(((const U8*)s)[0], '{', 'I') || inRANGE(((const U8*)s)[0], '}', 'R') || '\\' == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], 'S', 'Z') || inRANGE(((const U8*)s)[0], '0', '9') || 0xFF == ((const U8*)s)[0] ) ? 1\
29f3ce8f 2146: ( 0x78 == ((const U8*)s)[0] || 0x80 == ((const U8*)s)[0] || 0x8A == ((const U8*)s)[0] ) ?\
8c112bb9 2147 ( ( inRANGE(((const U8*)s)[1], 0x41, 0x4A) || inRANGE(((const U8*)s)[1], 0x51, 0x59) || 0x5F == ((const U8*)s)[1] || inRANGE(((const U8*)s)[1], 0x62, 0x6A) || inRANGE(((const U8*)s)[1], 0x70, 0x72) ) ? 2 : 0 )\
e061e593 2148: ( 0x8C == ((const U8*)s)[0] ) ? \
8c112bb9 2149 ( ( inRANGE(((const U8*)s)[1], 0x57, 0x58) ) ? 2 : 0 ) \
29f3ce8f
KW
2150: ( 0x8D == ((const U8*)s)[0] ) ? \
2151 ( ( 0x4A == ((const U8*)s)[1] ) ? 2 : 0 ) \
2152: ( 0x8E == ((const U8*)s)[0] ) ? \
2153 ( ( 0x66 == ((const U8*)s)[1] || 0x72 == ((const U8*)s)[1] ) ? 2 : 0 ) \
e061e593
KW
2154: ( 0x9B == ((const U8*)s)[0] ) ? \
2155 ( ( 0x57 == ((const U8*)s)[1] ) ? 2 : 0 ) \
2156: ( 0xAD == ((const U8*)s)[0] ) ? \
2157 ( ( 0x48 == ((const U8*)s)[1] ) ? 2 : 0 ) \
8c112bb9 2158: ( inRANGE(((const U8*)s)[0], 0xB2, 0xB3) ) ? \
29f3ce8f
KW
2159 ( ( 0x6A == ((const U8*)s)[1] ) ? 2 : 0 ) \
2160: ( 0xBF == ((const U8*)s)[0] ) ? \
8c112bb9 2161 ( ( ( 0x62 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x64, 0x68) || 0x71 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
29f3ce8f 2162: ( 0xCA == ((const U8*)s)[0] ) ? \
8c112bb9
KW
2163 ( ( ( 0x4A == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x51, 0x52) ) ) ? 3 : 0 )\
2164: ( ( ( ( 0xDD == ((const U8*)s)[0] ) && ( 0x71 == ((const U8*)s)[1] ) ) && ( 0x66 == ((const U8*)s)[2] ) ) && ( inRANGE(((const U8*)s)[3], 0x41, 0x47) ) ) ? 4 : 0 )
a1b2a50f
KW
2165
2166/*** GENERATED CODE ***/
2167#define is_PROBLEMATIC_LOCALE_FOLD_cp(cp) \
2168( cp <= 0xFF || ( 0xFF < cp && \
6d2bbfb0 2169( inRANGE(cp, 0x130, 0x131) || ( 0x131 < cp && \
a1b2a50f
KW
2170( 0x149 == cp || ( 0x149 < cp && \
2171( 0x178 == cp || ( 0x178 < cp && \
2172( 0x17F == cp || ( 0x17F < cp && \
2173( 0x1F0 == cp || ( 0x1F0 < cp && \
e061e593 2174( 0x307 == cp || ( 0x307 < cp && \
a1b2a50f
KW
2175( 0x39C == cp || ( 0x39C < cp && \
2176( 0x3BC == cp || ( 0x3BC < cp && \
e42cde6b 2177( inRANGE(cp, 0x1E96, 0x1E9A) || ( 0x1E9A < cp && \
a1b2a50f 2178( 0x1E9E == cp || ( 0x1E9E < cp && \
6d2bbfb0 2179( inRANGE(cp, 0x212A, 0x212B) || inRANGE(cp, 0xFB00, 0xFB06) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )
a1b2a50f
KW
2180
2181/*
2182 PROBLEMATIC_LOCALE_FOLDEDS_START: The first folded character of folds which are problematic under locale
2183
2184 \p{_Perl_Problematic_Locale_Foldeds_Start}
2185*/
2186/*** GENERATED CODE ***/
2187#define is_PROBLEMATIC_LOCALE_FOLDEDS_START_utf8(s) \
fdc26d94 2188( ( ( ((const U8*)s)[0] <= ' ' ) || inRANGE(((const U8*)s)[0], '.', '&') || inRANGE(((const U8*)s)[0], '!', ';') || inRANGE(((const U8*)s)[0], '-', '/') || inRANGE(((const U8*)s)[0], ',', '?') || inRANGE(((const U8*)s)[0], '`', '"') || inRANGE(((const U8*)s)[0], 'a', 'i') || inRANGE(((const U8*)s)[0], 'j', 'r') || inRANGE(((const U8*)s)[0], '~', 'z') || '^' == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], '[', ']') || inRANGE(((const U8*)s)[0], '{', 'I') || inRANGE(((const U8*)s)[0], '}', 'R') || '\\' == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], 'S', 'Z') || inRANGE(((const U8*)s)[0], '0', '9') || 0xFF == ((const U8*)s)[0] ) ? 1\
29f3ce8f 2189: ( 0x78 == ((const U8*)s)[0] || 0x80 == ((const U8*)s)[0] || 0x8A == ((const U8*)s)[0] ) ?\
8c112bb9 2190 ( ( inRANGE(((const U8*)s)[1], 0x41, 0x4A) || inRANGE(((const U8*)s)[1], 0x51, 0x59) || 0x5F == ((const U8*)s)[1] || inRANGE(((const U8*)s)[1], 0x62, 0x6A) || inRANGE(((const U8*)s)[1], 0x70, 0x72) ) ? 2 : 0 )\
e061e593 2191: ( 0x8C == ((const U8*)s)[0] ) ? \
8c112bb9 2192 ( ( inRANGE(((const U8*)s)[1], 0x57, 0x58) ) ? 2 : 0 ) \
29f3ce8f
KW
2193: ( 0x8D == ((const U8*)s)[0] ) ? \
2194 ( ( 0x4A == ((const U8*)s)[1] ) ? 2 : 0 ) \
2195: ( 0x8E == ((const U8*)s)[0] ) ? \
2196 ( ( 0x66 == ((const U8*)s)[1] || 0x72 == ((const U8*)s)[1] ) ? 2 : 0 ) \
e061e593
KW
2197: ( 0x9B == ((const U8*)s)[0] ) ? \
2198 ( ( 0x57 == ((const U8*)s)[1] ) ? 2 : 0 ) \
8c112bb9 2199: ( 0xAA == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], 0xB2, 0xB3) ) ? \
29f3ce8f
KW
2200 ( ( 0x6A == ((const U8*)s)[1] ) ? 2 : 0 ) \
2201: ( 0xBF == ((const U8*)s)[0] ) ? \
8c112bb9 2202 ( ( ( 0x62 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x64, 0x68) || 0x71 == ((const U8*)s)[2] ) ) ? 3 : 0 )\
29f3ce8f 2203: ( 0xCA == ((const U8*)s)[0] ) ? \
8c112bb9
KW
2204 ( ( ( 0x4A == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x51, 0x52) ) ) ? 3 : 0 )\
2205: ( ( ( ( 0xDD == ((const U8*)s)[0] ) && ( 0x71 == ((const U8*)s)[1] ) ) && ( 0x66 == ((const U8*)s)[2] ) ) && ( inRANGE(((const U8*)s)[3], 0x41, 0x47) ) ) ? 4 : 0 )
a1b2a50f
KW
2206
2207/*** GENERATED CODE ***/
2208#define is_PROBLEMATIC_LOCALE_FOLDEDS_START_cp(cp) \
2209( cp <= 0xFF || ( 0xFF < cp && \
6d2bbfb0 2210( inRANGE(cp, 0x130, 0x131) || ( 0x131 < cp && \
a1b2a50f
KW
2211( 0x149 == cp || ( 0x149 < cp && \
2212( 0x178 == cp || ( 0x178 < cp && \
2213( 0x17F == cp || ( 0x17F < cp && \
2214( 0x1F0 == cp || ( 0x1F0 < cp && \
2215( 0x2BC == cp || ( 0x2BC < cp && \
2216( 0x39C == cp || ( 0x39C < cp && \
2217( 0x3BC == cp || ( 0x3BC < cp && \
e42cde6b 2218( inRANGE(cp, 0x1E96, 0x1E9A) || ( 0x1E9A < cp && \
a1b2a50f 2219( 0x1E9E == cp || ( 0x1E9E < cp && \
6d2bbfb0 2220( inRANGE(cp, 0x212A, 0x212B) || inRANGE(cp, 0xFB00, 0xFB06) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )
a1b2a50f
KW
2221
2222/*
2223 PATWS: pattern white space
2224
099323b4 2225 \p{_Perl_PatWS}
a1b2a50f
KW
2226*/
2227/*** GENERATED CODE ***/
2228#define is_PATWS_safe(s,e,is_utf8) \
dd9bc2b0 2229( ( LIKELY((e) > (s)) ) ? \
fdc26d94 2230 ( ( '\t' == ((const U8*)s)[0] || inRANGE(((const U8*)s)[0], '\v', '\r') || 0x15 == ((const U8*)s)[0] || '\n' == ((const U8*)s)[0] || ' ' == ((const U8*)s)[0] ) ? 1\
29f3ce8f 2231 : ( ( is_utf8 && LIKELY(((e) - (s)) >= UTF8SKIP(s)) ) && ( 0xCA == ((const U8*)s)[0] ) ) ? ( ( 0x41 == ((const U8*)s)[1] ) ?\
8c112bb9
KW
2232 ( ( inRANGE(((const U8*)s)[2], 0x55, 0x56) ) ? 3 : 0 ) \
2233 : ( ( 0x42 == ((const U8*)s)[1] ) && ( inRANGE(((const U8*)s)[2], 0x49, 0x4A) ) ) ? 3 : 0 ) : 0 )\
a1b2a50f
KW
2234: 0 )
2235
a1b2a50f
KW
2236#endif /* EBCDIC 037 */
2237
6a5bc5ac 2238#endif /* PERL_REGCHARCLASS_H_ */
d10c72f2 2239
542a7545 2240/* Generated from:
b555069b 2241 * d60b1a3dffe16c4aaaf3f00d21993bb320d05e9828b106182214764d4c69935c lib/Unicode/UCD.pm
011c085a 2242 * ce96627d4fc91b4fd886c409caeb9b76cf7bd345e12f05c6701add7f233f6437 lib/unicore/ArabicShaping.txt
b6dbf1d3
UC
2243 * 0e69eef3da722cc104522d8372e86d5b86bb7afcc761b0c991e39e832294946d lib/unicore/BidiBrackets.txt
2244 * a00d9d21585106a52113fb7b1d3d0373a5835be72e76862fb559ebddd474d70e lib/unicore/BidiMirroring.txt
2245 * 81a82b6a9fcf1a9c12f588d7a1decd73a9afdc4cac95b0eb7e576e7942d6c19f lib/unicore/Blocks.txt
2246 * 99d231d7c91688bbe8ca8ccebcc2f46b5b222f844babe4827295bae11e2abe5f lib/unicore/CaseFolding.txt
2247 * 38badafd818d8405324fe298c0676be0c95186368c84b5368375fd871a645144 lib/unicore/CompositionExclusions.txt
2248 * e779a443d3aa2a3166a15becaa2b737c922480e32c0453d5956093633555078f lib/unicore/DAge.txt
2249 * a5d45f59b39deaab3c72ce8c1a2e212a5e086dff11b1f9d5bb0e352642e82248 lib/unicore/DCoreProperties.txt
2250 * 3ac44e11c84bdaf6b207d2c2c20eed857ae17052393fc7f71b0fe951186ba906 lib/unicore/DNormalizationProps.txt
2251 * 4f822ec7a9ebbb3138ad29bade8b9688d25b39c7a3c0b7431f01e7229e4fcb6e lib/unicore/EastAsianWidth.txt
2252 * fc535aa1047a70105ab9a22c2b4c3f363a2ff02fe48ebbc5eeb9873b2752ff0b lib/unicore/EquivalentUnifiedIdeograph.txt
2253 * b9c5158ce944d2fec57e0e4ecb716bdabfc3bdde73525f1772fe03f61a30d473 lib/unicore/HangulSyllableType.txt
011c085a
KW
2254 * 36c1b2a626ff1fb23b8b21e6ea8712698f8ce668dded1cb48b8ddf6a6a1b04e9 lib/unicore/IdStatus.txt
2255 * 4857c4ffa3898e6128b2d46b0a02e499a663fb91464a69ef3611096f01293acc lib/unicore/IdType.txt
b6dbf1d3
UC
2256 * 69197b019fa5f2fb0d8c6ed1ed8acb9f2e8b5b8f45a947953ffa652f3bf54983 lib/unicore/IndicPositionalCategory.txt
2257 * 6604e2f0fde7428675364aa0006bc686b79488dcc60ae8cb29800af2be3352e8 lib/unicore/IndicSyllabicCategory.txt
2258 * 84ead63924aaa74b988b2eaf254a8733276ed108633ce2ef77a9ee1de7818162 lib/unicore/Jamo.txt
011c085a 2259 * d5abcd8f54c8a2aa912924c485ccf7f968ad98feaa303d8e9a29ad89172f1faf lib/unicore/LineBreak.txt
b6dbf1d3
UC
2260 * 985128e8c8b2540233331d9b27d897d2c23bd5bcf1d05da960befce6efc59542 lib/unicore/NameAliases.txt
2261 * 27282b8aa01d4d0c44aef436cb74195ae8639ffa187aeee4e6247af76febea76 lib/unicore/NamedSequences.txt
2262 * 485b5a3ed25dbf1f94dfa5a9b69d8b4550ffd0c33045ccc55ccfd7c80b2a40cf lib/unicore/PropList.txt
2263 * 6b3902e9268cd843fe65cbdea992108c9528343ec0679f800b96f356bb553e5a lib/unicore/PropValueAliases.txt
2264 * 2bd5777847e3d6add3c7e5c0d1393ddcab89e5a0ac3ff498cb0c53041f0b86e4 lib/unicore/PropertyAliases.txt
2265 * 03a61dc89422e44cc2b73e8e893321007880ab69e2a4d281c0f1bc29c602b9d0 lib/unicore/ScriptExtensions.txt
2266 * 9a5ed1ec9b5f0d7147e9371ad792ab39203611af7637cff2aa4a5c663b172cde lib/unicore/Scripts.txt
2267 * 6424312f1dc39b22e0ff9c0ffb13dfad424d9b03e6a6dc6bca941f6bf5ef1ffd lib/unicore/SpecialCasing.txt
2268 * bdbffbbfc8ad4d3a6d01b5891510458f3d36f7170422af4ea2bed3211a73e8bb lib/unicore/UnicodeData.txt
2269 * 160f41816234addb511901d5f21febd69574578dd93de6ef8153e35693325575 lib/unicore/VerticalOrientation.txt
2270 * 32dfb37d21db530529a6ec3dc13d96f21f8e7c7faf7ff3db8a9760cd76cec81d lib/unicore/auxiliary/GCBTest.txt
2271 * 2bd3c5e2d62701ff81fb3ec318e179a4618cabb1493b1e0dd2b4e7e56c5437c4 lib/unicore/auxiliary/GraphemeBreakProperty.txt
2272 * c51fbebfa82a0f36473b44bfd71d5ef6cb6a1f81fb313375dc9a1910d79bb2b6 lib/unicore/auxiliary/LBTest.txt
2273 * 80b0107750818d8f370bd120b6fe56b6855b60581f72affe8b60409a469b4b65 lib/unicore/auxiliary/SBTest.txt
2274 * 09e3166ebab166ac630a227f77f4e794ebd433271abd5588f5a67e7f199c71ee lib/unicore/auxiliary/SentenceBreakProperty.txt
2275 * bf5373ce28a5df06796c93dc159dd15a997bb2950c92704b40ae8190cfc3716d lib/unicore/auxiliary/WBTest.txt
2276 * a2b7373cf2fe3fa3b26dbb53405ca849985f771ff47f1c61743978003ff80499 lib/unicore/auxiliary/WordBreakProperty.txt
011c085a 2277 * d2686f400a638c80775d7c662556fb8fa8dd3bbe4aa548d9d31624264c6e1bb1 lib/unicore/emoji/emoji.txt
b6dbf1d3
UC
2278 * b827ae5da8c2b08947cc9a120a7b7fd2f1676fb160b508df78075381635b127c lib/unicore/extracted/DBidiClass.txt
2279 * 6fdc5b5ef40444a8f0c772e6b67c00498d4216fe0c0fdf76744ce338f2ad3810 lib/unicore/extracted/DBinaryProperties.txt
2280 * e14928a5bf6ad5958a80332bd42e96e14420080a95c660e5da29384e496755d0 lib/unicore/extracted/DCombiningClass.txt
2281 * 579a03281fbe87b78d5d9a8523de4d255edd7e4ca6eab0e4c7729de97e9b89b1 lib/unicore/extracted/DDecompositionType.txt
2282 * ad83c59b257e9d480ffd3001d4ac240c5fed7cb1919453e1c4e8877035256bcd lib/unicore/extracted/DEastAsianWidth.txt
2283 * 4502f0969e4e6558c4b4c6ca4c23dad70b863d61dd3d5eed1a62a6c3c99fd570 lib/unicore/extracted/DGeneralCategory.txt
2284 * 00bb88b89e2adb646f3177f9444e2d3192386b81a5de9556104b338274b253e1 lib/unicore/extracted/DJoinGroup.txt
2285 * ac835b6e11a60c9820d3cf2d1cb0558dd68efb8f53f404a51632e4726690a6d7 lib/unicore/extracted/DJoinType.txt
011c085a 2286 * baba9dfc133e3cb770a89aaf0973b1341fa61c2da6c176baf6428898b3b568d8 lib/unicore/extracted/DLineBreak.txt
b6dbf1d3
UC
2287 * 6d4a8c945dd7db83ed617cbb7d937de7f4ecf016ff22970d846e996a7c9a2a5d lib/unicore/extracted/DNumType.txt
2288 * 5b7c14380d5cceeaffcfbc18db1ed936391d2af2d51f5a41f1a17b692c77e59b lib/unicore/extracted/DNumValues.txt
2e8ed713 2289 * ee0dd174fd5b158d82dfea95d7d822ca0bfcd490182669353dca3ab39a8ee807 lib/unicore/mktables
b6dbf1d3 2290 * 50b85a67451145545a65cea370dab8d3444fbfe07e9c34cef560c5b7da9d3eef lib/unicore/version
c11f6329 2291 * 2680b9254eb236c5c090f11b149605043e8c8433661b96efc4a42fb4709342a5 regen/charset_translations.pl
6d2bbfb0 2292 * acef4a732cb0cf63f720e29d8f25b0574a8ba18d553920197d459ad7950c3fd9 regen/regcharclass.pl
114fc8b6 2293 * c0a5e4cb2b9ffad78691938e122c1310bbc98aca2364af243e5c6b2ec0f59dc3 regen/regcharclass_multi_char_folds.pl
542a7545 2294 * ex: set ro: */