2004-08-18 David Daney <ddaney@avtrex.com>
[official-gcc.git] / libcpp / ucnid.h
blob04c9513c5377499e23c225880a547ef902f84397
1 /* Table of UCNs which are valid in identifiers.
2 Copyright (C) 2003 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the
6 Free Software Foundation; either version 2, or (at your option) any
7 later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
18 /* Automatically generated from cppucnid.tab, do not edit */
20 /* This file reproduces the table in ISO/IEC 9899:1999 (C99) Annex
21 D, which is itself a reproduction from ISO/IEC TR 10176:1998, and
22 the similar table from ISO/IEC 14882:1988 (C++98) Annex E, which is
23 a reproduction of ISO/IEC PDTR 10176. Unfortunately these tables
24 are not identical. */
26 #ifndef LIBCPP_UCNID_H
27 #define LIBCPP_UCNID_H
29 #define C99 1
30 #define CXX 2
31 #define DIG 4
33 struct ucnrange
35 unsigned short lo, hi;
36 unsigned short flags;
39 static const struct ucnrange ucnranges[] = {
40 { 0x00aa, 0x00aa, C99 }, /* Latin */
41 { 0x00b5, 0x00b5, C99 }, /* Special characters */
42 { 0x00b7, 0x00b7, C99 },
43 { 0x00ba, 0x00ba, C99 }, /* Latin */
44 { 0x00c0, 0x00d6, CXX|C99 },
45 { 0x00d8, 0x00f6, CXX|C99 },
46 { 0x00f8, 0x01f5, CXX|C99 },
47 { 0x01fa, 0x0217, CXX|C99 },
48 { 0x0250, 0x02a8, CXX|C99 },
49 { 0x02b0, 0x02b8, C99 }, /* Special characters */
50 { 0x02bb, 0x02bb, C99 },
51 { 0x02bd, 0x02c1, C99 },
52 { 0x02d0, 0x02d1, C99 },
53 { 0x02e0, 0x02e4, C99 },
54 { 0x037a, 0x037a, C99 },
55 { 0x0384, 0x0384, CXX }, /* Greek */
56 { 0x0386, 0x0386, C99 },
57 { 0x0388, 0x038a, CXX|C99 },
58 { 0x038c, 0x038c, CXX|C99 },
59 { 0x038e, 0x03a1, CXX|C99 },
60 { 0x03a3, 0x03ce, CXX|C99 },
61 { 0x03d0, 0x03d6, CXX|C99 },
62 { 0x03da, 0x03da, CXX|C99 },
63 { 0x03dc, 0x03dc, CXX|C99 },
64 { 0x03de, 0x03de, CXX|C99 },
65 { 0x03e0, 0x03e0, CXX|C99 },
66 { 0x03e2, 0x03f3, CXX|C99 },
67 { 0x0401, 0x040c, CXX|C99 }, /* Cyrillic */
68 { 0x040d, 0x040d, CXX },
69 { 0x040e, 0x040e, C99 },
70 { 0x040f, 0x044f, CXX|C99 },
71 { 0x0451, 0x045c, CXX|C99 },
72 { 0x045e, 0x0481, CXX|C99 },
73 { 0x0490, 0x04c4, CXX|C99 },
74 { 0x04c7, 0x04c8, CXX|C99 },
75 { 0x04cb, 0x04cc, CXX|C99 },
76 { 0x04d0, 0x04eb, CXX|C99 },
77 { 0x04ee, 0x04f5, CXX|C99 },
78 { 0x04f8, 0x04f9, CXX|C99 },
79 { 0x0531, 0x0556, CXX|C99 }, /* Armenian */
80 { 0x0559, 0x0559, C99 }, /* Special characters */
81 { 0x0561, 0x0587, CXX|C99 }, /* Armenian */
82 { 0x05b0, 0x05b9, C99 }, /* Hebrew */
83 { 0x05bb, 0x05bd, C99 },
84 { 0x05bf, 0x05bf, C99 },
85 { 0x05c1, 0x05c2, C99 },
86 { 0x05d0, 0x05ea, CXX|C99 },
87 { 0x05f0, 0x05f2, CXX|C99 },
88 { 0x05f3, 0x05f4, CXX },
89 { 0x0621, 0x063a, CXX|C99 }, /* Arabic */
90 { 0x0640, 0x0652, CXX|C99 },
91 { 0x0660, 0x0669, C99|DIG }, /* Digits */
92 { 0x0670, 0x06b7, CXX|C99 }, /* Arabic */
93 { 0x06ba, 0x06be, CXX|C99 },
94 { 0x06c0, 0x06ce, CXX|C99 },
95 { 0x06d0, 0x06dc, C99 },
96 { 0x06e5, 0x06e7, CXX|C99 },
97 { 0x06e8, 0x06e8, C99 },
98 { 0x06ea, 0x06ed, C99 },
99 { 0x06f0, 0x06f9, C99|DIG }, /* Digits */
100 { 0x0901, 0x0903, C99 }, /* Devanagari */
101 { 0x0905, 0x0939, CXX|C99 },
102 { 0x093d, 0x093d, C99 }, /* Special characters */
103 { 0x093e, 0x094d, C99 }, /* Devanagari */
104 { 0x0950, 0x0952, C99 },
105 { 0x0958, 0x0962, CXX|C99 },
106 { 0x0963, 0x0963, C99 },
107 { 0x0966, 0x096f, C99|DIG }, /* Digits */
108 { 0x0981, 0x0983, C99 }, /* Bengali */
109 { 0x0985, 0x098c, CXX|C99 },
110 { 0x098f, 0x0990, CXX|C99 },
111 { 0x0993, 0x09a8, CXX|C99 },
112 { 0x09aa, 0x09b0, CXX|C99 },
113 { 0x09b2, 0x09b2, CXX|C99 },
114 { 0x09b6, 0x09b9, CXX|C99 },
115 { 0x09be, 0x09c4, C99 },
116 { 0x09c7, 0x09c8, C99 },
117 { 0x09cb, 0x09cd, C99 },
118 { 0x09dc, 0x09dd, CXX|C99 },
119 { 0x09df, 0x09e1, CXX|C99 },
120 { 0x09e2, 0x09e3, C99 },
121 { 0x09e6, 0x09ef, C99|DIG }, /* Digits */
122 { 0x09f0, 0x09f1, CXX|C99 }, /* Bengali */
123 { 0x0a02, 0x0a02, C99 }, /* Gurmukhi */
124 { 0x0a05, 0x0a0a, CXX|C99 },
125 { 0x0a0f, 0x0a10, CXX|C99 },
126 { 0x0a13, 0x0a28, CXX|C99 },
127 { 0x0a2a, 0x0a30, CXX|C99 },
128 { 0x0a32, 0x0a33, CXX|C99 },
129 { 0x0a35, 0x0a36, CXX|C99 },
130 { 0x0a38, 0x0a39, CXX|C99 },
131 { 0x0a3e, 0x0a42, C99 },
132 { 0x0a47, 0x0a48, C99 },
133 { 0x0a4b, 0x0a4d, C99 },
134 { 0x0a59, 0x0a5c, CXX|C99 },
135 { 0x0a5e, 0x0a5e, CXX|C99 },
136 { 0x0a66, 0x0a6f, C99|DIG }, /* Digits */
137 { 0x0a74, 0x0a74, C99 }, /* Gurmukhi */
138 { 0x0a81, 0x0a83, C99 }, /* Gujarati */
139 { 0x0a85, 0x0a8b, CXX|C99 },
140 { 0x0a8d, 0x0a8d, CXX|C99 },
141 { 0x0a8f, 0x0a91, CXX|C99 },
142 { 0x0a93, 0x0aa8, CXX|C99 },
143 { 0x0aaa, 0x0ab0, CXX|C99 },
144 { 0x0ab2, 0x0ab3, CXX|C99 },
145 { 0x0ab5, 0x0ab9, CXX|C99 },
146 { 0x0abd, 0x0ac5, C99 },
147 { 0x0ac7, 0x0ac9, C99 },
148 { 0x0acb, 0x0acd, C99 },
149 { 0x0ad0, 0x0ad0, C99 },
150 { 0x0ae0, 0x0ae0, CXX|C99 },
151 { 0x0ae6, 0x0aef, C99|DIG }, /* Digits */
152 { 0x0b01, 0x0b03, C99 }, /* Oriya */
153 { 0x0b05, 0x0b0c, CXX|C99 },
154 { 0x0b0f, 0x0b10, CXX|C99 },
155 { 0x0b13, 0x0b28, CXX|C99 },
156 { 0x0b2a, 0x0b30, CXX|C99 },
157 { 0x0b32, 0x0b33, CXX|C99 },
158 { 0x0b36, 0x0b39, CXX|C99 },
159 { 0x0b3d, 0x0b3d, C99 }, /* Special characters */
160 { 0x0b3e, 0x0b43, C99 }, /* Oriya */
161 { 0x0b47, 0x0b48, C99 },
162 { 0x0b4b, 0x0b4d, C99 },
163 { 0x0b5c, 0x0b5d, CXX|C99 },
164 { 0x0b5f, 0x0b61, CXX|C99 },
165 { 0x0b66, 0x0b6f, C99|DIG }, /* Digits */
166 { 0x0b82, 0x0b83, C99 }, /* Tamil */
167 { 0x0b85, 0x0b8a, CXX|C99 },
168 { 0x0b8e, 0x0b90, CXX|C99 },
169 { 0x0b92, 0x0b95, CXX|C99 },
170 { 0x0b99, 0x0b9a, CXX|C99 },
171 { 0x0b9c, 0x0b9c, CXX|C99 },
172 { 0x0b9e, 0x0b9f, CXX|C99 },
173 { 0x0ba3, 0x0ba4, CXX|C99 },
174 { 0x0ba8, 0x0baa, CXX|C99 },
175 { 0x0bae, 0x0bb5, CXX|C99 },
176 { 0x0bb7, 0x0bb9, CXX|C99 },
177 { 0x0bbe, 0x0bc2, C99 },
178 { 0x0bc6, 0x0bc8, C99 },
179 { 0x0bca, 0x0bcd, C99 },
180 { 0x0be7, 0x0bef, C99|DIG }, /* Digits */
181 { 0x0c01, 0x0c03, C99 }, /* Telugu */
182 { 0x0c05, 0x0c0c, CXX|C99 },
183 { 0x0c0e, 0x0c10, CXX|C99 },
184 { 0x0c12, 0x0c28, CXX|C99 },
185 { 0x0c2a, 0x0c33, CXX|C99 },
186 { 0x0c35, 0x0c39, CXX|C99 },
187 { 0x0c3e, 0x0c44, C99 },
188 { 0x0c46, 0x0c48, C99 },
189 { 0x0c4a, 0x0c4d, C99 },
190 { 0x0c60, 0x0c61, CXX|C99 },
191 { 0x0c66, 0x0c6f, C99|DIG }, /* Digits */
192 { 0x0c82, 0x0c83, C99 }, /* Kannada */
193 { 0x0c85, 0x0c8c, CXX|C99 },
194 { 0x0c8e, 0x0c90, CXX|C99 },
195 { 0x0c92, 0x0ca8, CXX|C99 },
196 { 0x0caa, 0x0cb3, CXX|C99 },
197 { 0x0cb5, 0x0cb9, CXX|C99 },
198 { 0x0cbe, 0x0cc4, C99 },
199 { 0x0cc6, 0x0cc8, C99 },
200 { 0x0cca, 0x0ccd, C99 },
201 { 0x0cde, 0x0cde, C99 },
202 { 0x0ce0, 0x0ce1, CXX|C99 },
203 { 0x0ce6, 0x0cef, C99|DIG }, /* Digits */
204 { 0x0d02, 0x0d03, C99 }, /* Malayalam */
205 { 0x0d05, 0x0d0c, CXX|C99 },
206 { 0x0d0e, 0x0d10, CXX|C99 },
207 { 0x0d12, 0x0d28, CXX|C99 },
208 { 0x0d2a, 0x0d39, CXX|C99 },
209 { 0x0d3e, 0x0d43, C99 },
210 { 0x0d46, 0x0d48, C99 },
211 { 0x0d4a, 0x0d4d, C99 },
212 { 0x0d60, 0x0d61, CXX|C99 },
213 { 0x0d66, 0x0d6f, C99|DIG }, /* Digits */
214 { 0x0e01, 0x0e30, CXX|C99 }, /* Thai */
215 { 0x0e31, 0x0e31, C99 },
216 { 0x0e32, 0x0e33, CXX|C99 },
217 { 0x0e34, 0x0e3a, C99 },
218 { 0x0e40, 0x0e46, CXX|C99 },
219 { 0x0e47, 0x0e49, C99 },
220 { 0x0e50, 0x0e59, CXX|C99|DIG }, /* Digits */
221 { 0x0e5a, 0x0e5b, CXX|C99 }, /* Thai */
222 { 0x0e81, 0x0e82, CXX|C99 }, /* Lao */
223 { 0x0e84, 0x0e84, CXX|C99 },
224 { 0x0e87, 0x0e88, CXX|C99 },
225 { 0x0e8a, 0x0e8a, CXX|C99 },
226 { 0x0e8d, 0x0e8d, CXX|C99 },
227 { 0x0e94, 0x0e97, CXX|C99 },
228 { 0x0e99, 0x0e9f, CXX|C99 },
229 { 0x0ea1, 0x0ea3, CXX|C99 },
230 { 0x0ea5, 0x0ea5, CXX|C99 },
231 { 0x0ea7, 0x0ea7, CXX|C99 },
232 { 0x0eaa, 0x0eab, CXX|C99 },
233 { 0x0ead, 0x0eae, CXX|C99 },
234 { 0x0eaf, 0x0eaf, CXX },
235 { 0x0eb0, 0x0eb0, CXX|C99 },
236 { 0x0eb1, 0x0eb1, C99 },
237 { 0x0eb2, 0x0eb3, CXX|C99 },
238 { 0x0eb4, 0x0eb9, C99 },
239 { 0x0ebb, 0x0ebc, C99 },
240 { 0x0ebd, 0x0ebd, CXX|C99 },
241 { 0x0ec0, 0x0ec4, CXX|C99 },
242 { 0x0ec6, 0x0ec6, CXX|C99 },
243 { 0x0ec8, 0x0ecd, C99 },
244 { 0x0ed0, 0x0ed9, C99|DIG }, /* Digits */
245 { 0x0edc, 0x0edd, C99 }, /* Lao */
246 { 0x0f00, 0x0f00, C99 }, /* Tibetan */
247 { 0x0f18, 0x0f19, C99 },
248 { 0x0f20, 0x0f33, C99|DIG }, /* Digits */
249 { 0x0f35, 0x0f35, C99 }, /* Tibetan */
250 { 0x0f37, 0x0f37, C99 },
251 { 0x0f39, 0x0f39, C99 },
252 { 0x0f3e, 0x0f47, C99 },
253 { 0x0f49, 0x0f69, C99 },
254 { 0x0f71, 0x0f84, C99 },
255 { 0x0f86, 0x0f8b, C99 },
256 { 0x0f90, 0x0f95, C99 },
257 { 0x0f97, 0x0f97, C99 },
258 { 0x0f99, 0x0fad, C99 },
259 { 0x0fb1, 0x0fb7, C99 },
260 { 0x0fb9, 0x0fb9, C99 },
261 { 0x10a0, 0x10c5, CXX|C99 }, /* Georgian */
262 { 0x10d0, 0x10f6, CXX|C99 },
263 { 0x1100, 0x1159, CXX }, /* Hangul */
264 { 0x1161, 0x11a2, CXX },
265 { 0x11a8, 0x11f9, CXX },
266 { 0x1e00, 0x1e9a, CXX|C99 }, /* Latin */
267 { 0x1e9b, 0x1e9b, C99 },
268 { 0x1ea0, 0x1ef9, CXX|C99 },
269 { 0x1f00, 0x1f15, CXX|C99 }, /* Greek */
270 { 0x1f18, 0x1f1d, CXX|C99 },
271 { 0x1f20, 0x1f45, CXX|C99 },
272 { 0x1f48, 0x1f4d, CXX|C99 },
273 { 0x1f50, 0x1f57, CXX|C99 },
274 { 0x1f59, 0x1f59, CXX|C99 },
275 { 0x1f5b, 0x1f5b, CXX|C99 },
276 { 0x1f5d, 0x1f5d, CXX|C99 },
277 { 0x1f5f, 0x1f7d, CXX|C99 },
278 { 0x1f80, 0x1fb4, CXX|C99 },
279 { 0x1fb6, 0x1fbc, CXX|C99 },
280 { 0x1fbe, 0x1fbe, C99 }, /* Special characters */
281 { 0x1fc2, 0x1fc4, CXX|C99 }, /* Greek */
282 { 0x1fc6, 0x1fcc, CXX|C99 },
283 { 0x1fd0, 0x1fd3, CXX|C99 },
284 { 0x1fd6, 0x1fdb, CXX|C99 },
285 { 0x1fe0, 0x1fec, CXX|C99 },
286 { 0x1ff2, 0x1ff4, CXX|C99 },
287 { 0x1ff6, 0x1ffc, CXX|C99 },
288 { 0x203f, 0x2040, C99 }, /* Special characters */
289 { 0x207f, 0x207f, C99 }, /* Latin */
290 { 0x2102, 0x2102, C99 }, /* Special characters */
291 { 0x2107, 0x2107, C99 },
292 { 0x210a, 0x2113, C99 },
293 { 0x2115, 0x2115, C99 },
294 { 0x2118, 0x211d, C99 },
295 { 0x2124, 0x2124, C99 },
296 { 0x2126, 0x2126, C99 },
297 { 0x2128, 0x2128, C99 },
298 { 0x212a, 0x2131, C99 },
299 { 0x2133, 0x2138, C99 },
300 { 0x2160, 0x2182, C99 },
301 { 0x3005, 0x3007, C99 },
302 { 0x3021, 0x3029, C99 },
303 { 0x3041, 0x3093, CXX|C99 }, /* Hiragana */
304 { 0x3094, 0x3094, CXX },
305 { 0x309b, 0x309c, CXX|C99 },
306 { 0x309d, 0x309e, CXX },
307 { 0x30a1, 0x30f6, CXX|C99 }, /* Katakana */
308 { 0x30f7, 0x30fa, CXX },
309 { 0x30fb, 0x30fc, CXX|C99 },
310 { 0x30fd, 0x30fe, CXX },
311 { 0x3105, 0x312c, CXX|C99 }, /* Bopomofo */
312 { 0x4e00, 0x9fa5, CXX|C99 }, /* CJK Unified Ideographs */
313 { 0xac00, 0xd7a3, C99 }, /* Hangul */
314 { 0xf900, 0xfa2d, CXX }, /* CJK Unified Ideographs */
315 { 0xfb1f, 0xfb36, CXX },
316 { 0xfb38, 0xfb3c, CXX },
317 { 0xfb3e, 0xfb3e, CXX },
318 { 0xfb40, 0xfb44, CXX },
319 { 0xfb46, 0xfbb1, CXX },
320 { 0xfbd3, 0xfd3f, CXX },
321 { 0xfd50, 0xfd8f, CXX },
322 { 0xfd92, 0xfdc7, CXX },
323 { 0xfdf0, 0xfdfb, CXX },
324 { 0xfe70, 0xfe72, CXX },
325 { 0xfe74, 0xfe74, CXX },
326 { 0xfe76, 0xfefc, CXX },
327 { 0xff21, 0xff3a, CXX },
328 { 0xff41, 0xff5a, CXX },
329 { 0xff66, 0xffbe, CXX },
330 { 0xffc2, 0xffc7, CXX },
331 { 0xffca, 0xffcf, CXX },
332 { 0xffd2, 0xffd7, CXX },
333 { 0xffda, 0xffdc, CXX },
336 #endif /* LIBCPP_UCNID_H */