tizen 2.4 release
[external/libunistring.git] / lib / unictype / categ_byname.h
1 /* ANSI-C code produced by gperf version 3.0.4 */
2 /* Command-line: gperf -m 10 ./unictype/categ_byname.gperf  */
3 /* Computed positions: -k'1-2,7,$' */
4
5 #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
6       && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
7       && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
8       && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
9       && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
10       && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
11       && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
12       && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
13       && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
14       && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
15       && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
16       && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
17       && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
18       && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
19       && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
20       && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
21       && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
22       && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
23       && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
24       && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
25       && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
26       && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
27       && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
28 /* The character set is not based on ISO-646.  */
29 #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
30 #endif
31
32 #line 2 "./unictype/categ_byname.gperf"
33 struct named_category { int name; unsigned int category_index; };
34
35 #define TOTAL_KEYWORDS 103
36 #define MIN_WORD_LENGTH 1
37 #define MAX_WORD_LENGTH 21
38 #define MIN_HASH_VALUE 1
39 #define MAX_HASH_VALUE 150
40 /* maximum key range = 150, duplicates = 0 */
41
42 #ifndef GPERF_DOWNCASE
43 #define GPERF_DOWNCASE 1
44 static unsigned char gperf_downcase[256] =
45   {
46       0,   1,   2,   3,   4,   5,   6,   7,   8,   9,  10,  11,  12,  13,  14,
47      15,  16,  17,  18,  19,  20,  21,  22,  23,  24,  25,  26,  27,  28,  29,
48      30,  31,  32,  33,  34,  35,  36,  37,  38,  39,  40,  41,  42,  43,  44,
49      45,  46,  47,  48,  49,  50,  51,  52,  53,  54,  55,  56,  57,  58,  59,
50      60,  61,  62,  63,  64,  97,  98,  99, 100, 101, 102, 103, 104, 105, 106,
51     107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
52     122,  91,  92,  93,  94,  95,  96,  97,  98,  99, 100, 101, 102, 103, 104,
53     105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
54     120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
55     135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
56     150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
57     165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
58     180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
59     195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
60     210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
61     225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
62     240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
63     255
64   };
65 #endif
66
67 #ifndef GPERF_CASE_STRCMP
68 #define GPERF_CASE_STRCMP 1
69 static int
70 gperf_case_strcmp (register const char *s1, register const char *s2)
71 {
72   for (;;)
73     {
74       unsigned char c1 = gperf_downcase[(unsigned char)*s1++];
75       unsigned char c2 = gperf_downcase[(unsigned char)*s2++];
76       if (c1 != 0 && c1 == c2)
77         continue;
78       return (int)c1 - (int)c2;
79     }
80 }
81 #endif
82
83 #ifdef __GNUC__
84 __inline
85 #else
86 #ifdef __cplusplus
87 inline
88 #endif
89 #endif
90 static unsigned int
91 general_category_hash (register const char *str, register unsigned int len)
92 {
93   static const unsigned char asso_values[] =
94     {
95       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
96       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
97       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
98       151, 151,   1, 151, 151, 151, 151, 151, 151, 151,
99       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
100       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
101       151, 151, 151, 151, 151,  16, 151,   1,  66,  21,
102         9,  25, 151,  62, 151,  49,   0,  51,   4,   7,
103         6, 151,  25,  42,   5,   8, 151, 151, 151,   0,
104        45, 151, 151, 151, 151, 151, 151,  16, 151,   1,
105        66,  21,   9,  25, 151,  62, 151,  49,   0,  51,
106         4,   7,   6, 151,  25,  42,   5,   8, 151, 151,
107       151,   0,  45, 151, 151, 151, 151, 151, 151, 151,
108       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
109       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
110       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
111       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
112       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
113       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
114       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
115       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
116       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
117       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
118       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
119       151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
120       151, 151, 151, 151, 151, 151
121     };
122   register int hval = len;
123
124   switch (hval)
125     {
126       default:
127         hval += asso_values[(unsigned char)str[6]];
128       /*FALLTHROUGH*/
129       case 6:
130       case 5:
131       case 4:
132       case 3:
133       case 2:
134         hval += asso_values[(unsigned char)str[1]];
135       /*FALLTHROUGH*/
136       case 1:
137         hval += asso_values[(unsigned char)str[0]];
138         break;
139     }
140   return hval + asso_values[(unsigned char)str[len - 1]];
141 }
142
143 struct general_category_stringpool_t
144   {
145     char general_category_stringpool_str1[sizeof("L")];
146     char general_category_stringpool_str2[sizeof("Ll")];
147     char general_category_stringpool_str3[sizeof("C")];
148     char general_category_stringpool_str4[sizeof("LC")];
149     char general_category_stringpool_str5[sizeof("Cc")];
150     char general_category_stringpool_str6[sizeof("Nl")];
151     char general_category_stringpool_str9[sizeof("N")];
152     char general_category_stringpool_str10[sizeof("Pc")];
153     char general_category_stringpool_str11[sizeof("Cn")];
154     char general_category_stringpool_str12[sizeof("Lt")];
155     char general_category_stringpool_str13[sizeof("P")];
156     char general_category_stringpool_str15[sizeof("Control")];
157     char general_category_stringpool_str16[sizeof("Lo")];
158     char general_category_stringpool_str17[sizeof("Co")];
159     char general_category_stringpool_str18[sizeof("Lu")];
160     char general_category_stringpool_str20[sizeof("No")];
161     char general_category_stringpool_str21[sizeof("Cf")];
162     char general_category_stringpool_str22[sizeof("Po")];
163     char general_category_stringpool_str23[sizeof("OtherSymbol")];
164     char general_category_stringpool_str24[sizeof("CurrencySymbol")];
165     char general_category_stringpool_str25[sizeof("Currency Symbol")];
166     char general_category_stringpool_str26[sizeof("Pf")];
167     char general_category_stringpool_str27[sizeof("Format")];
168     char general_category_stringpool_str28[sizeof("Close Punctuation")];
169     char general_category_stringpool_str29[sizeof("ClosePunctuation")];
170     char general_category_stringpool_str36[sizeof("OpenPunctuation")];
171     char general_category_stringpool_str37[sizeof("ConnectorPunctuation")];
172     char general_category_stringpool_str38[sizeof("Connector Punctuation")];
173     char general_category_stringpool_str39[sizeof("Other Punctuation")];
174     char general_category_stringpool_str40[sizeof("OtherPunctuation")];
175     char general_category_stringpool_str41[sizeof("Open Punctuation")];
176     char general_category_stringpool_str42[sizeof("Other")];
177     char general_category_stringpool_str43[sizeof("Number")];
178     char general_category_stringpool_str45[sizeof("Punctuation")];
179     char general_category_stringpool_str46[sizeof("Sc")];
180     char general_category_stringpool_str47[sizeof("Zl")];
181     char general_category_stringpool_str48[sizeof("Symbol")];
182     char general_category_stringpool_str49[sizeof("Other Letter")];
183     char general_category_stringpool_str50[sizeof("Pe")];
184     char general_category_stringpool_str52[sizeof("Letter")];
185     char general_category_stringpool_str53[sizeof("Other Number")];
186     char general_category_stringpool_str54[sizeof("Cased Letter")];
187     char general_category_stringpool_str55[sizeof("Mc")];
188     char general_category_stringpool_str56[sizeof("OtherNumber")];
189     char general_category_stringpool_str58[sizeof("So")];
190     char general_category_stringpool_str59[sizeof("Zp")];
191     char general_category_stringpool_str60[sizeof("Letter Number")];
192     char general_category_stringpool_str61[sizeof("Mn")];
193     char general_category_stringpool_str62[sizeof("LetterNumber")];
194     char general_category_stringpool_str63[sizeof("LowercaseLetter")];
195     char general_category_stringpool_str64[sizeof("Lowercase Letter")];
196     char general_category_stringpool_str66[sizeof("Other Symbol")];
197     char general_category_stringpool_str69[sizeof("OtherLetter")];
198     char general_category_stringpool_str70[sizeof("UppercaseLetter")];
199     char general_category_stringpool_str71[sizeof("Uppercase Letter")];
200     char general_category_stringpool_str74[sizeof("CasedLetter")];
201     char general_category_stringpool_str75[sizeof("NonspacingMark")];
202     char general_category_stringpool_str76[sizeof("Nonspacing Mark")];
203     char general_category_stringpool_str78[sizeof("Math Symbol")];
204     char general_category_stringpool_str81[sizeof("ParagraphSeparator")];
205     char general_category_stringpool_str82[sizeof("Paragraph Separator")];
206     char general_category_stringpool_str83[sizeof("PrivateUse")];
207     char general_category_stringpool_str84[sizeof("Private Use")];
208     char general_category_stringpool_str85[sizeof("S")];
209     char general_category_stringpool_str87[sizeof("Cs")];
210     char general_category_stringpool_str88[sizeof("InitialPunctuation")];
211     char general_category_stringpool_str89[sizeof("Initial Punctuation")];
212     char general_category_stringpool_str91[sizeof("Z")];
213     char general_category_stringpool_str92[sizeof("Ps")];
214     char general_category_stringpool_str93[sizeof("ModifierSymbol")];
215     char general_category_stringpool_str94[sizeof("Modifier Symbol")];
216     char general_category_stringpool_str95[sizeof("Me")];
217     char general_category_stringpool_str96[sizeof("Surrogate")];
218     char general_category_stringpool_str98[sizeof("Final Punctuation")];
219     char general_category_stringpool_str99[sizeof("FinalPunctuation")];
220     char general_category_stringpool_str102[sizeof("Separator")];
221     char general_category_stringpool_str103[sizeof("M")];
222     char general_category_stringpool_str104[sizeof("Lm")];
223     char general_category_stringpool_str105[sizeof("DashPunctuation")];
224     char general_category_stringpool_str106[sizeof("LineSeparator")];
225     char general_category_stringpool_str108[sizeof("SpaceSeparator")];
226     char general_category_stringpool_str110[sizeof("Dash Punctuation")];
227     char general_category_stringpool_str113[sizeof("Unassigned")];
228     char general_category_stringpool_str118[sizeof("ModifierLetter")];
229     char general_category_stringpool_str119[sizeof("Modifier Letter")];
230     char general_category_stringpool_str120[sizeof("Mark")];
231     char general_category_stringpool_str122[sizeof("Line Separator")];
232     char general_category_stringpool_str123[sizeof("TitlecaseLetter")];
233     char general_category_stringpool_str124[sizeof("Titlecase Letter")];
234     char general_category_stringpool_str125[sizeof("DecimalNumber")];
235     char general_category_stringpool_str126[sizeof("Decimal Number")];
236     char general_category_stringpool_str128[sizeof("MathSymbol")];
237     char general_category_stringpool_str130[sizeof("Space Separator")];
238     char general_category_stringpool_str131[sizeof("Zs")];
239     char general_category_stringpool_str132[sizeof("Pi")];
240     char general_category_stringpool_str133[sizeof("SpacingMark")];
241     char general_category_stringpool_str134[sizeof("Spacing Mark")];
242     char general_category_stringpool_str138[sizeof("Nd")];
243     char general_category_stringpool_str140[sizeof("Pd")];
244     char general_category_stringpool_str142[sizeof("Sk")];
245     char general_category_stringpool_str146[sizeof("Sm")];
246     char general_category_stringpool_str149[sizeof("EnclosingMark")];
247     char general_category_stringpool_str150[sizeof("Enclosing Mark")];
248   };
249 static const struct general_category_stringpool_t general_category_stringpool_contents =
250   {
251     "L",
252     "Ll",
253     "C",
254     "LC",
255     "Cc",
256     "Nl",
257     "N",
258     "Pc",
259     "Cn",
260     "Lt",
261     "P",
262     "Control",
263     "Lo",
264     "Co",
265     "Lu",
266     "No",
267     "Cf",
268     "Po",
269     "OtherSymbol",
270     "CurrencySymbol",
271     "Currency Symbol",
272     "Pf",
273     "Format",
274     "Close Punctuation",
275     "ClosePunctuation",
276     "OpenPunctuation",
277     "ConnectorPunctuation",
278     "Connector Punctuation",
279     "Other Punctuation",
280     "OtherPunctuation",
281     "Open Punctuation",
282     "Other",
283     "Number",
284     "Punctuation",
285     "Sc",
286     "Zl",
287     "Symbol",
288     "Other Letter",
289     "Pe",
290     "Letter",
291     "Other Number",
292     "Cased Letter",
293     "Mc",
294     "OtherNumber",
295     "So",
296     "Zp",
297     "Letter Number",
298     "Mn",
299     "LetterNumber",
300     "LowercaseLetter",
301     "Lowercase Letter",
302     "Other Symbol",
303     "OtherLetter",
304     "UppercaseLetter",
305     "Uppercase Letter",
306     "CasedLetter",
307     "NonspacingMark",
308     "Nonspacing Mark",
309     "Math Symbol",
310     "ParagraphSeparator",
311     "Paragraph Separator",
312     "PrivateUse",
313     "Private Use",
314     "S",
315     "Cs",
316     "InitialPunctuation",
317     "Initial Punctuation",
318     "Z",
319     "Ps",
320     "ModifierSymbol",
321     "Modifier Symbol",
322     "Me",
323     "Surrogate",
324     "Final Punctuation",
325     "FinalPunctuation",
326     "Separator",
327     "M",
328     "Lm",
329     "DashPunctuation",
330     "LineSeparator",
331     "SpaceSeparator",
332     "Dash Punctuation",
333     "Unassigned",
334     "ModifierLetter",
335     "Modifier Letter",
336     "Mark",
337     "Line Separator",
338     "TitlecaseLetter",
339     "Titlecase Letter",
340     "DecimalNumber",
341     "Decimal Number",
342     "MathSymbol",
343     "Space Separator",
344     "Zs",
345     "Pi",
346     "SpacingMark",
347     "Spacing Mark",
348     "Nd",
349     "Pd",
350     "Sk",
351     "Sm",
352     "EnclosingMark",
353     "Enclosing Mark"
354   };
355 #define general_category_stringpool ((const char *) &general_category_stringpool_contents)
356
357 static const struct named_category general_category_names[] =
358   {
359     {-1},
360 #line 14 "./unictype/categ_byname.gperf"
361     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str1, UC_CATEGORY_INDEX_L},
362 #line 17 "./unictype/categ_byname.gperf"
363     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str2, UC_CATEGORY_INDEX_Ll},
364 #line 46 "./unictype/categ_byname.gperf"
365     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str3, UC_CATEGORY_INDEX_C},
366 #line 15 "./unictype/categ_byname.gperf"
367     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str4, UC_CATEGORY_INDEX_LC},
368 #line 47 "./unictype/categ_byname.gperf"
369     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str5, UC_CATEGORY_INDEX_Cc},
370 #line 27 "./unictype/categ_byname.gperf"
371     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str6, UC_CATEGORY_INDEX_Nl},
372     {-1}, {-1},
373 #line 25 "./unictype/categ_byname.gperf"
374     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str9, UC_CATEGORY_INDEX_N},
375 #line 30 "./unictype/categ_byname.gperf"
376     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str10, UC_CATEGORY_INDEX_Pc},
377 #line 51 "./unictype/categ_byname.gperf"
378     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str11, UC_CATEGORY_INDEX_Cn},
379 #line 18 "./unictype/categ_byname.gperf"
380     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str12, UC_CATEGORY_INDEX_Lt},
381 #line 29 "./unictype/categ_byname.gperf"
382     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str13, UC_CATEGORY_INDEX_P},
383     {-1},
384 #line 111 "./unictype/categ_byname.gperf"
385     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str15, UC_CATEGORY_INDEX_Cc},
386 #line 20 "./unictype/categ_byname.gperf"
387     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str16, UC_CATEGORY_INDEX_Lo},
388 #line 50 "./unictype/categ_byname.gperf"
389     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str17, UC_CATEGORY_INDEX_Co},
390 #line 16 "./unictype/categ_byname.gperf"
391     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str18, UC_CATEGORY_INDEX_Lu},
392     {-1},
393 #line 28 "./unictype/categ_byname.gperf"
394     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str20, UC_CATEGORY_INDEX_No},
395 #line 48 "./unictype/categ_byname.gperf"
396     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str21, UC_CATEGORY_INDEX_Cf},
397 #line 36 "./unictype/categ_byname.gperf"
398     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str22, UC_CATEGORY_INDEX_Po},
399 #line 102 "./unictype/categ_byname.gperf"
400     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str23, UC_CATEGORY_INDEX_So},
401 #line 98 "./unictype/categ_byname.gperf"
402     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str24, UC_CATEGORY_INDEX_Sc},
403 #line 97 "./unictype/categ_byname.gperf"
404     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str25, UC_CATEGORY_INDEX_Sc},
405 #line 35 "./unictype/categ_byname.gperf"
406     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str26, UC_CATEGORY_INDEX_Pf},
407 #line 112 "./unictype/categ_byname.gperf"
408     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str27, UC_CATEGORY_INDEX_Cf},
409 #line 86 "./unictype/categ_byname.gperf"
410     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str28, UC_CATEGORY_INDEX_Pe},
411 #line 87 "./unictype/categ_byname.gperf"
412     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str29, UC_CATEGORY_INDEX_Pe},
413     {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
414 #line 85 "./unictype/categ_byname.gperf"
415     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str36, UC_CATEGORY_INDEX_Ps},
416 #line 81 "./unictype/categ_byname.gperf"
417     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str37, UC_CATEGORY_INDEX_Pc},
418 #line 80 "./unictype/categ_byname.gperf"
419     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str38, UC_CATEGORY_INDEX_Pc},
420 #line 92 "./unictype/categ_byname.gperf"
421     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str39, UC_CATEGORY_INDEX_Po},
422 #line 93 "./unictype/categ_byname.gperf"
423     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str40, UC_CATEGORY_INDEX_Po},
424 #line 84 "./unictype/categ_byname.gperf"
425     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str41, UC_CATEGORY_INDEX_Ps},
426 #line 110 "./unictype/categ_byname.gperf"
427     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str42, UC_CATEGORY_INDEX_C},
428 #line 72 "./unictype/categ_byname.gperf"
429     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str43, UC_CATEGORY_INDEX_N},
430     {-1},
431 #line 79 "./unictype/categ_byname.gperf"
432     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str45, UC_CATEGORY_INDEX_P},
433 #line 39 "./unictype/categ_byname.gperf"
434     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str46, UC_CATEGORY_INDEX_Sc},
435 #line 44 "./unictype/categ_byname.gperf"
436     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str47, UC_CATEGORY_INDEX_Zl},
437 #line 94 "./unictype/categ_byname.gperf"
438     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str48, UC_CATEGORY_INDEX_S},
439 #line 63 "./unictype/categ_byname.gperf"
440     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str49, UC_CATEGORY_INDEX_Lo},
441 #line 33 "./unictype/categ_byname.gperf"
442     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str50, UC_CATEGORY_INDEX_Pe},
443     {-1},
444 #line 52 "./unictype/categ_byname.gperf"
445     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str52, UC_CATEGORY_INDEX_L},
446 #line 77 "./unictype/categ_byname.gperf"
447     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str53, UC_CATEGORY_INDEX_No},
448 #line 53 "./unictype/categ_byname.gperf"
449     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str54, UC_CATEGORY_INDEX_LC},
450 #line 23 "./unictype/categ_byname.gperf"
451     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str55, UC_CATEGORY_INDEX_Mc},
452 #line 78 "./unictype/categ_byname.gperf"
453     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str56, UC_CATEGORY_INDEX_No},
454     {-1},
455 #line 41 "./unictype/categ_byname.gperf"
456     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str58, UC_CATEGORY_INDEX_So},
457 #line 45 "./unictype/categ_byname.gperf"
458     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str59, UC_CATEGORY_INDEX_Zp},
459 #line 75 "./unictype/categ_byname.gperf"
460     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str60, UC_CATEGORY_INDEX_Nl},
461 #line 22 "./unictype/categ_byname.gperf"
462     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str61, UC_CATEGORY_INDEX_Mn},
463 #line 76 "./unictype/categ_byname.gperf"
464     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str62, UC_CATEGORY_INDEX_Nl},
465 #line 58 "./unictype/categ_byname.gperf"
466     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str63, UC_CATEGORY_INDEX_Ll},
467 #line 57 "./unictype/categ_byname.gperf"
468     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str64, UC_CATEGORY_INDEX_Ll},
469     {-1},
470 #line 101 "./unictype/categ_byname.gperf"
471     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str66, UC_CATEGORY_INDEX_So},
472     {-1}, {-1},
473 #line 64 "./unictype/categ_byname.gperf"
474     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str69, UC_CATEGORY_INDEX_Lo},
475 #line 56 "./unictype/categ_byname.gperf"
476     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str70, UC_CATEGORY_INDEX_Lu},
477 #line 55 "./unictype/categ_byname.gperf"
478     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str71, UC_CATEGORY_INDEX_Lu},
479     {-1}, {-1},
480 #line 54 "./unictype/categ_byname.gperf"
481     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str74, UC_CATEGORY_INDEX_LC},
482 #line 67 "./unictype/categ_byname.gperf"
483     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str75, UC_CATEGORY_INDEX_Mn},
484 #line 66 "./unictype/categ_byname.gperf"
485     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str76, UC_CATEGORY_INDEX_Mn},
486     {-1},
487 #line 95 "./unictype/categ_byname.gperf"
488     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str78, UC_CATEGORY_INDEX_Sm},
489     {-1}, {-1},
490 #line 109 "./unictype/categ_byname.gperf"
491     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str81, UC_CATEGORY_INDEX_Zp},
492 #line 108 "./unictype/categ_byname.gperf"
493     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str82, UC_CATEGORY_INDEX_Zp},
494 #line 115 "./unictype/categ_byname.gperf"
495     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str83, UC_CATEGORY_INDEX_Co},
496 #line 114 "./unictype/categ_byname.gperf"
497     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str84, UC_CATEGORY_INDEX_Co},
498 #line 37 "./unictype/categ_byname.gperf"
499     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str85, UC_CATEGORY_INDEX_S},
500     {-1},
501 #line 49 "./unictype/categ_byname.gperf"
502     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str87, UC_CATEGORY_INDEX_Cs},
503 #line 89 "./unictype/categ_byname.gperf"
504     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str88, UC_CATEGORY_INDEX_Pi},
505 #line 88 "./unictype/categ_byname.gperf"
506     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str89, UC_CATEGORY_INDEX_Pi},
507     {-1},
508 #line 42 "./unictype/categ_byname.gperf"
509     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str91, UC_CATEGORY_INDEX_Z},
510 #line 32 "./unictype/categ_byname.gperf"
511     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str92, UC_CATEGORY_INDEX_Ps},
512 #line 100 "./unictype/categ_byname.gperf"
513     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str93, UC_CATEGORY_INDEX_Sk},
514 #line 99 "./unictype/categ_byname.gperf"
515     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str94, UC_CATEGORY_INDEX_Sk},
516 #line 24 "./unictype/categ_byname.gperf"
517     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str95, UC_CATEGORY_INDEX_Me},
518 #line 113 "./unictype/categ_byname.gperf"
519     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str96, UC_CATEGORY_INDEX_Cs},
520     {-1},
521 #line 90 "./unictype/categ_byname.gperf"
522     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str98, UC_CATEGORY_INDEX_Pf},
523 #line 91 "./unictype/categ_byname.gperf"
524     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str99, UC_CATEGORY_INDEX_Pf},
525     {-1}, {-1},
526 #line 103 "./unictype/categ_byname.gperf"
527     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str102, UC_CATEGORY_INDEX_Z},
528 #line 21 "./unictype/categ_byname.gperf"
529     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str103, UC_CATEGORY_INDEX_M},
530 #line 19 "./unictype/categ_byname.gperf"
531     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str104, UC_CATEGORY_INDEX_Lm},
532 #line 83 "./unictype/categ_byname.gperf"
533     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str105, UC_CATEGORY_INDEX_Pd},
534 #line 107 "./unictype/categ_byname.gperf"
535     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str106, UC_CATEGORY_INDEX_Zl},
536     {-1},
537 #line 105 "./unictype/categ_byname.gperf"
538     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str108, UC_CATEGORY_INDEX_Zs},
539     {-1},
540 #line 82 "./unictype/categ_byname.gperf"
541     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str110, UC_CATEGORY_INDEX_Pd},
542     {-1}, {-1},
543 #line 116 "./unictype/categ_byname.gperf"
544     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str113, UC_CATEGORY_INDEX_Cn},
545     {-1}, {-1}, {-1}, {-1},
546 #line 62 "./unictype/categ_byname.gperf"
547     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str118, UC_CATEGORY_INDEX_Lm},
548 #line 61 "./unictype/categ_byname.gperf"
549     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str119, UC_CATEGORY_INDEX_Lm},
550 #line 65 "./unictype/categ_byname.gperf"
551     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str120, UC_CATEGORY_INDEX_M},
552     {-1},
553 #line 106 "./unictype/categ_byname.gperf"
554     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str122, UC_CATEGORY_INDEX_Zl},
555 #line 60 "./unictype/categ_byname.gperf"
556     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str123, UC_CATEGORY_INDEX_Lt},
557 #line 59 "./unictype/categ_byname.gperf"
558     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str124, UC_CATEGORY_INDEX_Lt},
559 #line 74 "./unictype/categ_byname.gperf"
560     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str125, UC_CATEGORY_INDEX_Nd},
561 #line 73 "./unictype/categ_byname.gperf"
562     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str126, UC_CATEGORY_INDEX_Nd},
563     {-1},
564 #line 96 "./unictype/categ_byname.gperf"
565     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str128, UC_CATEGORY_INDEX_Sm},
566     {-1},
567 #line 104 "./unictype/categ_byname.gperf"
568     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str130, UC_CATEGORY_INDEX_Zs},
569 #line 43 "./unictype/categ_byname.gperf"
570     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str131, UC_CATEGORY_INDEX_Zs},
571 #line 34 "./unictype/categ_byname.gperf"
572     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str132, UC_CATEGORY_INDEX_Pi},
573 #line 69 "./unictype/categ_byname.gperf"
574     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str133, UC_CATEGORY_INDEX_Mc},
575 #line 68 "./unictype/categ_byname.gperf"
576     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str134, UC_CATEGORY_INDEX_Mc},
577     {-1}, {-1}, {-1},
578 #line 26 "./unictype/categ_byname.gperf"
579     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str138, UC_CATEGORY_INDEX_Nd},
580     {-1},
581 #line 31 "./unictype/categ_byname.gperf"
582     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str140, UC_CATEGORY_INDEX_Pd},
583     {-1},
584 #line 40 "./unictype/categ_byname.gperf"
585     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str142, UC_CATEGORY_INDEX_Sk},
586     {-1}, {-1}, {-1},
587 #line 38 "./unictype/categ_byname.gperf"
588     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str146, UC_CATEGORY_INDEX_Sm},
589     {-1}, {-1},
590 #line 71 "./unictype/categ_byname.gperf"
591     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str149, UC_CATEGORY_INDEX_Me},
592 #line 70 "./unictype/categ_byname.gperf"
593     {(int)(long)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str150, UC_CATEGORY_INDEX_Me}
594   };
595
596 #ifdef __GNUC__
597 __inline
598 #if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
599 __attribute__ ((__gnu_inline__))
600 #endif
601 #endif
602 const struct named_category *
603 uc_general_category_lookup (register const char *str, register unsigned int len)
604 {
605   if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
606     {
607       register int key = general_category_hash (str, len);
608
609       if (key <= MAX_HASH_VALUE && key >= 0)
610         {
611           register int o = general_category_names[key].name;
612           if (o >= 0)
613             {
614               register const char *s = o + general_category_stringpool;
615
616               if ((((unsigned char)*str ^ (unsigned char)*s) & ~32) == 0 && !gperf_case_strcmp (str, s))
617                 return &general_category_names[key];
618             }
619         }
620     }
621   return 0;
622 }