1/* ANSI-C code produced by gperf version 3.0.1 */
2/* Command-line: gperf --switch=1 --language=ANSI-C --struct-type -N bs_xml_element BridgeSupport.gperf  */
3/* Computed positions: -k'1' */
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 1 "BridgeSupport.gperf"
33struct bs_xml_atom { char *name; int val; };
34
35#define TOTAL_KEYWORDS 13
36#define MIN_WORD_LENGTH 3
37#define MAX_WORD_LENGTH 17
38#define MIN_HASH_VALUE 3
39#define MAX_HASH_VALUE 21
40/* maximum key range = 19, duplicates = 0 */
41
42#ifdef __GNUC__
43__inline
44#else
45#ifdef __cplusplus
46inline
47#endif
48#endif
49static unsigned int
50hash (register const char *str, register unsigned int len)
51{
52  static unsigned char asso_values[] =
53    {
54      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
55      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
56      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
57      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
58      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
59      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
60      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
61      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
62      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
63      22, 22, 22, 22, 22, 22, 22,  0, 22,  5,
64      22,  0,  0, 22, 22,  0, 22, 22, 22, 14,
65      22, 15, 22, 22, 10,  0, 22, 22, 22, 22,
66      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
67      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
68      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
69      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
70      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
71      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
72      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
73      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
74      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
75      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
76      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
77      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
78      22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
79      22, 22, 22, 22, 22, 22
80    };
81  return len + asso_values[(unsigned char)str[0]];
82}
83
84#ifdef __GNUC__
85__inline
86#endif
87struct bs_xml_atom *
88bs_xml_element (register const char *str, register unsigned int len)
89{
90  static struct bs_xml_atom wordlist[] =
91    {
92#line 7 "BridgeSupport.gperf"
93      {"arg", 5 },
94#line 4 "BridgeSupport.gperf"
95      {"enum", 2 },
96#line 5 "BridgeSupport.gperf"
97      {"struct", 3 },
98#line 9 "BridgeSupport.gperf"
99      {"function", 7},
100#line 10 "BridgeSupport.gperf"
101      {"class", 8},
102#line 12 "BridgeSupport.gperf"
103      {"cftype", 10},
104#line 3 "BridgeSupport.gperf"
105      {"constant", 1},
106#line 14 "BridgeSupport.gperf"
107      {"function_alias", 12},
108#line 15 "BridgeSupport.gperf"
109      {"string_constant", 13},
110#line 8 "BridgeSupport.gperf"
111      {"retval", 6},
112#line 6 "BridgeSupport.gperf"
113      {"informal_protocol", 4},
114#line 11 "BridgeSupport.gperf"
115      {"method", 9 },
116#line 13 "BridgeSupport.gperf"
117      {"opaque", 11}
118    };
119
120  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
121    {
122      register int key = hash (str, len);
123
124      if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)
125        {
126          register struct bs_xml_atom *resword;
127
128          switch (key - 3)
129            {
130              case 0:
131                resword = &wordlist[0];
132                goto compare;
133              case 1:
134                resword = &wordlist[1];
135                goto compare;
136              case 3:
137                resword = &wordlist[2];
138                goto compare;
139              case 5:
140                resword = &wordlist[3];
141                goto compare;
142              case 7:
143                resword = &wordlist[4];
144                goto compare;
145              case 8:
146                resword = &wordlist[5];
147                goto compare;
148              case 10:
149                resword = &wordlist[6];
150                goto compare;
151              case 11:
152                resword = &wordlist[7];
153                goto compare;
154              case 12:
155                resword = &wordlist[8];
156                goto compare;
157              case 13:
158                resword = &wordlist[9];
159                goto compare;
160              case 14:
161                resword = &wordlist[10];
162                goto compare;
163              case 17:
164                resword = &wordlist[11];
165                goto compare;
166              case 18:
167                resword = &wordlist[12];
168                goto compare;
169            }
170          return 0;
171        compare:
172          {
173            register const char *s = resword->name;
174
175            if (*str == *s && !strcmp (str + 1, s + 1))
176              return resword;
177          }
178        }
179    }
180  return 0;
181}
182#line 16 "BridgeSupport.gperf"
183
184#define BS_XML_CONSTANT           1
185#define BS_XML_ENUM               2
186#define BS_XML_STRUCT             3
187#define BS_XML_INFORMAL_PROTOCOL  4
188#define BS_XML_ARG                5
189#define BS_XML_RETVAL             6
190#define BS_XML_FUNCTION           7
191#define BS_XML_CLASS              8
192#define BS_XML_METHOD             9
193#define BS_XML_CFTYPE             10
194#define BS_XML_OPAQUE             11
195#define BS_XML_FUNCTION_ALIAS     12
196#define BS_XML_STRING_CONSTANT    13
197