1/* ANSI-C code produced by gperf version 3.1 */
2/* Command-line: gperf --pic -m 100 fcobjshash.gperf  */
3/* Computed positions: -k'3,5' */
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-gperf@gnu.org>."
30#endif
31
32#line 1 "fcobjshash.gperf"
33
34#line 13 "fcobjshash.gperf"
35struct FcObjectTypeInfo {
36int name;
37int id;
38};
39#include <string.h>
40/* maximum key range = 57, duplicates = 0 */
41
42#ifdef __GNUC__
43__inline
44#else
45#ifdef __cplusplus
46inline
47#endif
48#endif
49static unsigned int
50FcObjectTypeHash (register const char *str, register size_t len)
51{
52  static const unsigned char asso_values[] =
53    {
54      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
55      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
56      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
57      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
58      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
59      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
60      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
61      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
62      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
63      63, 63, 63, 63, 63, 63, 63,  2, 19, 10,
64      21, 36, 37, 20, 13,  7, 63, 63, 18,  4,
65      10, 46, 17, 63, 21,  2,  6, 32, 34, 41,
66      24,  8,  3, 63, 63, 63, 63, 63, 63, 63,
67      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
68      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
69      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
70      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
71      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
72      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
73      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
74      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
75      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
76      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
77      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
78      63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
79      63, 63, 63, 63, 63, 63
80    };
81  register unsigned int hval = len;
82
83  switch (hval)
84    {
85      default:
86        hval += asso_values[(unsigned char)str[4]];
87      /*FALLTHROUGH*/
88      case 4:
89      case 3:
90        hval += asso_values[(unsigned char)str[2]];
91        break;
92    }
93  return hval;
94}
95
96struct FcObjectTypeNamePool_t
97  {
98    char FcObjectTypeNamePool_str6[sizeof("hash")];
99    char FcObjectTypeNamePool_str7[sizeof("size")];
100    char FcObjectTypeNamePool_str10[sizeof("dpi")];
101    char FcObjectTypeNamePool_str11[sizeof("charset")];
102    char FcObjectTypeNamePool_str12[sizeof("scalable")];
103    char FcObjectTypeNamePool_str13[sizeof("slant")];
104    char FcObjectTypeNamePool_str14[sizeof("lang")];
105    char FcObjectTypeNamePool_str15[sizeof("desktop")];
106    char FcObjectTypeNamePool_str16[sizeof("spacing")];
107    char FcObjectTypeNamePool_str17[sizeof("antialias")];
108    char FcObjectTypeNamePool_str18[sizeof("postscriptname")];
109    char FcObjectTypeNamePool_str19[sizeof("matrix")];
110    char FcObjectTypeNamePool_str20[sizeof("outline")];
111    char FcObjectTypeNamePool_str21[sizeof("hintstyle")];
112    char FcObjectTypeNamePool_str22[sizeof("file")];
113    char FcObjectTypeNamePool_str23[sizeof("rgba")];
114    char FcObjectTypeNamePool_str24[sizeof("hinting")];
115    char FcObjectTypeNamePool_str25[sizeof("charheight")];
116    char FcObjectTypeNamePool_str26[sizeof("weight")];
117    char FcObjectTypeNamePool_str27[sizeof("autohint")];
118    char FcObjectTypeNamePool_str28[sizeof("family")];
119    char FcObjectTypeNamePool_str29[sizeof("prgname")];
120    char FcObjectTypeNamePool_str30[sizeof("namelang")];
121    char FcObjectTypeNamePool_str31[sizeof("variable")];
122    char FcObjectTypeNamePool_str32[sizeof("familylang")];
123    char FcObjectTypeNamePool_str33[sizeof("aspect")];
124    char FcObjectTypeNamePool_str34[sizeof("fonthashint")];
125    char FcObjectTypeNamePool_str35[sizeof("minspace")];
126    char FcObjectTypeNamePool_str36[sizeof("fullname")];
127    char FcObjectTypeNamePool_str37[sizeof("lcdfilter")];
128    char FcObjectTypeNamePool_str38[sizeof("namedinstance")];
129    char FcObjectTypeNamePool_str39[sizeof("width")];
130    char FcObjectTypeNamePool_str40[sizeof("fullnamelang")];
131    char FcObjectTypeNamePool_str41[sizeof("decorative")];
132    char FcObjectTypeNamePool_str42[sizeof("verticallayout")];
133    char FcObjectTypeNamePool_str43[sizeof("scale")];
134    char FcObjectTypeNamePool_str44[sizeof("color")];
135    char FcObjectTypeNamePool_str45[sizeof("embolden")];
136    char FcObjectTypeNamePool_str46[sizeof("capability")];
137    char FcObjectTypeNamePool_str47[sizeof("order")];
138    char FcObjectTypeNamePool_str48[sizeof("rasterizer")];
139    char FcObjectTypeNamePool_str49[sizeof("style")];
140    char FcObjectTypeNamePool_str50[sizeof("index")];
141    char FcObjectTypeNamePool_str51[sizeof("pixelsize")];
142    char FcObjectTypeNamePool_str52[sizeof("charwidth")];
143    char FcObjectTypeNamePool_str53[sizeof("stylelang")];
144    char FcObjectTypeNamePool_str54[sizeof("embeddedbitmap")];
145    char FcObjectTypeNamePool_str55[sizeof("fontversion")];
146    char FcObjectTypeNamePool_str56[sizeof("symbol")];
147    char FcObjectTypeNamePool_str57[sizeof("fontformat")];
148    char FcObjectTypeNamePool_str58[sizeof("fontvariations")];
149    char FcObjectTypeNamePool_str59[sizeof("fontfeatures")];
150    char FcObjectTypeNamePool_str60[sizeof("foundry")];
151    char FcObjectTypeNamePool_str61[sizeof("globaladvance")];
152    char FcObjectTypeNamePool_str62[sizeof("fontwrapper")];
153  };
154static const struct FcObjectTypeNamePool_t FcObjectTypeNamePool_contents =
155  {
156    "hash",
157    "size",
158    "dpi",
159    "charset",
160    "scalable",
161    "slant",
162    "lang",
163    "desktop",
164    "spacing",
165    "antialias",
166    "postscriptname",
167    "matrix",
168    "outline",
169    "hintstyle",
170    "file",
171    "rgba",
172    "hinting",
173    "charheight",
174    "weight",
175    "autohint",
176    "family",
177    "prgname",
178    "namelang",
179    "variable",
180    "familylang",
181    "aspect",
182    "fonthashint",
183    "minspace",
184    "fullname",
185    "lcdfilter",
186    "namedinstance",
187    "width",
188    "fullnamelang",
189    "decorative",
190    "verticallayout",
191    "scale",
192    "color",
193    "embolden",
194    "capability",
195    "order",
196    "rasterizer",
197    "style",
198    "index",
199    "pixelsize",
200    "charwidth",
201    "stylelang",
202    "embeddedbitmap",
203    "fontversion",
204    "symbol",
205    "fontformat",
206    "fontvariations",
207    "fontfeatures",
208    "foundry",
209    "globaladvance",
210    "fontwrapper"
211  };
212#define FcObjectTypeNamePool ((const char *) &FcObjectTypeNamePool_contents)
213const struct FcObjectTypeInfo *
214FcObjectTypeLookup (register const char *str, register size_t len)
215{
216  enum
217    {
218      TOTAL_KEYWORDS = 55,
219      MIN_WORD_LENGTH = 3,
220      MAX_WORD_LENGTH = 14,
221      MIN_HASH_VALUE = 6,
222      MAX_HASH_VALUE = 62
223    };
224
225  static const struct FcObjectTypeInfo wordlist[] =
226    {
227      {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
228#line 62 "fcobjshash.gperf"
229      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str6,FC_HASH_OBJECT},
230#line 27 "fcobjshash.gperf"
231      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str7,FC_SIZE_OBJECT},
232      {-1}, {-1},
233#line 43 "fcobjshash.gperf"
234      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str10,FC_DPI_OBJECT},
235#line 50 "fcobjshash.gperf"
236      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str11,FC_CHARSET_OBJECT},
237#line 42 "fcobjshash.gperf"
238      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str12,FC_SCALABLE_OBJECT},
239#line 24 "fcobjshash.gperf"
240      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str13,FC_SLANT_OBJECT},
241#line 51 "fcobjshash.gperf"
242      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str14,FC_LANG_OBJECT},
243#line 70 "fcobjshash.gperf"
244      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str15,FC_DESKTOP_NAME_OBJECT},
245#line 30 "fcobjshash.gperf"
246      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str16,FC_SPACING_OBJECT},
247#line 32 "fcobjshash.gperf"
248      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str17,FC_ANTIALIAS_OBJECT},
249#line 63 "fcobjshash.gperf"
250      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str18,FC_POSTSCRIPT_NAME_OBJECT},
251#line 49 "fcobjshash.gperf"
252      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str19,FC_MATRIX_OBJECT},
253#line 41 "fcobjshash.gperf"
254      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str20,FC_OUTLINE_OBJECT},
255#line 33 "fcobjshash.gperf"
256      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str21,FC_HINT_STYLE_OBJECT},
257#line 38 "fcobjshash.gperf"
258      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str22,FC_FILE_OBJECT},
259#line 44 "fcobjshash.gperf"
260      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str23,FC_RGBA_OBJECT},
261#line 34 "fcobjshash.gperf"
262      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str24,FC_HINTING_OBJECT},
263#line 48 "fcobjshash.gperf"
264      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str25,FC_CHAR_HEIGHT_OBJECT},
265#line 25 "fcobjshash.gperf"
266      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str26,FC_WEIGHT_OBJECT},
267#line 36 "fcobjshash.gperf"
268      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str27,FC_AUTOHINT_OBJECT},
269#line 18 "fcobjshash.gperf"
270      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str28,FC_FAMILY_OBJECT},
271#line 61 "fcobjshash.gperf"
272      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str29,FC_PRGNAME_OBJECT},
273#line 59 "fcobjshash.gperf"
274      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str30,FC_NAMELANG_OBJECT},
275#line 67 "fcobjshash.gperf"
276      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str31,FC_VARIABLE_OBJECT},
277#line 19 "fcobjshash.gperf"
278      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str32,FC_FAMILYLANG_OBJECT},
279#line 28 "fcobjshash.gperf"
280      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str33,FC_ASPECT_OBJECT},
281#line 68 "fcobjshash.gperf"
282      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str34,FC_FONT_HAS_HINT_OBJECT},
283#line 46 "fcobjshash.gperf"
284      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str35,FC_MINSPACE_OBJECT},
285#line 22 "fcobjshash.gperf"
286      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str36,FC_FULLNAME_OBJECT},
287#line 58 "fcobjshash.gperf"
288      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str37,FC_LCD_FILTER_OBJECT},
289#line 71 "fcobjshash.gperf"
290      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str38,FC_NAMED_INSTANCE_OBJECT},
291#line 26 "fcobjshash.gperf"
292      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str39,FC_WIDTH_OBJECT},
293#line 23 "fcobjshash.gperf"
294      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str40,FC_FULLNAMELANG_OBJECT},
295#line 57 "fcobjshash.gperf"
296      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str41,FC_DECORATIVE_OBJECT},
297#line 35 "fcobjshash.gperf"
298      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str42,FC_VERTICAL_LAYOUT_OBJECT},
299#line 45 "fcobjshash.gperf"
300      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str43,FC_SCALE_OBJECT},
301#line 64 "fcobjshash.gperf"
302      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str44,FC_COLOR_OBJECT},
303#line 55 "fcobjshash.gperf"
304      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str45,FC_EMBOLDEN_OBJECT},
305#line 53 "fcobjshash.gperf"
306      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str46,FC_CAPABILITY_OBJECT},
307#line 69 "fcobjshash.gperf"
308      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str47,FC_ORDER_OBJECT},
309#line 40 "fcobjshash.gperf"
310      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str48,FC_RASTERIZER_OBJECT},
311#line 20 "fcobjshash.gperf"
312      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str49,FC_STYLE_OBJECT},
313#line 39 "fcobjshash.gperf"
314      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str50,FC_INDEX_OBJECT},
315#line 29 "fcobjshash.gperf"
316      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str51,FC_PIXEL_SIZE_OBJECT},
317#line 47 "fcobjshash.gperf"
318      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str52,FC_CHARWIDTH_OBJECT},
319#line 21 "fcobjshash.gperf"
320      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str53,FC_STYLELANG_OBJECT},
321#line 56 "fcobjshash.gperf"
322      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str54,FC_EMBEDDED_BITMAP_OBJECT},
323#line 52 "fcobjshash.gperf"
324      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str55,FC_FONTVERSION_OBJECT},
325#line 65 "fcobjshash.gperf"
326      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str56,FC_SYMBOL_OBJECT},
327#line 54 "fcobjshash.gperf"
328      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str57,FC_FONTFORMAT_OBJECT},
329#line 66 "fcobjshash.gperf"
330      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str58,FC_FONT_VARIATIONS_OBJECT},
331#line 60 "fcobjshash.gperf"
332      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str59,FC_FONT_FEATURES_OBJECT},
333#line 31 "fcobjshash.gperf"
334      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str60,FC_FOUNDRY_OBJECT},
335#line 37 "fcobjshash.gperf"
336      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str61,FC_GLOBAL_ADVANCE_OBJECT},
337#line 72 "fcobjshash.gperf"
338      {(int)(size_t)&((struct FcObjectTypeNamePool_t *)0)->FcObjectTypeNamePool_str62,FC_FONT_WRAPPER_OBJECT}
339    };
340
341  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
342    {
343      register unsigned int key = FcObjectTypeHash (str, len);
344
345      if (key <= MAX_HASH_VALUE)
346        {
347          register int o = wordlist[key].name;
348          if (o >= 0)
349            {
350              register const char *s = o + FcObjectTypeNamePool;
351
352              if (*str == *s && !strcmp (str + 1, s + 1))
353                return &wordlist[key];
354            }
355        }
356    }
357  return 0;
358}
359