This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Reindent bash functions properly
[perl5.git] / regcharclass.h
CommitLineData
58fbde93
RGS
1/* -*- buffer-read-only: t -*-
2 *
3 * regcharclass.h
4 *
5 * Copyright (C) 2007, by Larry Wall and others
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 !!!!!!!
11 * This file is built by Porting/regcharclass.pl.
32e6a07c 12 * (Generated at: Tue Apr 24 12:19:13 2007 GMT)
58fbde93
RGS
13 * Any changes made here will be lost!
14 */
12b72891
RGS
15
16/*
17 LNBREAK: Line Break: \R
18
58fbde93 19 "\x0D\x0A" # CRLF - Network (Windows) line ending
12b72891
RGS
20 0x0A # LF | LINE FEED
21 0x0B # VT | VERTICAL TAB
22 0x0C # FF | FORM FEED
23 0x0D # CR | CARRIAGE RETURN
24 0x85 # NEL | NEXT LINE
25 0x2028 # LINE SEPARATOR
26 0x2029 # PARAGRAPH SEPARATOR
27*/
28/*** GENERATED CODE ***/
29#define is_LNBREAK(s,is_utf8) \
0ccab2bc
RGS
30( ( ((U8*)s)[0] == 0x0D ) ? \
31 ( ( ((U8*)s)[1] == 0x0A ) ? 2 : 1 ) : \
32 ( (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C) ? 1 : \
e1d1eefb 33( (is_utf8) ? \
0ccab2bc
RGS
34 ( ( ((U8*)s)[0] == 0xC2 ) ? \
35 ( ( ((U8*)s)[1] == 0x85 ) ? 2 : 0 ) : \
36 (((( ((U8*)s)[0] == 0xE2 ) && ( ((U8*)s)[1] == 0x80 )) && ( ((U8*)s)[2] == 0xA8 || ((U8*)s)[2] == 0xA9 )) ? 3 : 0) ) :\
37 ( ((U8*)s)[0] == 0x85 ) ) ) )
e1d1eefb 38
12b72891
RGS
39/*** GENERATED CODE ***/
40#define is_LNBREAK_safe(s,e,is_utf8) \
e1d1eefb 41( ( (e) - (s) > 2 ) ? \
0ccab2bc
RGS
42 ( ( ((U8*)s)[0] == 0x0D ) ? \
43 ( ( ((U8*)s)[1] == 0x0A ) ? 2 : 1 ) : \
44 ( (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C) ? 1 : \
e1d1eefb 45( (is_utf8) ? \
0ccab2bc
RGS
46 ( ( ((U8*)s)[0] == 0xC2 ) ? \
47 ( ( ((U8*)s)[1] == 0x85 ) ? 2 : 0 ) : \
48 (((( ((U8*)s)[0] == 0xE2 ) && ( ((U8*)s)[1] == 0x80 )) && ( ((U8*)s)[2] == 0xA8 || ((U8*)s)[2] == 0xA9 )) ? 3 : 0) ) :\
49 ( ((U8*)s)[0] == 0x85 ) ) ) ) : \
e1d1eefb 50( ( (e) - (s) > 1 ) ? \
0ccab2bc
RGS
51 ( ( ((U8*)s)[0] == 0x0D ) ? \
52 ( ( ((U8*)s)[1] == 0x0A ) ? 2 : 1 ) : \
53 ( (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C) ? 1 : \
e1d1eefb 54( (is_utf8) ? \
0ccab2bc
RGS
55 ((( ((U8*)s)[0] == 0xC2 ) && ( ((U8*)s)[1] == 0x85 )) ? 2 : 0) : \
56 ( ((U8*)s)[0] == 0x85 ) ) ) ) : \
e1d1eefb 57( ( (e) - (s) > 0 ) ? \
0ccab2bc 58 ( (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D) ? 1 : \
e1d1eefb 59( (!is_utf8) ? \
0ccab2bc 60 ( ((U8*)s)[0] == 0x85 ) : 0 ) ) : 0 ) ) )
e1d1eefb 61
12b72891
RGS
62/*** GENERATED CODE ***/
63#define is_LNBREAK_utf8(s) \
0ccab2bc
RGS
64( ( ((U8*)s)[0] == 0xC2 ) ? \
65 ( ( ((U8*)s)[1] == 0x85 ) ? 2 : 0 ) : \
66 ( ( ((U8*)s)[0] == 0xE2 ) ? \
67 ((( ((U8*)s)[1] == 0x80 ) && ( ((U8*)s)[2] == 0xA8 || ((U8*)s)[2] == 0xA9 )) ? 3 : 0) :\
68 ( ( ((U8*)s)[0] == 0x0D ) ? \
69 ( ( ((U8*)s)[1] == 0x0A ) ? 2 : 1 ) : \
70 (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C) ) ) )
e1d1eefb 71
12b72891
RGS
72/*** GENERATED CODE ***/
73#define is_LNBREAK_utf8_safe(s,e) \
e1d1eefb 74( ( (e) - (s) > 2 ) ? \
0ccab2bc
RGS
75 ( ( ((U8*)s)[0] == 0xC2 ) ? \
76 ( ( ((U8*)s)[1] == 0x85 ) ? 2 : 0 ) : \
77 ( ( ((U8*)s)[0] == 0xE2 ) ? \
78 ((( ((U8*)s)[1] == 0x80 ) && ( ((U8*)s)[2] == 0xA8 || ((U8*)s)[2] == 0xA9 )) ? 3 : 0) :\
79 ( ( ((U8*)s)[0] == 0x0D ) ? \
80 ( ( ((U8*)s)[1] == 0x0A ) ? 2 : 1 ) : \
81 (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C) ) ) ) : \
e1d1eefb 82( ( (e) - (s) > 1 ) ? \
0ccab2bc
RGS
83 ( ( ((U8*)s)[0] == 0xC2 ) ? \
84 ( ( ((U8*)s)[1] == 0x85 ) ? 2 : 0 ) : \
85 ( ( ((U8*)s)[0] == 0x0D ) ? \
86 ( ( ((U8*)s)[1] == 0x0A ) ? 2 : 1 ) : \
87 (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C) ) ) : \
e1d1eefb 88( ( (e) - (s) > 0 ) ? \
0ccab2bc 89 (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D) : 0 ) ) )
e1d1eefb 90
12b72891
RGS
91/*** GENERATED CODE ***/
92#define is_LNBREAK_latin1(s) \
0ccab2bc
RGS
93( ( ((U8*)s)[0] == 0x0D ) ? \
94 ( ( ((U8*)s)[1] == 0x0A ) ? 2 : 1 ) : \
95 ( (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C) || ((U8*)s)[0] == 0x85 ) )
e1d1eefb 96
12b72891
RGS
97/*** GENERATED CODE ***/
98#define is_LNBREAK_latin1_safe(s,e) \
e1d1eefb 99( ( (e) - (s) > 1 ) ? \
0ccab2bc
RGS
100 ( ( ((U8*)s)[0] == 0x0D ) ? \
101 ( ( ((U8*)s)[1] == 0x0A ) ? 2 : 1 ) : \
102 ( (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0C) || ((U8*)s)[0] == 0x85 ) ) :\
e1d1eefb 103( ( (e) - (s) > 0 ) ? \
0ccab2bc 104 ( (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D) || ((U8*)s)[0] == 0x85 ) : 0 ) )
e1d1eefb 105
12b72891
RGS
106/*** GENERATED CODE ***/
107#define is_LNBREAK_cp(cp) \
32e6a07c
YO
108( (0x0A <= cp && cp <= 0x0D) ||( cp > 0x0D && \
109( cp == 0x85 ||( cp > 0x85 && \
110( cp == 0x2028 ||( cp > 0x2028 && \
0ccab2bc 111cp == 0x2029 ) ) ) ) ) )
12b72891
RGS
112
113/*
114 HORIZWS: Horizontal Whitespace: \h \H
115
116 0x09 # HT
117 0x20 # SPACE
118 0xa0 # NBSP
119 0x1680 # OGHAM SPACE MARK
120 0x180e # MONGOLIAN VOWEL SEPARATOR
121 0x2000 # EN QUAD
122 0x2001 # EM QUAD
123 0x2002 # EN SPACE
124 0x2003 # EM SPACE
125 0x2004 # THREE-PER-EM SPACE
126 0x2005 # FOUR-PER-EM SPACE
127 0x2006 # SIX-PER-EM SPACE
128 0x2007 # FIGURE SPACE
129 0x2008 # PUNCTUATION SPACE
130 0x2009 # THIN SPACE
131 0x200A # HAIR SPACE
132 0x202f # NARROW NO-BREAK SPACE
133 0x205f # MEDIUM MATHEMATICAL SPACE
134 0x3000 # IDEOGRAPHIC SPACE
135*/
136/*** GENERATED CODE ***/
137#define is_HORIZWS(s,is_utf8) \
0ccab2bc 138( ( ((U8*)s)[0] == 0x09 || ((U8*)s)[0] == 0x20 ) ? 1 : \
e1d1eefb 139( (is_utf8) ? \
0ccab2bc
RGS
140 ( ( ((U8*)s)[0] == 0xC2 ) ? \
141 ( ( ((U8*)s)[1] == 0xA0 ) ? 2 : 0 ) : \
142 ( ( ((U8*)s)[0] == 0xE1 ) ? \
143 ( ( ((U8*)s)[1] == 0xA0 ) ? \
144 ( ( ((U8*)s)[2] == 0x8E ) ? 3 : 0 ) : \
145 ((( ((U8*)s)[1] == 0x9A ) && ( ((U8*)s)[2] == 0x80 )) ? 3 : 0) ) : \
146 ( ( ((U8*)s)[0] == 0xE2 ) ? \
147 ( ( ((U8*)s)[1] == 0x81 ) ? \
148 ( ( ((U8*)s)[2] == 0x9F ) ? 3 : 0 ) : \
149 ((( ((U8*)s)[1] == 0x80 ) && ( (0x80 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x8A) || ((U8*)s)[2] == 0xAF )) ? 3 : 0) ) :\
150 (((( ((U8*)s)[0] == 0xE3 ) && ( ((U8*)s)[1] == 0x80 )) && ( ((U8*)s)[2] == 0x80 )) ? 3 : 0) ) ) ) :\
151 ( ((U8*)s)[0] == 0xA0 ) ) )
e1d1eefb 152
12b72891
RGS
153/*** GENERATED CODE ***/
154#define is_HORIZWS_safe(s,e,is_utf8) \
e1d1eefb 155( ( (e) - (s) > 2 ) ? \
0ccab2bc 156 ( ( ((U8*)s)[0] == 0x09 || ((U8*)s)[0] == 0x20 ) ? 1 : \
e1d1eefb 157( (is_utf8) ? \
0ccab2bc
RGS
158 ( ( ((U8*)s)[0] == 0xC2 ) ? \
159 ( ( ((U8*)s)[1] == 0xA0 ) ? 2 : 0 ) : \
160 ( ( ((U8*)s)[0] == 0xE1 ) ? \
161 ( ( ((U8*)s)[1] == 0xA0 ) ? \
162 ( ( ((U8*)s)[2] == 0x8E ) ? 3 : 0 ) : \
163 ((( ((U8*)s)[1] == 0x9A ) && ( ((U8*)s)[2] == 0x80 )) ? 3 : 0) ) : \
164 ( ( ((U8*)s)[0] == 0xE2 ) ? \
165 ( ( ((U8*)s)[1] == 0x81 ) ? \
166 ( ( ((U8*)s)[2] == 0x9F ) ? 3 : 0 ) : \
167 ((( ((U8*)s)[1] == 0x80 ) && ( (0x80 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x8A) || ((U8*)s)[2] == 0xAF )) ? 3 : 0) ) :\
168 (((( ((U8*)s)[0] == 0xE3 ) && ( ((U8*)s)[1] == 0x80 )) && ( ((U8*)s)[2] == 0x80 )) ? 3 : 0) ) ) ) :\
169 ( ((U8*)s)[0] == 0xA0 ) ) ) : \
e1d1eefb 170( ( (e) - (s) > 1 ) ? \
0ccab2bc 171 ( ( ((U8*)s)[0] == 0x09 || ((U8*)s)[0] == 0x20 ) ? 1 : \
e1d1eefb 172( (is_utf8) ? \
0ccab2bc
RGS
173 ((( ((U8*)s)[0] == 0xC2 ) && ( ((U8*)s)[1] == 0xA0 )) ? 2 : 0) : \
174 ( ((U8*)s)[0] == 0xA0 ) ) ) : \
e1d1eefb 175( ( (e) - (s) > 0 ) ? \
0ccab2bc 176 ( ( ((U8*)s)[0] == 0x09 || ((U8*)s)[0] == 0x20 ) ? 1 : \
e1d1eefb 177( (!is_utf8) ? \
0ccab2bc 178 ( ((U8*)s)[0] == 0xA0 ) : 0 ) ) : 0 ) ) )
e1d1eefb 179
12b72891
RGS
180/*** GENERATED CODE ***/
181#define is_HORIZWS_utf8(s) \
0ccab2bc
RGS
182( ( ((U8*)s)[0] == 0xC2 ) ? \
183 ( ( ((U8*)s)[1] == 0xA0 ) ? 2 : 0 ) : \
184 ( ( ((U8*)s)[0] == 0xE1 ) ? \
185 ( ( ((U8*)s)[1] == 0xA0 ) ? \
186 ( ( ((U8*)s)[2] == 0x8E ) ? 3 : 0 ) : \
187 ((( ((U8*)s)[1] == 0x9A ) && ( ((U8*)s)[2] == 0x80 )) ? 3 : 0) ) : \
188 ( ( ((U8*)s)[0] == 0xE2 ) ? \
189 ( ( ((U8*)s)[1] == 0x81 ) ? \
190 ( ( ((U8*)s)[2] == 0x9F ) ? 3 : 0 ) : \
191 ((( ((U8*)s)[1] == 0x80 ) && ( (0x80 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x8A) || ((U8*)s)[2] == 0xAF )) ? 3 : 0) ) :\
192 ( ( ((U8*)s)[0] == 0xE3 ) ? \
193 ((( ((U8*)s)[1] == 0x80 ) && ( ((U8*)s)[2] == 0x80 )) ? 3 : 0) : \
194 ( ((U8*)s)[0] == 0x09 || ((U8*)s)[0] == 0x20 ) ) ) ) )
e1d1eefb 195
12b72891
RGS
196/*** GENERATED CODE ***/
197#define is_HORIZWS_utf8_safe(s,e) \
e1d1eefb 198( ( (e) - (s) > 2 ) ? \
0ccab2bc
RGS
199 ( ( ((U8*)s)[0] == 0xC2 ) ? \
200 ( ( ((U8*)s)[1] == 0xA0 ) ? 2 : 0 ) : \
201 ( ( ((U8*)s)[0] == 0xE1 ) ? \
202 ( ( ((U8*)s)[1] == 0xA0 ) ? \
203 ( ( ((U8*)s)[2] == 0x8E ) ? 3 : 0 ) : \
204 ((( ((U8*)s)[1] == 0x9A ) && ( ((U8*)s)[2] == 0x80 )) ? 3 : 0) ) : \
205 ( ( ((U8*)s)[0] == 0xE2 ) ? \
206 ( ( ((U8*)s)[1] == 0x81 ) ? \
207 ( ( ((U8*)s)[2] == 0x9F ) ? 3 : 0 ) : \
208 ((( ((U8*)s)[1] == 0x80 ) && ( (0x80 <= ((U8*)s)[2] && ((U8*)s)[2] <= 0x8A) || ((U8*)s)[2] == 0xAF )) ? 3 : 0) ) :\
209 ( ( ((U8*)s)[0] == 0xE3 ) ? \
210 ((( ((U8*)s)[1] == 0x80 ) && ( ((U8*)s)[2] == 0x80 )) ? 3 : 0) : \
211 ( ((U8*)s)[0] == 0x09 || ((U8*)s)[0] == 0x20 ) ) ) ) ) : \
e1d1eefb 212( ( (e) - (s) > 1 ) ? \
0ccab2bc
RGS
213 ( ( ((U8*)s)[0] == 0xC2 ) ? \
214 ( ( ((U8*)s)[1] == 0xA0 ) ? 2 : 0 ) : \
215 ( ((U8*)s)[0] == 0x09 || ((U8*)s)[0] == 0x20 ) ) : \
e1d1eefb 216( ( (e) - (s) > 0 ) ? \
0ccab2bc 217 ( ((U8*)s)[0] == 0x09 || ((U8*)s)[0] == 0x20 ) : 0 ) ) )
e1d1eefb 218
12b72891
RGS
219/*** GENERATED CODE ***/
220#define is_HORIZWS_latin1(s) \
0ccab2bc 221( ((U8*)s)[0] == 0x09 || ((U8*)s)[0] == 0x20 || ((U8*)s)[0] == 0xA0 )
e1d1eefb 222
12b72891
RGS
223/*** GENERATED CODE ***/
224#define is_HORIZWS_latin1_safe(s,e) \
e1d1eefb 225( ( (e) - (s) > 0 ) ? \
0ccab2bc 226 ( ((U8*)s)[0] == 0x09 || ((U8*)s)[0] == 0x20 || ((U8*)s)[0] == 0xA0 ) : 0 )
e1d1eefb 227
12b72891
RGS
228/*** GENERATED CODE ***/
229#define is_HORIZWS_cp(cp) \
32e6a07c
YO
230( cp == 0x09 ||( cp > 0x09 && \
231( cp == 0x20 ||( cp > 0x20 && \
232( cp == 0xA0 ||( cp > 0xA0 && \
233( cp == 0x1680 ||( cp > 0x1680 && \
234( cp == 0x180E ||( cp > 0x180E && \
235( (0x2000 <= cp && cp <= 0x200A) ||( cp > 0x200A && \
236( cp == 0x202F ||( cp > 0x202F && \
237( cp == 0x205F ||( cp > 0x205F && \
0ccab2bc 238cp == 0x3000 ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )
e1d1eefb 239
12b72891
RGS
240/*
241 VERTWS: Vertical Whitespace: \v \V
e1d1eefb 242
12b72891
RGS
243 0x0A # LF
244 0x0B # VT
58fbde93 245 0x0C # FF
12b72891
RGS
246 0x0D # CR
247 0x85 # NEL
248 0x2028 # LINE SEPARATOR
249 0x2029 # PARAGRAPH SEPARATOR
250*/
251/*** GENERATED CODE ***/
252#define is_VERTWS(s,is_utf8) \
0ccab2bc 253( (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D) ? 1 : \
e1d1eefb 254( (is_utf8) ? \
0ccab2bc
RGS
255 ( ( ((U8*)s)[0] == 0xC2 ) ? \
256 ( ( ((U8*)s)[1] == 0x85 ) ? 2 : 0 ) : \
257 (((( ((U8*)s)[0] == 0xE2 ) && ( ((U8*)s)[1] == 0x80 )) && ( ((U8*)s)[2] == 0xA8 || ((U8*)s)[2] == 0xA9 )) ? 3 : 0) ) :\
258 ( ((U8*)s)[0] == 0x85 ) ) )
e1d1eefb 259
12b72891
RGS
260/*** GENERATED CODE ***/
261#define is_VERTWS_safe(s,e,is_utf8) \
e1d1eefb 262( ( (e) - (s) > 2 ) ? \
0ccab2bc 263 ( (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D) ? 1 : \
e1d1eefb 264( (is_utf8) ? \
0ccab2bc
RGS
265 ( ( ((U8*)s)[0] == 0xC2 ) ? \
266 ( ( ((U8*)s)[1] == 0x85 ) ? 2 : 0 ) : \
267 (((( ((U8*)s)[0] == 0xE2 ) && ( ((U8*)s)[1] == 0x80 )) && ( ((U8*)s)[2] == 0xA8 || ((U8*)s)[2] == 0xA9 )) ? 3 : 0) ) :\
268 ( ((U8*)s)[0] == 0x85 ) ) ) : \
e1d1eefb 269( ( (e) - (s) > 1 ) ? \
0ccab2bc 270 ( (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D) ? 1 : \
e1d1eefb 271( (is_utf8) ? \
0ccab2bc
RGS
272 ((( ((U8*)s)[0] == 0xC2 ) && ( ((U8*)s)[1] == 0x85 )) ? 2 : 0) : \
273 ( ((U8*)s)[0] == 0x85 ) ) ) : \
e1d1eefb 274( ( (e) - (s) > 0 ) ? \
0ccab2bc 275 ( (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D) ? 1 : \
e1d1eefb 276( (!is_utf8) ? \
0ccab2bc 277 ( ((U8*)s)[0] == 0x85 ) : 0 ) ) : 0 ) ) )
e1d1eefb 278
12b72891
RGS
279/*** GENERATED CODE ***/
280#define is_VERTWS_utf8(s) \
0ccab2bc
RGS
281( ( ((U8*)s)[0] == 0xC2 ) ? \
282 ( ( ((U8*)s)[1] == 0x85 ) ? 2 : 0 ) : \
283 ( ( ((U8*)s)[0] == 0xE2 ) ? \
284 ((( ((U8*)s)[1] == 0x80 ) && ( ((U8*)s)[2] == 0xA8 || ((U8*)s)[2] == 0xA9 )) ? 3 : 0) :\
285 (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D) ) )
e1d1eefb 286
12b72891
RGS
287/*** GENERATED CODE ***/
288#define is_VERTWS_utf8_safe(s,e) \
e1d1eefb 289( ( (e) - (s) > 2 ) ? \
0ccab2bc
RGS
290 ( ( ((U8*)s)[0] == 0xC2 ) ? \
291 ( ( ((U8*)s)[1] == 0x85 ) ? 2 : 0 ) : \
292 ( ( ((U8*)s)[0] == 0xE2 ) ? \
293 ((( ((U8*)s)[1] == 0x80 ) && ( ((U8*)s)[2] == 0xA8 || ((U8*)s)[2] == 0xA9 )) ? 3 : 0) :\
294 (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D) ) ) : \
e1d1eefb 295( ( (e) - (s) > 1 ) ? \
0ccab2bc
RGS
296 ( ( ((U8*)s)[0] == 0xC2 ) ? \
297 ( ( ((U8*)s)[1] == 0x85 ) ? 2 : 0 ) : \
298 (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D) ) : \
e1d1eefb 299( ( (e) - (s) > 0 ) ? \
0ccab2bc 300 (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D) : 0 ) ) )
e1d1eefb 301
12b72891
RGS
302/*** GENERATED CODE ***/
303#define is_VERTWS_latin1(s) \
0ccab2bc 304( (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D) || ((U8*)s)[0] == 0x85 )
e1d1eefb 305
12b72891
RGS
306/*** GENERATED CODE ***/
307#define is_VERTWS_latin1_safe(s,e) \
e1d1eefb 308( ( (e) - (s) > 0 ) ? \
0ccab2bc 309 ( (0x0A <= ((U8*)s)[0] && ((U8*)s)[0] <= 0x0D) || ((U8*)s)[0] == 0x85 ) : 0 )
e1d1eefb 310
12b72891
RGS
311/*** GENERATED CODE ***/
312#define is_VERTWS_cp(cp) \
32e6a07c
YO
313( (0x0A <= cp && cp <= 0x0D) ||( cp > 0x0D && \
314( cp == 0x85 ||( cp > 0x85 && \
315( cp == 0x2028 ||( cp > 0x2028 && \
0ccab2bc 316cp == 0x2029 ) ) ) ) ) )
e1d1eefb 317
32e6a07c
YO
318/*
319 TRICKYFOLD: Problematic fold case letters.
320
321 0x00DF # LATIN SMALL LETTER SHARP S
322 0x0390 # GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS
323 0x03B0 # GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS
324*/
325/*** GENERATED CODE ***/
326#define is_TRICKYFOLD(s,is_utf8) \
327( (is_utf8) ? \
328 ( ( ((U8*)s)[0] == 0xC3 ) ? \
329 ( ( ((U8*)s)[1] == 0x9F ) ? 2 : 0 ) : \
330 ((( ((U8*)s)[0] == 0xCE ) && ( ((U8*)s)[1] == 0x90 || ((U8*)s)[1] == 0xB0 )) ? 2 : 0) ) :\
331 ( ((U8*)s)[0] == 0xDF ) )
332
333/*** GENERATED CODE ***/
334#define is_TRICKYFOLD_safe(s,e,is_utf8) \
335( ( (e) - (s) > 1 ) ? \
336( (is_utf8) ? \
337 ( ( ((U8*)s)[0] == 0xC3 ) ? \
338 ( ( ((U8*)s)[1] == 0x9F ) ? 2 : 0 ) : \
339 ((( ((U8*)s)[0] == 0xCE ) && ( ((U8*)s)[1] == 0x90 || ((U8*)s)[1] == 0xB0 )) ? 2 : 0) ) :\
340 ( ((U8*)s)[0] == 0xDF ) ) : \
341((( (e) - (s) > 0 ) && (!is_utf8)) ? ( ((U8*)s)[0] == 0xDF ) : 0) )
342
343/*** GENERATED CODE ***/
344#define is_TRICKYFOLD_utf8(s) \
345( ( ((U8*)s)[0] == 0xC3 ) ? \
346 ( ( ((U8*)s)[1] == 0x9F ) ? 2 : 0 ) : \
347 ((( ((U8*)s)[0] == 0xCE ) && ( ((U8*)s)[1] == 0x90 || ((U8*)s)[1] == 0xB0 )) ? 2 : 0) )
348
349/*** GENERATED CODE ***/
350#define is_TRICKYFOLD_utf8_safe(s,e) \
351( ( (e) - (s) > 1 ) ? \
352 ( ( ((U8*)s)[0] == 0xC3 ) ? \
353 ( ( ((U8*)s)[1] == 0x9F ) ? 2 : 0 ) : \
354 ((( ((U8*)s)[0] == 0xCE ) && ( ((U8*)s)[1] == 0x90 || ((U8*)s)[1] == 0xB0 )) ? 2 : 0) ) : 0 )
355
356/*** GENERATED CODE ***/
357#define is_TRICKYFOLD_latin1(s) \
358( ((U8*)s)[0] == 0xDF )
359
360/*** GENERATED CODE ***/
361#define is_TRICKYFOLD_latin1_safe(s,e) \
362( ( (e) - (s) > 0 ) ? \
363 ( ((U8*)s)[0] == 0xDF ) : 0 )
364
365/*** GENERATED CODE ***/
366#define is_TRICKYFOLD_cp(cp) \
367( cp == 0xDF ||( cp > 0xDF && \
368( cp == 0x390 ||( cp > 0x390 && \
369cp == 0x3B0 ) ) ) )
370
58fbde93 371/* ex: set ro: */