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