summaryrefslogtreecommitdiff
path: root/lib/unictype/categ_byname.h
blob: 41bd43e1ecdb3b3f01b50a802a5b6167777f4253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
/* ANSI-C code produced by gperf version 3.1 */
/* Command-line: gperf -m 10 ./unictype/categ_byname.gperf  */
/* Computed positions: -k'1-2,7,$' */

#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
      && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
      && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
      && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
      && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
      && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
      && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
      && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
      && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
      && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
      && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
      && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
      && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
      && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
      && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
      && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
      && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
      && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
      && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
      && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
      && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
      && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
      && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
/* The character set is not based on ISO-646.  */
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>."
#endif

#line 25 "./unictype/categ_byname.gperf"
struct named_category { int name; unsigned int category_index; };

#define TOTAL_KEYWORDS 103
#define MIN_WORD_LENGTH 1
#define MAX_WORD_LENGTH 21
#define MIN_HASH_VALUE 1
#define MAX_HASH_VALUE 150
/* maximum key range = 150, duplicates = 0 */

#ifndef GPERF_DOWNCASE
#define GPERF_DOWNCASE 1
static unsigned char gperf_downcase[256] =
  {
      0,   1,   2,   3,   4,   5,   6,   7,   8,   9,  10,  11,  12,  13,  14,
     15,  16,  17,  18,  19,  20,  21,  22,  23,  24,  25,  26,  27,  28,  29,
     30,  31,  32,  33,  34,  35,  36,  37,  38,  39,  40,  41,  42,  43,  44,
     45,  46,  47,  48,  49,  50,  51,  52,  53,  54,  55,  56,  57,  58,  59,
     60,  61,  62,  63,  64,  97,  98,  99, 100, 101, 102, 103, 104, 105, 106,
    107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
    122,  91,  92,  93,  94,  95,  96,  97,  98,  99, 100, 101, 102, 103, 104,
    105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
    120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
    135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
    150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164,
    165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
    180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
    195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
    210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
    225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
    240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
    255
  };
#endif

#ifndef GPERF_CASE_STRCMP
#define GPERF_CASE_STRCMP 1
static int
gperf_case_strcmp (register const char *s1, register const char *s2)
{
  for (;;)
    {
      unsigned char c1 = gperf_downcase[(unsigned char)*s1++];
      unsigned char c2 = gperf_downcase[(unsigned char)*s2++];
      if (c1 != 0 && c1 == c2)
        continue;
      return (int)c1 - (int)c2;
    }
}
#endif

#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
general_category_hash (register const char *str, register size_t len)
{
  static const unsigned char asso_values[] =
    {
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151,   1, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151,  16, 151,   1,  66,  21,
        9,  25, 151,  62, 151,  49,   0,  51,   4,   7,
        6, 151,  25,  42,   5,   8, 151, 151, 151,   0,
       45, 151, 151, 151, 151, 151, 151,  16, 151,   1,
       66,  21,   9,  25, 151,  62, 151,  49,   0,  51,
        4,   7,   6, 151,  25,  42,   5,   8, 151, 151,
      151,   0,  45, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
      151, 151, 151, 151, 151, 151
    };
  register unsigned int hval = len;

  switch (hval)
    {
      default:
        hval += asso_values[(unsigned char)str[6]];
      /*FALLTHROUGH*/
      case 6:
      case 5:
      case 4:
      case 3:
      case 2:
        hval += asso_values[(unsigned char)str[1]];
      /*FALLTHROUGH*/
      case 1:
        hval += asso_values[(unsigned char)str[0]];
        break;
    }
  return hval + asso_values[(unsigned char)str[len - 1]];
}

struct general_category_stringpool_t
  {
    char general_category_stringpool_str1[sizeof("L")];
    char general_category_stringpool_str2[sizeof("Ll")];
    char general_category_stringpool_str3[sizeof("C")];
    char general_category_stringpool_str4[sizeof("LC")];
    char general_category_stringpool_str5[sizeof("Cc")];
    char general_category_stringpool_str6[sizeof("Nl")];
    char general_category_stringpool_str9[sizeof("N")];
    char general_category_stringpool_str10[sizeof("Pc")];
    char general_category_stringpool_str11[sizeof("Cn")];
    char general_category_stringpool_str12[sizeof("Lt")];
    char general_category_stringpool_str13[sizeof("P")];
    char general_category_stringpool_str15[sizeof("Control")];
    char general_category_stringpool_str16[sizeof("Lo")];
    char general_category_stringpool_str17[sizeof("Co")];
    char general_category_stringpool_str18[sizeof("Lu")];
    char general_category_stringpool_str20[sizeof("No")];
    char general_category_stringpool_str21[sizeof("Cf")];
    char general_category_stringpool_str22[sizeof("Po")];
    char general_category_stringpool_str23[sizeof("OtherSymbol")];
    char general_category_stringpool_str24[sizeof("CurrencySymbol")];
    char general_category_stringpool_str25[sizeof("Currency Symbol")];
    char general_category_stringpool_str26[sizeof("Pf")];
    char general_category_stringpool_str27[sizeof("Format")];
    char general_category_stringpool_str28[sizeof("Close Punctuation")];
    char general_category_stringpool_str29[sizeof("ClosePunctuation")];
    char general_category_stringpool_str36[sizeof("OpenPunctuation")];
    char general_category_stringpool_str37[sizeof("ConnectorPunctuation")];
    char general_category_stringpool_str38[sizeof("Connector Punctuation")];
    char general_category_stringpool_str39[sizeof("Other Punctuation")];
    char general_category_stringpool_str40[sizeof("OtherPunctuation")];
    char general_category_stringpool_str41[sizeof("Open Punctuation")];
    char general_category_stringpool_str42[sizeof("Other")];
    char general_category_stringpool_str43[sizeof("Number")];
    char general_category_stringpool_str45[sizeof("Punctuation")];
    char general_category_stringpool_str46[sizeof("Sc")];
    char general_category_stringpool_str47[sizeof("Zl")];
    char general_category_stringpool_str48[sizeof("Symbol")];
    char general_category_stringpool_str49[sizeof("Other Letter")];
    char general_category_stringpool_str50[sizeof("Pe")];
    char general_category_stringpool_str52[sizeof("Letter")];
    char general_category_stringpool_str53[sizeof("Other Number")];
    char general_category_stringpool_str54[sizeof("Cased Letter")];
    char general_category_stringpool_str55[sizeof("Mc")];
    char general_category_stringpool_str56[sizeof("OtherNumber")];
    char general_category_stringpool_str58[sizeof("So")];
    char general_category_stringpool_str59[sizeof("Zp")];
    char general_category_stringpool_str60[sizeof("Letter Number")];
    char general_category_stringpool_str61[sizeof("Mn")];
    char general_category_stringpool_str62[sizeof("LetterNumber")];
    char general_category_stringpool_str63[sizeof("LowercaseLetter")];
    char general_category_stringpool_str64[sizeof("Lowercase Letter")];
    char general_category_stringpool_str66[sizeof("Other Symbol")];
    char general_category_stringpool_str69[sizeof("OtherLetter")];
    char general_category_stringpool_str70[sizeof("UppercaseLetter")];
    char general_category_stringpool_str71[sizeof("Uppercase Letter")];
    char general_category_stringpool_str74[sizeof("CasedLetter")];
    char general_category_stringpool_str75[sizeof("NonspacingMark")];
    char general_category_stringpool_str76[sizeof("Nonspacing Mark")];
    char general_category_stringpool_str78[sizeof("Math Symbol")];
    char general_category_stringpool_str81[sizeof("ParagraphSeparator")];
    char general_category_stringpool_str82[sizeof("Paragraph Separator")];
    char general_category_stringpool_str83[sizeof("PrivateUse")];
    char general_category_stringpool_str84[sizeof("Private Use")];
    char general_category_stringpool_str85[sizeof("S")];
    char general_category_stringpool_str87[sizeof("Cs")];
    char general_category_stringpool_str88[sizeof("InitialPunctuation")];
    char general_category_stringpool_str89[sizeof("Initial Punctuation")];
    char general_category_stringpool_str91[sizeof("Z")];
    char general_category_stringpool_str92[sizeof("Ps")];
    char general_category_stringpool_str93[sizeof("ModifierSymbol")];
    char general_category_stringpool_str94[sizeof("Modifier Symbol")];
    char general_category_stringpool_str95[sizeof("Me")];
    char general_category_stringpool_str96[sizeof("Surrogate")];
    char general_category_stringpool_str98[sizeof("Final Punctuation")];
    char general_category_stringpool_str99[sizeof("FinalPunctuation")];
    char general_category_stringpool_str102[sizeof("Separator")];
    char general_category_stringpool_str103[sizeof("M")];
    char general_category_stringpool_str104[sizeof("Lm")];
    char general_category_stringpool_str105[sizeof("DashPunctuation")];
    char general_category_stringpool_str106[sizeof("LineSeparator")];
    char general_category_stringpool_str108[sizeof("SpaceSeparator")];
    char general_category_stringpool_str110[sizeof("Dash Punctuation")];
    char general_category_stringpool_str113[sizeof("Unassigned")];
    char general_category_stringpool_str118[sizeof("ModifierLetter")];
    char general_category_stringpool_str119[sizeof("Modifier Letter")];
    char general_category_stringpool_str120[sizeof("Mark")];
    char general_category_stringpool_str122[sizeof("Line Separator")];
    char general_category_stringpool_str123[sizeof("TitlecaseLetter")];
    char general_category_stringpool_str124[sizeof("Titlecase Letter")];
    char general_category_stringpool_str125[sizeof("DecimalNumber")];
    char general_category_stringpool_str126[sizeof("Decimal Number")];
    char general_category_stringpool_str128[sizeof("MathSymbol")];
    char general_category_stringpool_str130[sizeof("Space Separator")];
    char general_category_stringpool_str131[sizeof("Zs")];
    char general_category_stringpool_str132[sizeof("Pi")];
    char general_category_stringpool_str133[sizeof("SpacingMark")];
    char general_category_stringpool_str134[sizeof("Spacing Mark")];
    char general_category_stringpool_str138[sizeof("Nd")];
    char general_category_stringpool_str140[sizeof("Pd")];
    char general_category_stringpool_str142[sizeof("Sk")];
    char general_category_stringpool_str146[sizeof("Sm")];
    char general_category_stringpool_str149[sizeof("EnclosingMark")];
    char general_category_stringpool_str150[sizeof("Enclosing Mark")];
  };
static const struct general_category_stringpool_t general_category_stringpool_contents =
  {
    "L",
    "Ll",
    "C",
    "LC",
    "Cc",
    "Nl",
    "N",
    "Pc",
    "Cn",
    "Lt",
    "P",
    "Control",
    "Lo",
    "Co",
    "Lu",
    "No",
    "Cf",
    "Po",
    "OtherSymbol",
    "CurrencySymbol",
    "Currency Symbol",
    "Pf",
    "Format",
    "Close Punctuation",
    "ClosePunctuation",
    "OpenPunctuation",
    "ConnectorPunctuation",
    "Connector Punctuation",
    "Other Punctuation",
    "OtherPunctuation",
    "Open Punctuation",
    "Other",
    "Number",
    "Punctuation",
    "Sc",
    "Zl",
    "Symbol",
    "Other Letter",
    "Pe",
    "Letter",
    "Other Number",
    "Cased Letter",
    "Mc",
    "OtherNumber",
    "So",
    "Zp",
    "Letter Number",
    "Mn",
    "LetterNumber",
    "LowercaseLetter",
    "Lowercase Letter",
    "Other Symbol",
    "OtherLetter",
    "UppercaseLetter",
    "Uppercase Letter",
    "CasedLetter",
    "NonspacingMark",
    "Nonspacing Mark",
    "Math Symbol",
    "ParagraphSeparator",
    "Paragraph Separator",
    "PrivateUse",
    "Private Use",
    "S",
    "Cs",
    "InitialPunctuation",
    "Initial Punctuation",
    "Z",
    "Ps",
    "ModifierSymbol",
    "Modifier Symbol",
    "Me",
    "Surrogate",
    "Final Punctuation",
    "FinalPunctuation",
    "Separator",
    "M",
    "Lm",
    "DashPunctuation",
    "LineSeparator",
    "SpaceSeparator",
    "Dash Punctuation",
    "Unassigned",
    "ModifierLetter",
    "Modifier Letter",
    "Mark",
    "Line Separator",
    "TitlecaseLetter",
    "Titlecase Letter",
    "DecimalNumber",
    "Decimal Number",
    "MathSymbol",
    "Space Separator",
    "Zs",
    "Pi",
    "SpacingMark",
    "Spacing Mark",
    "Nd",
    "Pd",
    "Sk",
    "Sm",
    "EnclosingMark",
    "Enclosing Mark"
  };
#define general_category_stringpool ((const char *) &general_category_stringpool_contents)

static const struct named_category general_category_names[] =
  {
    {-1},
#line 37 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str1, UC_CATEGORY_INDEX_L},
#line 40 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str2, UC_CATEGORY_INDEX_Ll},
#line 69 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str3, UC_CATEGORY_INDEX_C},
#line 38 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str4, UC_CATEGORY_INDEX_LC},
#line 70 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str5, UC_CATEGORY_INDEX_Cc},
#line 50 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str6, UC_CATEGORY_INDEX_Nl},
    {-1}, {-1},
#line 48 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str9, UC_CATEGORY_INDEX_N},
#line 53 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str10, UC_CATEGORY_INDEX_Pc},
#line 74 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str11, UC_CATEGORY_INDEX_Cn},
#line 41 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str12, UC_CATEGORY_INDEX_Lt},
#line 52 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str13, UC_CATEGORY_INDEX_P},
    {-1},
#line 134 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str15, UC_CATEGORY_INDEX_Cc},
#line 43 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str16, UC_CATEGORY_INDEX_Lo},
#line 73 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str17, UC_CATEGORY_INDEX_Co},
#line 39 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str18, UC_CATEGORY_INDEX_Lu},
    {-1},
#line 51 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str20, UC_CATEGORY_INDEX_No},
#line 71 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str21, UC_CATEGORY_INDEX_Cf},
#line 59 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str22, UC_CATEGORY_INDEX_Po},
#line 125 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str23, UC_CATEGORY_INDEX_So},
#line 121 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str24, UC_CATEGORY_INDEX_Sc},
#line 120 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str25, UC_CATEGORY_INDEX_Sc},
#line 58 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str26, UC_CATEGORY_INDEX_Pf},
#line 135 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str27, UC_CATEGORY_INDEX_Cf},
#line 109 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str28, UC_CATEGORY_INDEX_Pe},
#line 110 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str29, UC_CATEGORY_INDEX_Pe},
    {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
#line 108 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str36, UC_CATEGORY_INDEX_Ps},
#line 104 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str37, UC_CATEGORY_INDEX_Pc},
#line 103 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str38, UC_CATEGORY_INDEX_Pc},
#line 115 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str39, UC_CATEGORY_INDEX_Po},
#line 116 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str40, UC_CATEGORY_INDEX_Po},
#line 107 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str41, UC_CATEGORY_INDEX_Ps},
#line 133 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str42, UC_CATEGORY_INDEX_C},
#line 95 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str43, UC_CATEGORY_INDEX_N},
    {-1},
#line 102 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str45, UC_CATEGORY_INDEX_P},
#line 62 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str46, UC_CATEGORY_INDEX_Sc},
#line 67 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str47, UC_CATEGORY_INDEX_Zl},
#line 117 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str48, UC_CATEGORY_INDEX_S},
#line 86 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str49, UC_CATEGORY_INDEX_Lo},
#line 56 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str50, UC_CATEGORY_INDEX_Pe},
    {-1},
#line 75 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str52, UC_CATEGORY_INDEX_L},
#line 100 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str53, UC_CATEGORY_INDEX_No},
#line 76 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str54, UC_CATEGORY_INDEX_LC},
#line 46 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str55, UC_CATEGORY_INDEX_Mc},
#line 101 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str56, UC_CATEGORY_INDEX_No},
    {-1},
#line 64 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str58, UC_CATEGORY_INDEX_So},
#line 68 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str59, UC_CATEGORY_INDEX_Zp},
#line 98 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str60, UC_CATEGORY_INDEX_Nl},
#line 45 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str61, UC_CATEGORY_INDEX_Mn},
#line 99 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str62, UC_CATEGORY_INDEX_Nl},
#line 81 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str63, UC_CATEGORY_INDEX_Ll},
#line 80 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str64, UC_CATEGORY_INDEX_Ll},
    {-1},
#line 124 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str66, UC_CATEGORY_INDEX_So},
    {-1}, {-1},
#line 87 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str69, UC_CATEGORY_INDEX_Lo},
#line 79 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str70, UC_CATEGORY_INDEX_Lu},
#line 78 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str71, UC_CATEGORY_INDEX_Lu},
    {-1}, {-1},
#line 77 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str74, UC_CATEGORY_INDEX_LC},
#line 90 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str75, UC_CATEGORY_INDEX_Mn},
#line 89 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str76, UC_CATEGORY_INDEX_Mn},
    {-1},
#line 118 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str78, UC_CATEGORY_INDEX_Sm},
    {-1}, {-1},
#line 132 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str81, UC_CATEGORY_INDEX_Zp},
#line 131 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str82, UC_CATEGORY_INDEX_Zp},
#line 138 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str83, UC_CATEGORY_INDEX_Co},
#line 137 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str84, UC_CATEGORY_INDEX_Co},
#line 60 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str85, UC_CATEGORY_INDEX_S},
    {-1},
#line 72 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str87, UC_CATEGORY_INDEX_Cs},
#line 112 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str88, UC_CATEGORY_INDEX_Pi},
#line 111 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str89, UC_CATEGORY_INDEX_Pi},
    {-1},
#line 65 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str91, UC_CATEGORY_INDEX_Z},
#line 55 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str92, UC_CATEGORY_INDEX_Ps},
#line 123 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str93, UC_CATEGORY_INDEX_Sk},
#line 122 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str94, UC_CATEGORY_INDEX_Sk},
#line 47 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str95, UC_CATEGORY_INDEX_Me},
#line 136 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str96, UC_CATEGORY_INDEX_Cs},
    {-1},
#line 113 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str98, UC_CATEGORY_INDEX_Pf},
#line 114 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str99, UC_CATEGORY_INDEX_Pf},
    {-1}, {-1},
#line 126 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str102, UC_CATEGORY_INDEX_Z},
#line 44 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str103, UC_CATEGORY_INDEX_M},
#line 42 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str104, UC_CATEGORY_INDEX_Lm},
#line 106 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str105, UC_CATEGORY_INDEX_Pd},
#line 130 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str106, UC_CATEGORY_INDEX_Zl},
    {-1},
#line 128 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str108, UC_CATEGORY_INDEX_Zs},
    {-1},
#line 105 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str110, UC_CATEGORY_INDEX_Pd},
    {-1}, {-1},
#line 139 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str113, UC_CATEGORY_INDEX_Cn},
    {-1}, {-1}, {-1}, {-1},
#line 85 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str118, UC_CATEGORY_INDEX_Lm},
#line 84 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str119, UC_CATEGORY_INDEX_Lm},
#line 88 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str120, UC_CATEGORY_INDEX_M},
    {-1},
#line 129 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str122, UC_CATEGORY_INDEX_Zl},
#line 83 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str123, UC_CATEGORY_INDEX_Lt},
#line 82 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str124, UC_CATEGORY_INDEX_Lt},
#line 97 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str125, UC_CATEGORY_INDEX_Nd},
#line 96 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str126, UC_CATEGORY_INDEX_Nd},
    {-1},
#line 119 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str128, UC_CATEGORY_INDEX_Sm},
    {-1},
#line 127 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str130, UC_CATEGORY_INDEX_Zs},
#line 66 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str131, UC_CATEGORY_INDEX_Zs},
#line 57 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str132, UC_CATEGORY_INDEX_Pi},
#line 92 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str133, UC_CATEGORY_INDEX_Mc},
#line 91 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str134, UC_CATEGORY_INDEX_Mc},
    {-1}, {-1}, {-1},
#line 49 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str138, UC_CATEGORY_INDEX_Nd},
    {-1},
#line 54 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str140, UC_CATEGORY_INDEX_Pd},
    {-1},
#line 63 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str142, UC_CATEGORY_INDEX_Sk},
    {-1}, {-1}, {-1},
#line 61 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str146, UC_CATEGORY_INDEX_Sm},
    {-1}, {-1},
#line 94 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str149, UC_CATEGORY_INDEX_Me},
#line 93 "./unictype/categ_byname.gperf"
    {(int)(size_t)&((struct general_category_stringpool_t *)0)->general_category_stringpool_str150, UC_CATEGORY_INDEX_Me}
  };

static const struct named_category *
uc_general_category_lookup (register const char *str, register size_t len)
{
  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
    {
      register unsigned int key = general_category_hash (str, len);

      if (key <= MAX_HASH_VALUE)
        {
          register int o = general_category_names[key].name;
          if (o >= 0)
            {
              register const char *s = o + general_category_stringpool;

              if ((((unsigned char)*str ^ (unsigned char)*s) & ~32) == 0 && !gperf_case_strcmp (str, s))
                return &general_category_names[key];
            }
        }
    }
  return 0;
}