/src/resiprocate/resip/stack/gen/ParameterHash.cxx
Line | Count | Source (jump to first uncovered line) |
1 | | /* C++ code produced by gperf version 3.1 */ |
2 | | /* Command-line: gperf -C -D -E -L C++ -t --key-positions='*' --compare-strncmp --ignore-case -Z ParameterHash ParameterHash.gperf */ |
3 | | |
4 | | #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ |
5 | | && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ |
6 | | && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \ |
7 | | && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \ |
8 | | && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \ |
9 | | && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \ |
10 | | && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \ |
11 | | && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \ |
12 | | && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \ |
13 | | && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \ |
14 | | && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \ |
15 | | && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \ |
16 | | && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \ |
17 | | && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \ |
18 | | && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \ |
19 | | && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \ |
20 | | && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \ |
21 | | && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \ |
22 | | && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \ |
23 | | && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \ |
24 | | && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \ |
25 | | && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \ |
26 | | && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126)) |
27 | | /* The character set is not based on ISO-646. */ |
28 | | #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>." |
29 | | #endif |
30 | | |
31 | | #line 1 "ParameterHash.gperf" |
32 | | |
33 | | #include <string.h> |
34 | | #include <ctype.h> |
35 | | #include "resip/stack/ParameterTypes.hxx" |
36 | | namespace resip { |
37 | | using namespace std; |
38 | | #line 8 "ParameterHash.gperf" |
39 | | struct params { const char *name; ParameterTypes::Type type; }; |
40 | | /* maximum key range = 511, 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_STRNCMP |
68 | | #define GPERF_CASE_STRNCMP 1 |
69 | | static int |
70 | | gperf_case_strncmp (const char *s1, const char *s2, size_t n) |
71 | 55.5k | { |
72 | 222k | for (; n > 0;) |
73 | 167k | { |
74 | 167k | unsigned char c1 = gperf_downcase[(unsigned char)*s1++]; |
75 | 167k | unsigned char c2 = gperf_downcase[(unsigned char)*s2++]; |
76 | 167k | if (c1 != 0 && c1 == c2) |
77 | 166k | { |
78 | 166k | n--; |
79 | 166k | continue; |
80 | 166k | } |
81 | 590 | return (int)c1 - (int)c2; |
82 | 167k | } |
83 | 54.9k | return 0; |
84 | 55.5k | } |
85 | | #endif |
86 | | |
87 | | class ParameterHash |
88 | | { |
89 | | private: |
90 | | static inline unsigned int hash (const char *str, size_t len); |
91 | | public: |
92 | | static const struct params *in_word_set (const char *str, size_t len); |
93 | | }; |
94 | | |
95 | | inline unsigned int |
96 | | ParameterHash::hash (const char *str, size_t len) |
97 | 3.66M | { |
98 | 3.66M | static const unsigned short asso_values[] = |
99 | 3.66M | { |
100 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
101 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
102 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
103 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
104 | 3.66M | 513, 513, 513, 0, 513, 5, 0, 513, 513, 513, |
105 | 3.66M | 513, 0, 513, 513, 513, 513, 513, 513, 513, 513, |
106 | 3.66M | 513, 513, 513, 513, 513, 0, 85, 0, 25, 5, |
107 | 3.66M | 115, 45, 70, 0, 513, 0, 50, 25, 5, 0, |
108 | 3.66M | 5, 119, 0, 0, 0, 35, 100, 40, 125, 65, |
109 | 3.66M | 5, 513, 513, 513, 513, 513, 513, 0, 85, 0, |
110 | 3.66M | 25, 5, 115, 45, 70, 0, 513, 0, 50, 25, |
111 | 3.66M | 5, 0, 5, 119, 0, 0, 0, 35, 100, 40, |
112 | 3.66M | 125, 65, 5, 513, 513, 513, 513, 513, 513, 513, |
113 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
114 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
115 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
116 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
117 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
118 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
119 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
120 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
121 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
122 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
123 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
124 | 3.66M | 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, |
125 | 3.66M | 513, 513, 513, 513, 513, 513 |
126 | 3.66M | }; |
127 | 3.66M | unsigned int hval = len; |
128 | | |
129 | 3.66M | switch (hval) |
130 | 3.66M | { |
131 | 899 | default: |
132 | 899 | hval += asso_values[static_cast<unsigned char>(str[17])]; |
133 | | /*FALLTHROUGH*/ |
134 | 2.20k | case 17: |
135 | 2.20k | hval += asso_values[static_cast<unsigned char>(str[16])]; |
136 | | /*FALLTHROUGH*/ |
137 | 4.98k | case 16: |
138 | 4.98k | hval += asso_values[static_cast<unsigned char>(str[15])]; |
139 | | /*FALLTHROUGH*/ |
140 | 5.59k | case 15: |
141 | 5.59k | hval += asso_values[static_cast<unsigned char>(str[14])]; |
142 | | /*FALLTHROUGH*/ |
143 | 6.48k | case 14: |
144 | 6.48k | hval += asso_values[static_cast<unsigned char>(str[13])]; |
145 | | /*FALLTHROUGH*/ |
146 | 7.03k | case 13: |
147 | 7.03k | hval += asso_values[static_cast<unsigned char>(str[12])]; |
148 | | /*FALLTHROUGH*/ |
149 | 7.48k | case 12: |
150 | 7.48k | hval += asso_values[static_cast<unsigned char>(str[11])]; |
151 | | /*FALLTHROUGH*/ |
152 | 8.25k | case 11: |
153 | 8.25k | hval += asso_values[static_cast<unsigned char>(str[10])]; |
154 | | /*FALLTHROUGH*/ |
155 | 9.21k | case 10: |
156 | 9.21k | hval += asso_values[static_cast<unsigned char>(str[9])]; |
157 | | /*FALLTHROUGH*/ |
158 | 10.1k | case 9: |
159 | 10.1k | hval += asso_values[static_cast<unsigned char>(str[8])]; |
160 | | /*FALLTHROUGH*/ |
161 | 11.4k | case 8: |
162 | 11.4k | hval += asso_values[static_cast<unsigned char>(str[7])]; |
163 | | /*FALLTHROUGH*/ |
164 | 27.3k | case 7: |
165 | 27.3k | hval += asso_values[static_cast<unsigned char>(str[6])]; |
166 | | /*FALLTHROUGH*/ |
167 | 28.8k | case 6: |
168 | 28.8k | hval += asso_values[static_cast<unsigned char>(str[5])]; |
169 | | /*FALLTHROUGH*/ |
170 | 31.8k | case 5: |
171 | 31.8k | hval += asso_values[static_cast<unsigned char>(str[4])]; |
172 | | /*FALLTHROUGH*/ |
173 | 34.1k | case 4: |
174 | 34.1k | hval += asso_values[static_cast<unsigned char>(str[3])]; |
175 | | /*FALLTHROUGH*/ |
176 | 48.3k | case 3: |
177 | 48.3k | hval += asso_values[static_cast<unsigned char>(str[2])]; |
178 | | /*FALLTHROUGH*/ |
179 | 67.8k | case 2: |
180 | 67.8k | hval += asso_values[static_cast<unsigned char>(str[1])]; |
181 | | /*FALLTHROUGH*/ |
182 | 3.66M | case 1: |
183 | 3.66M | hval += asso_values[static_cast<unsigned char>(str[0])]; |
184 | 3.66M | break; |
185 | 3.66M | } |
186 | 3.66M | return hval; |
187 | 3.66M | } |
188 | | |
189 | | const struct params * |
190 | | ParameterHash::in_word_set (const char *str, size_t len) |
191 | 3.66M | { |
192 | 3.66M | enum |
193 | 3.66M | { |
194 | 3.66M | TOTAL_KEYWORDS = 106, |
195 | 3.66M | MIN_WORD_LENGTH = 1, |
196 | 3.66M | MAX_WORD_LENGTH = 18, |
197 | 3.66M | MIN_HASH_VALUE = 2, |
198 | 3.66M | MAX_HASH_VALUE = 512 |
199 | 3.66M | }; |
200 | | |
201 | 3.66M | static const struct params wordlist[] = |
202 | 3.66M | { |
203 | 3.66M | #line 100 "ParameterHash.gperf" |
204 | 3.66M | {"rc", ParameterTypes::rc}, |
205 | 3.66M | #line 23 "ParameterHash.gperf" |
206 | 3.66M | {"actor", ParameterTypes::actor}, |
207 | 3.66M | #line 60 "ParameterHash.gperf" |
208 | 3.66M | {"nc", ParameterTypes::nc}, |
209 | 3.66M | #line 83 "ParameterHash.gperf" |
210 | 3.66M | {"site", ParameterTypes::site}, |
211 | 3.66M | #line 54 "ParameterHash.gperf" |
212 | 3.66M | {"rport", ParameterTypes::rport}, |
213 | 3.66M | #line 102 "ParameterHash.gperf" |
214 | 3.66M | {"np", ParameterTypes::np}, |
215 | 3.66M | #line 81 "ParameterHash.gperf" |
216 | 3.66M | {"size", ParameterTypes::size}, |
217 | 3.66M | #line 71 "ParameterHash.gperf" |
218 | 3.66M | {"reason", ParameterTypes::reason}, |
219 | 3.66M | #line 34 "ParameterHash.gperf" |
220 | 3.66M | {"transport", ParameterTypes::transport}, |
221 | 3.66M | #line 59 "ParameterHash.gperf" |
222 | 3.66M | {"nonce", ParameterTypes::nonce}, |
223 | 3.66M | #line 56 "ParameterHash.gperf" |
224 | 3.66M | {"cnonce", ParameterTypes::cnonce}, |
225 | 3.66M | #line 111 "ParameterHash.gperf" |
226 | 3.66M | {"content", ParameterTypes::content}, |
227 | 3.66M | #line 52 "ParameterHash.gperf" |
228 | 3.66M | {"rinstance", ParameterTypes::rinstance}, |
229 | 3.66M | #line 58 "ParameterHash.gperf" |
230 | 3.66M | {"id", ParameterTypes::id}, |
231 | 3.66M | #line 63 "ParameterHash.gperf" |
232 | 3.66M | {"response", ParameterTypes::response}, |
233 | 3.66M | #line 10 "ParameterHash.gperf" |
234 | 3.66M | {"data", ParameterTypes::data}, |
235 | 3.66M | #line 101 "ParameterHash.gperf" |
236 | 3.66M | {"mp", ParameterTypes::mp}, |
237 | 3.66M | #line 27 "ParameterHash.gperf" |
238 | 3.66M | {"+sip.instance", ParameterTypes::Instance}, |
239 | 3.66M | #line 53 "ParameterHash.gperf" |
240 | 3.66M | {"comp", ParameterTypes::comp}, |
241 | 3.66M | #line 69 "ParameterHash.gperf" |
242 | 3.66M | {"uri", ParameterTypes::uri}, |
243 | 3.66M | #line 33 "ParameterHash.gperf" |
244 | 3.66M | {"name", ParameterTypes::name}, |
245 | 3.66M | #line 110 "ParameterHash.gperf" |
246 | 3.66M | {"term-ioi", ParameterTypes::termIoi}, |
247 | 3.66M | #line 35 "ParameterHash.gperf" |
248 | 3.66M | {"user", ParameterTypes::user}, |
249 | 3.66M | #line 25 "ParameterHash.gperf" |
250 | 3.66M | {"cause", ParameterTypes::cause}, |
251 | 3.66M | #line 95 "ParameterHash.gperf" |
252 | 3.66M | {"app-id", ParameterTypes::appId}, |
253 | 3.66M | #line 30 "ParameterHash.gperf" |
254 | 3.66M | {"gr", ParameterTypes::gr}, |
255 | 3.66M | #line 48 "ParameterHash.gperf" |
256 | 3.66M | {"tag", ParameterTypes::tag}, |
257 | 3.66M | #line 82 "ParameterHash.gperf" |
258 | 3.66M | {"permission", ParameterTypes::permission}, |
259 | 3.66M | #line 13 "ParameterHash.gperf" |
260 | 3.66M | {"description", ParameterTypes::description}, |
261 | 3.66M | #line 40 "ParameterHash.gperf" |
262 | 3.66M | {"lr", ParameterTypes::lr}, |
263 | 3.66M | #line 38 "ParameterHash.gperf" |
264 | 3.66M | {"ttl", ParameterTypes::ttl}, |
265 | 3.66M | #line 43 "ParameterHash.gperf" |
266 | 3.66M | {"to-tag", ParameterTypes::toTag}, |
267 | 3.66M | #line 42 "ParameterHash.gperf" |
268 | 3.66M | {"purpose", ParameterTypes::purpose}, |
269 | 3.66M | #line 109 "ParameterHash.gperf" |
270 | 3.66M | {"orig-ioi", ParameterTypes::origIoi}, |
271 | 3.66M | #line 85 "ParameterHash.gperf" |
272 | 3.66M | {"mode", ParameterTypes::mode}, |
273 | 3.66M | #line 64 "ParameterHash.gperf" |
274 | 3.66M | {"stale", ParameterTypes::stale}, |
275 | 3.66M | #line 57 "ParameterHash.gperf" |
276 | 3.66M | {"domain", ParameterTypes::domain}, |
277 | 3.66M | #line 11 "ParameterHash.gperf" |
278 | 3.66M | {"control", ParameterTypes::control}, |
279 | 3.66M | #line 77 "ParameterHash.gperf" |
280 | 3.66M | {"protocol", ParameterTypes::protocol}, |
281 | 3.66M | #line 114 "ParameterHash.gperf" |
282 | 3.66M | {"ws-src-ip", ParameterTypes::wsSrcIp}, |
283 | 3.66M | #line 115 "ParameterHash.gperf" |
284 | 3.66M | {"ws-src-port", ParameterTypes::wsSrcPort}, |
285 | 3.66M | #line 113 "ParameterHash.gperf" |
286 | 3.66M | {"addtransport", ParameterTypes::addTransport}, |
287 | 3.66M | #line 45 "ParameterHash.gperf" |
288 | 3.66M | {"duration", ParameterTypes::duration}, |
289 | 3.66M | #line 18 "ParameterHash.gperf" |
290 | 3.66M | {"application", ParameterTypes::application}, |
291 | 3.66M | #line 15 "ParameterHash.gperf" |
292 | 3.66M | {"priority", ParameterTypes::priority}, |
293 | 3.66M | #line 21 "ParameterHash.gperf" |
294 | 3.66M | {"type", ParameterTypes::type}, |
295 | 3.66M | #line 39 "ParameterHash.gperf" |
296 | 3.66M | {"maddr", ParameterTypes::maddr}, |
297 | 3.66M | #line 87 "ParameterHash.gperf" |
298 | 3.66M | {"charset", ParameterTypes::charset}, |
299 | 3.66M | #line 65 "ParameterHash.gperf" |
300 | 3.66M | {"username", ParameterTypes::username}, |
301 | 3.66M | #line 62 "ParameterHash.gperf" |
302 | 3.66M | {"realm", ParameterTypes::realm}, |
303 | 3.66M | #line 28 "ParameterHash.gperf" |
304 | 3.66M | {"reg-id", ParameterTypes::regid}, |
305 | 3.66M | #line 29 "ParameterHash.gperf" |
306 | 3.66M | {"ob", ParameterTypes::ob}, |
307 | 3.66M | #line 97 "ParameterHash.gperf" |
308 | 3.66M | {"url", ParameterTypes::url}, |
309 | 3.66M | #line 112 "ParameterHash.gperf" |
310 | 3.66M | {"encoding", ParameterTypes::encoding}, |
311 | 3.66M | #line 88 "ParameterHash.gperf" |
312 | 3.66M | {"access-type", ParameterTypes::accessType}, |
313 | 3.66M | #line 94 "ParameterHash.gperf" |
314 | 3.66M | {"document", ParameterTypes::document}, |
315 | 3.66M | #line 84 "ParameterHash.gperf" |
316 | 3.66M | {"directory", ParameterTypes::directory}, |
317 | 3.66M | #line 96 "ParameterHash.gperf" |
318 | 3.66M | {"network-user", ParameterTypes::networkUser}, |
319 | 3.66M | #line 91 "ParameterHash.gperf" |
320 | 3.66M | {"model", ParameterTypes::model}, |
321 | 3.66M | #line 17 "ParameterHash.gperf" |
322 | 3.66M | {"schemes", ParameterTypes::schemes}, |
323 | 3.66M | #line 104 "ParameterHash.gperf" |
324 | 3.66M | {"cgi-3gpp", ParameterTypes::cgi3gpp}, |
325 | 3.66M | #line 98 "ParameterHash.gperf" |
326 | 3.66M | {"sigcomp-id", ParameterTypes::sigcompId}, |
327 | 3.66M | #line 86 "ParameterHash.gperf" |
328 | 3.66M | {"server", ParameterTypes::server}, |
329 | 3.66M | #line 92 "ParameterHash.gperf" |
330 | 3.66M | {"version", ParameterTypes::version}, |
331 | 3.66M | #line 105 "ParameterHash.gperf" |
332 | 3.66M | {"ccf", ParameterTypes::ccf}, |
333 | 3.66M | #line 41 "ParameterHash.gperf" |
334 | 3.66M | {"q", ParameterTypes::q}, |
335 | 3.66M | #line 14 "ParameterHash.gperf" |
336 | 3.66M | {"events", ParameterTypes::events}, |
337 | 3.66M | #line 106 "ParameterHash.gperf" |
338 | 3.66M | {"ecf", ParameterTypes::ecf}, |
339 | 3.66M | #line 78 "ParameterHash.gperf" |
340 | 3.66M | {"micalg", ParameterTypes::micalg}, |
341 | 3.66M | #line 68 "ParameterHash.gperf" |
342 | 3.66M | {"qop", ParameterTypes::qop}, |
343 | 3.66M | #line 72 "ParameterHash.gperf" |
344 | 3.66M | {"d-alg", ParameterTypes::dAlg}, |
345 | 3.66M | #line 37 "ParameterHash.gperf" |
346 | 3.66M | {"method", ParameterTypes::method}, |
347 | 3.66M | #line 16 "ParameterHash.gperf" |
348 | 3.66M | {"methods", ParameterTypes::methods}, |
349 | 3.66M | #line 36 "ParameterHash.gperf" |
350 | 3.66M | {"ext", ParameterTypes::extension}, |
351 | 3.66M | #line 24 "ParameterHash.gperf" |
352 | 3.66M | {"text", ParameterTypes::text}, |
353 | 3.66M | #line 19 "ParameterHash.gperf" |
354 | 3.66M | {"video", ParameterTypes::video}, |
355 | 3.66M | #line 74 "ParameterHash.gperf" |
356 | 3.66M | {"d-ver", ParameterTypes::dVer}, |
357 | 3.66M | #line 90 "ParameterHash.gperf" |
358 | 3.66M | {"vendor", ParameterTypes::vendor}, |
359 | 3.66M | #line 108 "ParameterHash.gperf" |
360 | 3.66M | {"icid-generated-at", ParameterTypes::icidGeneratedAt}, |
361 | 3.66M | #line 75 "ParameterHash.gperf" |
362 | 3.66M | {"smime-type", ParameterTypes::smimeType}, |
363 | 3.66M | #line 46 "ParameterHash.gperf" |
364 | 3.66M | {"expires", ParameterTypes::expires}, |
365 | 3.66M | #line 50 "ParameterHash.gperf" |
366 | 3.66M | {"received", ParameterTypes::received}, |
367 | 3.66M | #line 80 "ParameterHash.gperf" |
368 | 3.66M | {"expiration", ParameterTypes::expiration}, |
369 | 3.66M | #line 26 "ParameterHash.gperf" |
370 | 3.66M | {"extensions", ParameterTypes::extensions}, |
371 | 3.66M | #line 22 "ParameterHash.gperf" |
372 | 3.66M | {"isfocus", ParameterTypes::isFocus}, |
373 | 3.66M | #line 73 "ParameterHash.gperf" |
374 | 3.66M | {"d-qop", ParameterTypes::dQop}, |
375 | 3.66M | #line 32 "ParameterHash.gperf" |
376 | 3.66M | {"temp-gruu", ParameterTypes::tempGruu}, |
377 | 3.66M | #line 99 "ParameterHash.gperf" |
378 | 3.66M | {"index", ParameterTypes::index}, |
379 | 3.66M | #line 49 "ParameterHash.gperf" |
380 | 3.66M | {"branch", ParameterTypes::branch}, |
381 | 3.66M | #line 61 "ParameterHash.gperf" |
382 | 3.66M | {"opaque", ParameterTypes::opaque}, |
383 | 3.66M | #line 51 "ParameterHash.gperf" |
384 | 3.66M | {"require", ParameterTypes::require}, |
385 | 3.66M | #line 20 "ParameterHash.gperf" |
386 | 3.66M | {"language", ParameterTypes::language}, |
387 | 3.66M | #line 44 "ParameterHash.gperf" |
388 | 3.66M | {"from-tag", ParameterTypes::fromTag}, |
389 | 3.66M | #line 55 "ParameterHash.gperf" |
390 | 3.66M | {"algorithm", ParameterTypes::algorithm}, |
391 | 3.66M | #line 70 "ParameterHash.gperf" |
392 | 3.66M | {"retry-after", ParameterTypes::retryAfter}, |
393 | 3.66M | #line 47 "ParameterHash.gperf" |
394 | 3.66M | {"handling", ParameterTypes::handling}, |
395 | 3.66M | #line 67 "ParameterHash.gperf" |
396 | 3.66M | {"refresher", ParameterTypes::refresher}, |
397 | 3.66M | #line 76 "ParameterHash.gperf" |
398 | 3.66M | {"filename", ParameterTypes::filename}, |
399 | 3.66M | #line 79 "ParameterHash.gperf" |
400 | 3.66M | {"boundary", ParameterTypes::boundary}, |
401 | 3.66M | #line 107 "ParameterHash.gperf" |
402 | 3.66M | {"icid-value", ParameterTypes::icidValue}, |
403 | 3.66M | #line 12 "ParameterHash.gperf" |
404 | 3.66M | {"mobility", ParameterTypes::mobility}, |
405 | 3.66M | #line 31 "ParameterHash.gperf" |
406 | 3.66M | {"pub-gruu", ParameterTypes::pubGruu}, |
407 | 3.66M | #line 66 "ParameterHash.gperf" |
408 | 3.66M | {"early-only", ParameterTypes::earlyOnly}, |
409 | 3.66M | #line 103 "ParameterHash.gperf" |
410 | 3.66M | {"utran-cell-id-3gpp", ParameterTypes::utranCellId3gpp}, |
411 | 3.66M | #line 89 "ParameterHash.gperf" |
412 | 3.66M | {"profile-type", ParameterTypes::profileType}, |
413 | 3.66M | #line 93 "ParameterHash.gperf" |
414 | 3.66M | {"effective-by", ParameterTypes::effectiveBy} |
415 | 3.66M | }; |
416 | | |
417 | 3.66M | static const signed char lookup[] = |
418 | 3.66M | { |
419 | 3.66M | -1, -1, 0, -1, -1, 1, -1, 2, -1, 3, |
420 | 3.66M | 4, -1, 5, -1, 6, -1, 7, -1, -1, 8, |
421 | 3.66M | 9, 10, 11, -1, 12, -1, -1, 13, 14, 15, |
422 | 3.66M | -1, -1, 16, 17, 18, -1, -1, -1, 19, 20, |
423 | 3.66M | -1, -1, -1, 21, 22, 23, 24, 25, 26, -1, |
424 | 3.66M | 27, 28, 29, 30, -1, -1, 31, 32, 33, 34, |
425 | 3.66M | 35, 36, 37, 38, 39, -1, 40, -1, -1, -1, |
426 | 3.66M | -1, -1, 41, 42, -1, -1, 43, -1, 44, 45, |
427 | 3.66M | 46, -1, 47, 48, -1, 49, 50, 51, 52, -1, |
428 | 3.66M | -1, -1, -1, 53, -1, -1, 54, -1, -1, -1, |
429 | 3.66M | -1, -1, -1, 55, 56, -1, -1, 57, -1, -1, |
430 | 3.66M | 58, -1, 59, 60, -1, 61, 62, 63, 64, -1, |
431 | 3.66M | 65, 66, -1, 67, -1, -1, 68, 69, -1, -1, |
432 | 3.66M | 70, 71, 72, 73, 74, 75, -1, -1, -1, -1, |
433 | 3.66M | 76, 77, 78, -1, -1, 79, -1, 80, 81, -1, |
434 | 3.66M | 82, -1, -1, -1, -1, 83, -1, 84, -1, 85, |
435 | 3.66M | -1, -1, -1, -1, 86, 87, 88, -1, -1, -1, |
436 | 3.66M | 89, 90, -1, -1, -1, -1, -1, -1, -1, -1, |
437 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
438 | 3.66M | -1, -1, -1, 91, -1, -1, -1, -1, 92, 93, |
439 | 3.66M | -1, -1, -1, -1, -1, -1, 94, -1, 95, 96, |
440 | 3.66M | -1, -1, -1, 97, -1, -1, -1, -1, -1, -1, |
441 | 3.66M | -1, -1, -1, 98, -1, -1, -1, -1, -1, -1, |
442 | 3.66M | 99, -1, -1, 100, -1, -1, -1, -1, -1, -1, |
443 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
444 | 3.66M | -1, -1, -1, 101, -1, 102, -1, -1, 103, -1, |
445 | 3.66M | -1, -1, -1, -1, -1, -1, -1, 104, -1, -1, |
446 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
447 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
448 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
449 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
450 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
451 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
452 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
453 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
454 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
455 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
456 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
457 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
458 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
459 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
460 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
461 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
462 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
463 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
464 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
465 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
466 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
467 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
468 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
469 | 3.66M | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
470 | 3.66M | -1, -1, 105 |
471 | 3.66M | }; |
472 | | |
473 | 3.66M | if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) |
474 | 3.66M | { |
475 | 3.66M | unsigned int key = hash (str, len); |
476 | | |
477 | 3.66M | if (key <= MAX_HASH_VALUE) |
478 | 1.55M | { |
479 | 1.55M | int index = lookup[key]; |
480 | | |
481 | 1.55M | if (index >= 0) |
482 | 1.03M | { |
483 | 1.03M | const char *s = wordlist[index].name; |
484 | | |
485 | 1.03M | if ((((unsigned char)*str ^ (unsigned char)*s) & ~32) == 0 && !gperf_case_strncmp (str, s, len) && s[len] == '\0') |
486 | 54.9k | return &wordlist[index]; |
487 | 1.03M | } |
488 | 1.55M | } |
489 | 3.66M | } |
490 | 3.61M | return 0; |
491 | 3.66M | } |
492 | | #line 116 "ParameterHash.gperf" |
493 | | |
494 | | } |