| 1 | #include "apt-pkg/tagfile-keys.h" |
| 2 | #ifdef __GNUC__ |
| 3 | typedef uint16_t __attribute__((aligned (1))) triehash_uu16; |
| 4 | typedef char static_assert16[__alignof__(triehash_uu16) == 1 ? 1 : -1]; |
| 5 | typedef uint32_t __attribute__((aligned (1))) triehash_uu32; |
| 6 | typedef char static_assert32[__alignof__(triehash_uu32) == 1 ? 1 : -1]; |
| 7 | typedef uint64_t __attribute__((aligned (1))) triehash_uu64; |
| 8 | //\0[__alignof__(triehash_uu64) == 1 ? 1 : -1]; |
| 9 | #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ |
| 10 | #define onechar(c, s, l) (((uint64_t)(c)) << (s)) |
| 11 | #else |
| 12 | #define onechar(c, s, l) (((uint64_t)(c)) << (l-8-s)) |
| 13 | #endif |
| 14 | #if (!defined(__ARM_ARCH) || defined(__ARM_FEATURE_UNALIGNED)) && !defined(TRIE_HASH_NO_MULTI_BYTE) |
| 15 | #define TRIE_HASH_MULTI_BYTE |
| 16 | #endif |
| 17 | #endif /*GNUC */ |
| 18 | #ifdef TRIE_HASH_MULTI_BYTE |
| 19 | static enum pkgTagSection::Key pkgTagHash3(const char *string) |
| 20 | { |
| 21 | switch(string[0] | 0x20) { |
| 22 | case 0| onechar('t', 0, 8): |
| 23 | switch(string[1] | 0x20) { |
| 24 | case 0| onechar('a', 0, 8): |
| 25 | switch(string[2] | 0x20) { |
| 26 | case 0| onechar('g', 0, 8): |
| 27 | return pkgTagSection::Key::Tag; |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | return pkgTagSection::Key::Unknown; |
| 32 | } |
| 33 | static enum pkgTagSection::Key pkgTagHash4(const char *string) |
| 34 | { |
| 35 | switch(string[0] | 0x20) { |
| 36 | case 0| onechar('b', 0, 8): |
| 37 | switch(string[1] | 0x20) { |
| 38 | case 0| onechar('u', 0, 8): |
| 39 | switch(string[2] | 0x20) { |
| 40 | case 0| onechar('g', 0, 8): |
| 41 | switch(string[3] | 0x20) { |
| 42 | case 0| onechar('s', 0, 8): |
| 43 | return pkgTagSection::Key::Bugs; |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | break; |
| 48 | case 0| onechar('s', 0, 8): |
| 49 | switch(string[1] | 0x20) { |
| 50 | case 0| onechar('h', 0, 8): |
| 51 | switch(string[2] | 0x20) { |
| 52 | case 0| onechar('a', 0, 8): |
| 53 | switch(string[3]) { |
| 54 | case 0| onechar('1', 0, 8): |
| 55 | return pkgTagSection::Key::SHA1; |
| 56 | } |
| 57 | } |
| 58 | break; |
| 59 | case 0| onechar('i', 0, 8): |
| 60 | switch(string[2] | 0x20) { |
| 61 | case 0| onechar('z', 0, 8): |
| 62 | switch(string[3] | 0x20) { |
| 63 | case 0| onechar('e', 0, 8): |
| 64 | return pkgTagSection::Key::Size; |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | break; |
| 69 | case 0| onechar('t', 0, 8): |
| 70 | switch(string[1] | 0x20) { |
| 71 | case 0| onechar('a', 0, 8): |
| 72 | switch(string[2] | 0x20) { |
| 73 | case 0| onechar('s', 0, 8): |
| 74 | switch(string[3] | 0x20) { |
| 75 | case 0| onechar('k', 0, 8): |
| 76 | return pkgTagSection::Key::Task; |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | return pkgTagSection::Key::Unknown; |
| 82 | } |
| 83 | static enum pkgTagSection::Key pkgTagHash5(const char *string) |
| 84 | { |
| 85 | switch(*((triehash_uu32*) &string[0]) | 0x20202020) { |
| 86 | case 0| onechar('c', 0, 32)| onechar('l', 8, 32)| onechar('a', 16, 32)| onechar('s', 24, 32): |
| 87 | switch(string[4] | 0x20) { |
| 88 | case 0| onechar('s', 0, 8): |
| 89 | return pkgTagSection::Key::Class; |
| 90 | } |
| 91 | break; |
| 92 | case 0| onechar('f', 0, 32)| onechar('i', 8, 32)| onechar('l', 16, 32)| onechar('e', 24, 32): |
| 93 | switch(string[4] | 0x20) { |
| 94 | case 0| onechar('s', 0, 8): |
| 95 | return pkgTagSection::Key::Files; |
| 96 | } |
| 97 | } |
| 98 | return pkgTagSection::Key::Unknown; |
| 99 | } |
| 100 | static enum pkgTagSection::Key pkgTagHash6(const char *string) |
| 101 | { |
| 102 | switch(string[0] | 0x20) { |
| 103 | case 0| onechar('b', 0, 8): |
| 104 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 105 | case 0| onechar('i', 0, 32)| onechar('n', 8, 32)| onechar('a', 16, 32)| onechar('r', 24, 32): |
| 106 | switch(string[5] | 0x20) { |
| 107 | case 0| onechar('y', 0, 8): |
| 108 | return pkgTagSection::Key::Binary; |
| 109 | } |
| 110 | break; |
| 111 | case 0| onechar('r', 0, 32)| onechar('e', 8, 32)| onechar('a', 16, 32)| onechar('k', 24, 32): |
| 112 | switch(string[5] | 0x20) { |
| 113 | case 0| onechar('s', 0, 8): |
| 114 | return pkgTagSection::Key::Breaks; |
| 115 | } |
| 116 | } |
| 117 | break; |
| 118 | case 0| onechar('f', 0, 8): |
| 119 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 120 | case 0| onechar('o', 0, 32)| onechar('r', 8, 32)| onechar('m', 16, 32)| onechar('a', 24, 32): |
| 121 | switch(string[5] | 0x20) { |
| 122 | case 0| onechar('t', 0, 8): |
| 123 | return pkgTagSection::Key::Format; |
| 124 | } |
| 125 | } |
| 126 | break; |
| 127 | case 0| onechar('m', 0, 8): |
| 128 | switch(string[1] | 0x20) { |
| 129 | case 0| onechar('d', 0, 8): |
| 130 | switch(string[2]) { |
| 131 | case 0| onechar('5', 0, 8): |
| 132 | switch(string[3] | 0x20) { |
| 133 | case 0| onechar('s', 0, 8): |
| 134 | switch(string[4] | 0x20) { |
| 135 | case 0| onechar('u', 0, 8): |
| 136 | switch(string[5] | 0x20) { |
| 137 | case 0| onechar('m', 0, 8): |
| 138 | return pkgTagSection::Key::MD5sum; |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | } |
| 144 | break; |
| 145 | case 0| onechar('o', 0, 8): |
| 146 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 147 | case 0| onechar('r', 0, 32)| onechar('i', 8, 32)| onechar('g', 16, 32)| onechar('i', 24, 32): |
| 148 | switch(string[5] | 0x20) { |
| 149 | case 0| onechar('n', 0, 8): |
| 150 | return pkgTagSection::Key::Origin; |
| 151 | } |
| 152 | } |
| 153 | break; |
| 154 | case 0| onechar('s', 0, 8): |
| 155 | switch(string[1] | 0x20) { |
| 156 | case 0| onechar('h', 0, 8): |
| 157 | switch(string[2] | 0x20) { |
| 158 | case 0| onechar('a', 0, 8): |
| 159 | switch(string[3]) { |
| 160 | case 0| onechar('2', 0, 8): |
| 161 | switch(string[4]) { |
| 162 | case 0| onechar('5', 0, 8): |
| 163 | switch(string[5]) { |
| 164 | case 0| onechar('6', 0, 8): |
| 165 | return pkgTagSection::Key::SHA256; |
| 166 | } |
| 167 | } |
| 168 | break; |
| 169 | case 0| onechar('5', 0, 8): |
| 170 | switch(string[4]) { |
| 171 | case 0| onechar('1', 0, 8): |
| 172 | switch(string[5]) { |
| 173 | case 0| onechar('2', 0, 8): |
| 174 | return pkgTagSection::Key::SHA512; |
| 175 | } |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | break; |
| 180 | case 0| onechar('o', 0, 8): |
| 181 | switch(*((triehash_uu32*) &string[2]) | 0x20202020) { |
| 182 | case 0| onechar('u', 0, 32)| onechar('r', 8, 32)| onechar('c', 16, 32)| onechar('e', 24, 32): |
| 183 | return pkgTagSection::Key::Source; |
| 184 | } |
| 185 | break; |
| 186 | case 0| onechar('t', 0, 8): |
| 187 | switch(*((triehash_uu32*) &string[2]) | 0x20202020) { |
| 188 | case 0| onechar('a', 0, 32)| onechar('t', 8, 32)| onechar('u', 16, 32)| onechar('s', 24, 32): |
| 189 | return pkgTagSection::Key::Status; |
| 190 | } |
| 191 | } |
| 192 | break; |
| 193 | case 0| onechar('v', 0, 8): |
| 194 | switch(string[1] | 0x20) { |
| 195 | case 0| onechar('c', 0, 8): |
| 196 | switch(string[2] | 0x20) { |
| 197 | case 0| onechar('s', 0, 8): |
| 198 | switch(string[3]) { |
| 199 | case 0| onechar('-', 0, 8): |
| 200 | switch(string[4] | 0x20) { |
| 201 | case 0| onechar('h', 0, 8): |
| 202 | switch(string[5] | 0x20) { |
| 203 | case 0| onechar('g', 0, 8): |
| 204 | return pkgTagSection::Key::Vcs_Hg; |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | } |
| 209 | } |
| 210 | } |
| 211 | return pkgTagSection::Key::Unknown; |
| 212 | } |
| 213 | static enum pkgTagSection::Key pkgTagHash7(const char *string) |
| 214 | { |
| 215 | switch(string[0] | 0x20) { |
| 216 | case 0| onechar('d', 0, 8): |
| 217 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 218 | case 0| onechar('e', 0, 32)| onechar('p', 8, 32)| onechar('e', 16, 32)| onechar('n', 24, 32): |
| 219 | switch(string[5] | 0x20) { |
| 220 | case 0| onechar('d', 0, 8): |
| 221 | switch(string[6] | 0x20) { |
| 222 | case 0| onechar('s', 0, 8): |
| 223 | return pkgTagSection::Key::Depends; |
| 224 | } |
| 225 | } |
| 226 | } |
| 227 | break; |
| 228 | case 0| onechar('p', 0, 8): |
| 229 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 230 | case 0| onechar('a', 0, 32)| onechar('c', 8, 32)| onechar('k', 16, 32)| onechar('a', 24, 32): |
| 231 | switch(string[5] | 0x20) { |
| 232 | case 0| onechar('g', 0, 8): |
| 233 | switch(string[6] | 0x20) { |
| 234 | case 0| onechar('e', 0, 8): |
| 235 | return pkgTagSection::Key::Package; |
| 236 | } |
| 237 | } |
| 238 | } |
| 239 | break; |
| 240 | case 0| onechar('s', 0, 8): |
| 241 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 242 | case 0| onechar('e', 0, 32)| onechar('c', 8, 32)| onechar('t', 16, 32)| onechar('i', 24, 32): |
| 243 | switch(string[5] | 0x20) { |
| 244 | case 0| onechar('o', 0, 8): |
| 245 | switch(string[6] | 0x20) { |
| 246 | case 0| onechar('n', 0, 8): |
| 247 | return pkgTagSection::Key::Section; |
| 248 | } |
| 249 | } |
| 250 | } |
| 251 | break; |
| 252 | case 0| onechar('v', 0, 8): |
| 253 | switch(string[1] | 0x20) { |
| 254 | case 0| onechar('c', 0, 8): |
| 255 | switch(string[2] | 0x20) { |
| 256 | case 0| onechar('s', 0, 8): |
| 257 | switch(string[3]) { |
| 258 | case 0| onechar('-', 0, 8): |
| 259 | switch(string[4] | 0x20) { |
| 260 | case 0| onechar('b', 0, 8): |
| 261 | switch(string[5] | 0x20) { |
| 262 | case 0| onechar('z', 0, 8): |
| 263 | switch(string[6] | 0x20) { |
| 264 | case 0| onechar('r', 0, 8): |
| 265 | return pkgTagSection::Key::Vcs_Bzr; |
| 266 | } |
| 267 | } |
| 268 | break; |
| 269 | case 0| onechar('c', 0, 8): |
| 270 | switch(string[5] | 0x20) { |
| 271 | case 0| onechar('v', 0, 8): |
| 272 | switch(string[6] | 0x20) { |
| 273 | case 0| onechar('s', 0, 8): |
| 274 | return pkgTagSection::Key::Vcs_Cvs; |
| 275 | } |
| 276 | } |
| 277 | break; |
| 278 | case 0| onechar('g', 0, 8): |
| 279 | switch(string[5] | 0x20) { |
| 280 | case 0| onechar('i', 0, 8): |
| 281 | switch(string[6] | 0x20) { |
| 282 | case 0| onechar('t', 0, 8): |
| 283 | return pkgTagSection::Key::Vcs_Git; |
| 284 | } |
| 285 | } |
| 286 | break; |
| 287 | case 0| onechar('m', 0, 8): |
| 288 | switch(string[5] | 0x20) { |
| 289 | case 0| onechar('t', 0, 8): |
| 290 | switch(string[6] | 0x20) { |
| 291 | case 0| onechar('n', 0, 8): |
| 292 | return pkgTagSection::Key::Vcs_Mtn; |
| 293 | } |
| 294 | } |
| 295 | break; |
| 296 | case 0| onechar('s', 0, 8): |
| 297 | switch(string[5] | 0x20) { |
| 298 | case 0| onechar('v', 0, 8): |
| 299 | switch(string[6] | 0x20) { |
| 300 | case 0| onechar('n', 0, 8): |
| 301 | return pkgTagSection::Key::Vcs_Svn; |
| 302 | } |
| 303 | } |
| 304 | } |
| 305 | } |
| 306 | } |
| 307 | break; |
| 308 | case 0| onechar('e', 0, 8): |
| 309 | switch(*((triehash_uu32*) &string[2]) | 0x20202020) { |
| 310 | case 0| onechar('r', 0, 32)| onechar('s', 8, 32)| onechar('i', 16, 32)| onechar('o', 24, 32): |
| 311 | switch(string[6] | 0x20) { |
| 312 | case 0| onechar('n', 0, 8): |
| 313 | return pkgTagSection::Key::Version; |
| 314 | } |
| 315 | } |
| 316 | } |
| 317 | } |
| 318 | return pkgTagSection::Key::Unknown; |
| 319 | } |
| 320 | static enum pkgTagSection::Key pkgTagHash8(const char *string) |
| 321 | { |
| 322 | switch(string[0] | 0x20) { |
| 323 | case 0| onechar('e', 0, 8): |
| 324 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 325 | case 0| onechar('n', 0, 32)| onechar('h', 8, 32)| onechar('a', 16, 32)| onechar('n', 24, 32): |
| 326 | switch(string[5] | 0x20) { |
| 327 | case 0| onechar('c', 0, 8): |
| 328 | switch(string[6] | 0x20) { |
| 329 | case 0| onechar('e', 0, 8): |
| 330 | switch(string[7] | 0x20) { |
| 331 | case 0| onechar('s', 0, 8): |
| 332 | return pkgTagSection::Key::Enhances; |
| 333 | } |
| 334 | } |
| 335 | } |
| 336 | } |
| 337 | break; |
| 338 | case 0| onechar('f', 0, 8): |
| 339 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 340 | case 0| onechar('i', 0, 32)| onechar('l', 8, 32)| onechar('e', 16, 32)| onechar('n', 24, 32): |
| 341 | switch(string[5] | 0x20) { |
| 342 | case 0| onechar('a', 0, 8): |
| 343 | switch(string[6] | 0x20) { |
| 344 | case 0| onechar('m', 0, 8): |
| 345 | switch(string[7] | 0x20) { |
| 346 | case 0| onechar('e', 0, 8): |
| 347 | return pkgTagSection::Key::Filename; |
| 348 | } |
| 349 | } |
| 350 | } |
| 351 | } |
| 352 | break; |
| 353 | case 0| onechar('h', 0, 8): |
| 354 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 355 | case 0| onechar('o', 0, 32)| onechar('m', 8, 32)| onechar('e', 16, 32)| onechar('p', 24, 32): |
| 356 | switch(string[5] | 0x20) { |
| 357 | case 0| onechar('a', 0, 8): |
| 358 | switch(string[6] | 0x20) { |
| 359 | case 0| onechar('g', 0, 8): |
| 360 | switch(string[7] | 0x20) { |
| 361 | case 0| onechar('e', 0, 8): |
| 362 | return pkgTagSection::Key::Homepage; |
| 363 | } |
| 364 | } |
| 365 | } |
| 366 | } |
| 367 | break; |
| 368 | case 0| onechar('o', 0, 8): |
| 369 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 370 | case 0| onechar('p', 0, 32)| onechar('t', 8, 32)| onechar('i', 16, 32)| onechar('o', 24, 32): |
| 371 | switch(string[5] | 0x20) { |
| 372 | case 0| onechar('n', 0, 8): |
| 373 | switch(string[6] | 0x20) { |
| 374 | case 0| onechar('a', 0, 8): |
| 375 | switch(string[7] | 0x20) { |
| 376 | case 0| onechar('l', 0, 8): |
| 377 | return pkgTagSection::Key::Optional; |
| 378 | } |
| 379 | } |
| 380 | } |
| 381 | } |
| 382 | break; |
| 383 | case 0| onechar('p', 0, 8): |
| 384 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 385 | case 0| onechar('r', 0, 32)| onechar('i', 8, 32)| onechar('o', 16, 32)| onechar('r', 24, 32): |
| 386 | switch(string[5] | 0x20) { |
| 387 | case 0| onechar('i', 0, 8): |
| 388 | switch(string[6] | 0x20) { |
| 389 | case 0| onechar('t', 0, 8): |
| 390 | switch(string[7] | 0x20) { |
| 391 | case 0| onechar('y', 0, 8): |
| 392 | return pkgTagSection::Key::Priority; |
| 393 | } |
| 394 | } |
| 395 | } |
| 396 | break; |
| 397 | case 0| onechar('r', 0, 32)| onechar('o', 8, 32)| onechar('v', 16, 32)| onechar('i', 24, 32): |
| 398 | switch(string[5] | 0x20) { |
| 399 | case 0| onechar('d', 0, 8): |
| 400 | switch(string[6] | 0x20) { |
| 401 | case 0| onechar('e', 0, 8): |
| 402 | switch(string[7] | 0x20) { |
| 403 | case 0| onechar('s', 0, 8): |
| 404 | return pkgTagSection::Key::Provides; |
| 405 | } |
| 406 | } |
| 407 | } |
| 408 | } |
| 409 | break; |
| 410 | case 0| onechar('r', 0, 8): |
| 411 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 412 | case 0| onechar('e', 0, 32)| onechar('p', 8, 32)| onechar('l', 16, 32)| onechar('a', 24, 32): |
| 413 | switch(string[5] | 0x20) { |
| 414 | case 0| onechar('c', 0, 8): |
| 415 | switch(string[6] | 0x20) { |
| 416 | case 0| onechar('e', 0, 8): |
| 417 | switch(string[7] | 0x20) { |
| 418 | case 0| onechar('s', 0, 8): |
| 419 | return pkgTagSection::Key::Replaces; |
| 420 | } |
| 421 | } |
| 422 | } |
| 423 | break; |
| 424 | case 0| onechar('e', 0, 32)| onechar('v', 8, 32)| onechar('i', 16, 32)| onechar('s', 24, 32): |
| 425 | switch(string[5] | 0x20) { |
| 426 | case 0| onechar('i', 0, 8): |
| 427 | switch(string[6] | 0x20) { |
| 428 | case 0| onechar('o', 0, 8): |
| 429 | switch(string[7] | 0x20) { |
| 430 | case 0| onechar('n', 0, 8): |
| 431 | return pkgTagSection::Key::Revision; |
| 432 | } |
| 433 | } |
| 434 | } |
| 435 | } |
| 436 | break; |
| 437 | case 0| onechar('s', 0, 8): |
| 438 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 439 | case 0| onechar('u', 0, 32)| onechar('g', 8, 32)| onechar('g', 16, 32)| onechar('e', 24, 32): |
| 440 | switch(string[5] | 0x20) { |
| 441 | case 0| onechar('s', 0, 8): |
| 442 | switch(string[6] | 0x20) { |
| 443 | case 0| onechar('t', 0, 8): |
| 444 | switch(string[7] | 0x20) { |
| 445 | case 0| onechar('s', 0, 8): |
| 446 | return pkgTagSection::Key::Suggests; |
| 447 | } |
| 448 | } |
| 449 | } |
| 450 | } |
| 451 | break; |
| 452 | case 0| onechar('v', 0, 8): |
| 453 | switch(string[1] | 0x20) { |
| 454 | case 0| onechar('c', 0, 8): |
| 455 | switch(string[2] | 0x20) { |
| 456 | case 0| onechar('s', 0, 8): |
| 457 | switch(string[3]) { |
| 458 | case 0| onechar('-', 0, 8): |
| 459 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 460 | case 0| onechar('a', 0, 32)| onechar('r', 8, 32)| onechar('c', 16, 32)| onechar('h', 24, 32): |
| 461 | return pkgTagSection::Key::Vcs_Arch; |
| 462 | } |
| 463 | } |
| 464 | } |
| 465 | } |
| 466 | } |
| 467 | return pkgTagSection::Key::Unknown; |
| 468 | } |
| 469 | static enum pkgTagSection::Key pkgTagHash9(const char *string) |
| 470 | { |
| 471 | switch(string[0] | 0x20) { |
| 472 | case 0| onechar('c', 0, 8): |
| 473 | switch(*((triehash_uu64*) &string[1]) | 0x2020202020202020) { |
| 474 | case 0| onechar('o', 0, 64)| onechar('n', 8, 64)| onechar('f', 16, 64)| onechar('f', 24, 64)| onechar('i', 32, 64)| onechar('l', 40, 64)| onechar('e', 48, 64)| onechar('s', 56, 64): |
| 475 | return pkgTagSection::Key::Conffiles; |
| 476 | break; |
| 477 | case 0| onechar('o', 0, 64)| onechar('n', 8, 64)| onechar('f', 16, 64)| onechar('l', 24, 64)| onechar('i', 32, 64)| onechar('c', 40, 64)| onechar('t', 48, 64)| onechar('s', 56, 64): |
| 478 | return pkgTagSection::Key::Conflicts; |
| 479 | } |
| 480 | break; |
| 481 | case 0| onechar('d', 0, 8): |
| 482 | switch(*((triehash_uu64*) &string[1]) | 0x2020202020202020) { |
| 483 | case 0| onechar('i', 0, 64)| onechar('r', 8, 64)| onechar('e', 16, 64)| onechar('c', 24, 64)| onechar('t', 32, 64)| onechar('o', 40, 64)| onechar('r', 48, 64)| onechar('y', 56, 64): |
| 484 | return pkgTagSection::Key::Directory; |
| 485 | } |
| 486 | break; |
| 487 | case 0| onechar('e', 0, 8): |
| 488 | switch(*((triehash_uu64*) &string[1]) | 0x2020202020202020) { |
| 489 | case 0| onechar('s', 0, 64)| onechar('s', 8, 64)| onechar('e', 16, 64)| onechar('n', 24, 64)| onechar('t', 32, 64)| onechar('i', 40, 64)| onechar('a', 48, 64)| onechar('l', 56, 64): |
| 490 | return pkgTagSection::Key::Essential; |
| 491 | } |
| 492 | break; |
| 493 | case 0| onechar('i', 0, 8): |
| 494 | switch(*((triehash_uu64*) &string[1]) | 0x2020202020202020) { |
| 495 | case 0| onechar('m', 0, 64)| onechar('p', 8, 64)| onechar('o', 16, 64)| onechar('r', 24, 64)| onechar('t', 32, 64)| onechar('a', 40, 64)| onechar('n', 48, 64)| onechar('t', 56, 64): |
| 496 | return pkgTagSection::Key::Important; |
| 497 | } |
| 498 | break; |
| 499 | case 0| onechar('t', 0, 8): |
| 500 | switch(*((triehash_uu64*) &string[1]) | 0x2020202020202020) { |
| 501 | case 0| onechar('e', 0, 64)| onechar('s', 8, 64)| onechar('t', 16, 64)| onechar('s', 24, 64)| onechar('u', 32, 64)| onechar('i', 40, 64)| onechar('t', 48, 64)| onechar('e', 56, 64): |
| 502 | return pkgTagSection::Key::Testsuite; |
| 503 | } |
| 504 | break; |
| 505 | case 0| onechar('u', 0, 8): |
| 506 | switch(*((triehash_uu64*) &string[1]) | 0x2020202020202020) { |
| 507 | case 0| onechar('p', 0, 64)| onechar('l', 8, 64)| onechar('o', 16, 64)| onechar('a', 24, 64)| onechar('d', 32, 64)| onechar('e', 40, 64)| onechar('r', 48, 64)| onechar('s', 56, 64): |
| 508 | return pkgTagSection::Key::Uploaders; |
| 509 | } |
| 510 | break; |
| 511 | case 0| onechar('v', 0, 8): |
| 512 | switch(string[1] | 0x20) { |
| 513 | case 0| onechar('c', 0, 8): |
| 514 | switch(string[2] | 0x20) { |
| 515 | case 0| onechar('s', 0, 8): |
| 516 | switch(string[3]) { |
| 517 | case 0| onechar('-', 0, 8): |
| 518 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 519 | case 0| onechar('d', 0, 32)| onechar('a', 8, 32)| onechar('r', 16, 32)| onechar('c', 24, 32): |
| 520 | switch(string[8] | 0x20) { |
| 521 | case 0| onechar('s', 0, 8): |
| 522 | return pkgTagSection::Key::Vcs_Darcs; |
| 523 | } |
| 524 | } |
| 525 | } |
| 526 | } |
| 527 | } |
| 528 | } |
| 529 | return pkgTagSection::Key::Unknown; |
| 530 | } |
| 531 | static enum pkgTagSection::Key pkgTagHash10(const char *string) |
| 532 | { |
| 533 | switch(string[0] | 0x20) { |
| 534 | case 0| onechar('m', 0, 8): |
| 535 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 536 | case 0| onechar('a', 0, 32)| onechar('i', 8, 32)| onechar('n', 16, 32)| onechar('t', 24, 32): |
| 537 | switch(*((triehash_uu32*) &string[5]) | 0x20202020) { |
| 538 | case 0| onechar('a', 0, 32)| onechar('i', 8, 32)| onechar('n', 16, 32)| onechar('e', 24, 32): |
| 539 | switch(string[9] | 0x20) { |
| 540 | case 0| onechar('r', 0, 8): |
| 541 | return pkgTagSection::Key::Maintainer; |
| 542 | } |
| 543 | } |
| 544 | break; |
| 545 | case 0| onechar('u', 0, 32)| onechar('l', 8, 32)| onechar('t', 16, 32)| onechar('i', 24, 32): |
| 546 | switch(string[5]) { |
| 547 | case 0| onechar('-', 0, 8): |
| 548 | switch(*((triehash_uu32*) &string[6]) | 0x20202020) { |
| 549 | case 0| onechar('a', 0, 32)| onechar('r', 8, 32)| onechar('c', 16, 32)| onechar('h', 24, 32): |
| 550 | return pkgTagSection::Key::Multi_Arch; |
| 551 | } |
| 552 | } |
| 553 | } |
| 554 | break; |
| 555 | case 0| onechar('r', 0, 8): |
| 556 | switch(*((triehash_uu64*) &string[1]) | 0x2020202020202020) { |
| 557 | case 0| onechar('e', 0, 64)| onechar('c', 8, 64)| onechar('o', 16, 64)| onechar('m', 24, 64)| onechar('m', 32, 64)| onechar('e', 40, 64)| onechar('n', 48, 64)| onechar('d', 56, 64): |
| 558 | switch(string[9] | 0x20) { |
| 559 | case 0| onechar('s', 0, 8): |
| 560 | return pkgTagSection::Key::Recommends; |
| 561 | } |
| 562 | } |
| 563 | break; |
| 564 | case 0| onechar('v', 0, 8): |
| 565 | switch(string[1] | 0x20) { |
| 566 | case 0| onechar('c', 0, 8): |
| 567 | switch(string[2] | 0x20) { |
| 568 | case 0| onechar('s', 0, 8): |
| 569 | switch(string[3]) { |
| 570 | case 0| onechar('-', 0, 8): |
| 571 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 572 | case 0| onechar('b', 0, 32)| onechar('r', 8, 32)| onechar('o', 16, 32)| onechar('w', 24, 32): |
| 573 | switch(string[8] | 0x20) { |
| 574 | case 0| onechar('s', 0, 8): |
| 575 | switch(string[9] | 0x20) { |
| 576 | case 0| onechar('e', 0, 8): |
| 577 | return pkgTagSection::Key::Vcs_Browse; |
| 578 | } |
| 579 | } |
| 580 | } |
| 581 | } |
| 582 | } |
| 583 | } |
| 584 | } |
| 585 | return pkgTagSection::Key::Unknown; |
| 586 | } |
| 587 | static enum pkgTagSection::Key pkgTagHash11(const char *string) |
| 588 | { |
| 589 | switch(string[0] | 0x20) { |
| 590 | case 0| onechar('b', 0, 8): |
| 591 | switch(*((triehash_uu32*) &string[1]) | 0x20202020) { |
| 592 | case 0| onechar('u', 0, 32)| onechar('i', 8, 32)| onechar('l', 16, 32)| onechar('t', 24, 32): |
| 593 | switch(string[5]) { |
| 594 | case 0| onechar('-', 0, 8): |
| 595 | switch(*((triehash_uu32*) &string[6]) | 0x20202020) { |
| 596 | case 0| onechar('u', 0, 32)| onechar('s', 8, 32)| onechar('i', 16, 32)| onechar('n', 24, 32): |
| 597 | switch(string[10] | 0x20) { |
| 598 | case 0| onechar('g', 0, 8): |
| 599 | return pkgTagSection::Key::Built_Using; |
| 600 | } |
| 601 | } |
| 602 | } |
| 603 | } |
| 604 | break; |
| 605 | case 0| onechar('d', 0, 8): |
| 606 | switch(*((triehash_uu64*) &string[1]) | 0x2020202020202020) { |
| 607 | case 0| onechar('e', 0, 64)| onechar('s', 8, 64)| onechar('c', 16, 64)| onechar('r', 24, 64)| onechar('i', 32, 64)| onechar('p', 40, 64)| onechar('t', 48, 64)| onechar('i', 56, 64): |
| 608 | switch(string[9] | 0x20) { |
| 609 | case 0| onechar('o', 0, 8): |
| 610 | switch(string[10] | 0x20) { |
| 611 | case 0| onechar('n', 0, 8): |
| 612 | return pkgTagSection::Key::Description; |
| 613 | } |
| 614 | } |
| 615 | } |
| 616 | break; |
| 617 | case 0| onechar('p', 0, 8): |
| 618 | switch(string[1] | 0x20) { |
| 619 | case 0| onechar('r', 0, 8): |
| 620 | switch(string[2] | 0x20) { |
| 621 | case 0| onechar('e', 0, 8): |
| 622 | switch(string[3]) { |
| 623 | case 0| onechar('-', 0, 8): |
| 624 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 625 | case 0| onechar('d', 0, 32)| onechar('e', 8, 32)| onechar('p', 16, 32)| onechar('e', 24, 32): |
| 626 | switch(string[8] | 0x20) { |
| 627 | case 0| onechar('n', 0, 8): |
| 628 | switch(string[9] | 0x20) { |
| 629 | case 0| onechar('d', 0, 8): |
| 630 | switch(string[10] | 0x20) { |
| 631 | case 0| onechar('s', 0, 8): |
| 632 | return pkgTagSection::Key::Pre_Depends; |
| 633 | } |
| 634 | } |
| 635 | } |
| 636 | } |
| 637 | } |
| 638 | } |
| 639 | } |
| 640 | break; |
| 641 | case 0| onechar('r', 0, 8): |
| 642 | switch(*((triehash_uu64*) &string[1]) | 0x2020202020202020) { |
| 643 | case 0| onechar('e', 0, 64)| onechar('c', 8, 64)| onechar('o', 16, 64)| onechar('m', 24, 64)| onechar('m', 32, 64)| onechar('e', 40, 64)| onechar('n', 48, 64)| onechar('d', 56, 64): |
| 644 | switch(string[9] | 0x20) { |
| 645 | case 0| onechar('e', 0, 8): |
| 646 | switch(string[10] | 0x20) { |
| 647 | case 0| onechar('d', 0, 8): |
| 648 | return pkgTagSection::Key::Recommended; |
| 649 | } |
| 650 | } |
| 651 | } |
| 652 | break; |
| 653 | case 0| onechar('v', 0, 8): |
| 654 | switch(string[1] | 0x20) { |
| 655 | case 0| onechar('c', 0, 8): |
| 656 | switch(string[2] | 0x20) { |
| 657 | case 0| onechar('s', 0, 8): |
| 658 | switch(string[3]) { |
| 659 | case 0| onechar('-', 0, 8): |
| 660 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 661 | case 0| onechar('b', 0, 32)| onechar('r', 8, 32)| onechar('o', 16, 32)| onechar('w', 24, 32): |
| 662 | switch(string[8] | 0x20) { |
| 663 | case 0| onechar('s', 0, 8): |
| 664 | switch(string[9] | 0x20) { |
| 665 | case 0| onechar('e', 0, 8): |
| 666 | switch(string[10] | 0x20) { |
| 667 | case 0| onechar('r', 0, 8): |
| 668 | return pkgTagSection::Key::Vcs_Browser; |
| 669 | } |
| 670 | } |
| 671 | } |
| 672 | } |
| 673 | } |
| 674 | } |
| 675 | } |
| 676 | } |
| 677 | return pkgTagSection::Key::Unknown; |
| 678 | } |
| 679 | static enum pkgTagSection::Key pkgTagHash12(const char *string) |
| 680 | { |
| 681 | switch(*((triehash_uu32*) &string[0]) | 0x20202020) { |
| 682 | case 0| onechar('a', 0, 32)| onechar('r', 8, 32)| onechar('c', 16, 32)| onechar('h', 24, 32): |
| 683 | switch(*((triehash_uu64*) &string[4]) | 0x2020202020202020) { |
| 684 | case 0| onechar('i', 0, 64)| onechar('t', 8, 64)| onechar('e', 16, 64)| onechar('c', 24, 64)| onechar('t', 32, 64)| onechar('u', 40, 64)| onechar('r', 48, 64)| onechar('e', 56, 64): |
| 685 | return pkgTagSection::Key::Architecture; |
| 686 | } |
| 687 | break; |
| 688 | case 0| onechar('p', 0, 32)| onechar('a', 8, 32)| onechar('c', 16, 32)| onechar('k', 24, 32): |
| 689 | switch(string[4] | 0x20) { |
| 690 | case 0| onechar('a', 0, 8): |
| 691 | switch(string[5] | 0x20) { |
| 692 | case 0| onechar('g', 0, 8): |
| 693 | switch(string[6] | 0x20) { |
| 694 | case 0| onechar('e', 0, 8): |
| 695 | switch(string[7]) { |
| 696 | case 0| onechar('-', 0, 8): |
| 697 | switch(*((triehash_uu32*) &string[8]) | 0x20202020) { |
| 698 | case 0| onechar('l', 0, 32)| onechar('i', 8, 32)| onechar('s', 16, 32)| onechar('t', 24, 32): |
| 699 | return pkgTagSection::Key::Package_List; |
| 700 | break; |
| 701 | case 0| onechar('t', 0, 32)| onechar('y', 8, 32)| onechar('p', 16, 32)| onechar('e', 24, 32): |
| 702 | return pkgTagSection::Key::Package_Type; |
| 703 | } |
| 704 | } |
| 705 | } |
| 706 | } |
| 707 | } |
| 708 | } |
| 709 | return pkgTagSection::Key::Unknown; |
| 710 | } |
| 711 | static enum pkgTagSection::Key pkgTagHash13(const char *string) |
| 712 | { |
| 713 | switch(*((triehash_uu32*) &string[0]) | 0x20202020) { |
| 714 | case 0| onechar('b', 0, 32)| onechar('u', 8, 32)| onechar('i', 16, 32)| onechar('l', 24, 32): |
| 715 | switch(string[4] | 0x20) { |
| 716 | case 0| onechar('d', 0, 8): |
| 717 | switch(string[5]) { |
| 718 | case 0| onechar('-', 0, 8): |
| 719 | switch(*((triehash_uu32*) &string[6]) | 0x20202020) { |
| 720 | case 0| onechar('d', 0, 32)| onechar('e', 8, 32)| onechar('p', 16, 32)| onechar('e', 24, 32): |
| 721 | switch(string[10] | 0x20) { |
| 722 | case 0| onechar('n', 0, 8): |
| 723 | switch(string[11] | 0x20) { |
| 724 | case 0| onechar('d', 0, 8): |
| 725 | switch(string[12] | 0x20) { |
| 726 | case 0| onechar('s', 0, 8): |
| 727 | return pkgTagSection::Key::Build_Depends; |
| 728 | } |
| 729 | } |
| 730 | } |
| 731 | } |
| 732 | } |
| 733 | } |
| 734 | break; |
| 735 | case 0| onechar('c', 0, 32)| onechar('h', 8, 32)| onechar('e', 16, 32)| onechar('c', 24, 32): |
| 736 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 737 | case 0| onechar('k', 0, 32)| onechar('s', 8, 32)| onechar('u', 16, 32)| onechar('m', 24, 32): |
| 738 | switch(string[8] | 0x20) { |
| 739 | case 0| onechar('s', 0, 8): |
| 740 | switch(string[9]) { |
| 741 | case 0| onechar('-', 0, 8): |
| 742 | switch(string[10] | 0x20) { |
| 743 | case 0| onechar('m', 0, 8): |
| 744 | switch(string[11] | 0x20) { |
| 745 | case 0| onechar('d', 0, 8): |
| 746 | switch(string[12]) { |
| 747 | case 0| onechar('5', 0, 8): |
| 748 | return pkgTagSection::Key::Checksums_Md5; |
| 749 | } |
| 750 | } |
| 751 | } |
| 752 | } |
| 753 | } |
| 754 | } |
| 755 | } |
| 756 | return pkgTagSection::Key::Unknown; |
| 757 | } |
| 758 | static enum pkgTagSection::Key pkgTagHash14(const char *string) |
| 759 | { |
| 760 | switch(*((triehash_uu32*) &string[0]) | 0x20202020) { |
| 761 | case 0| onechar('c', 0, 32)| onechar('h', 8, 32)| onechar('e', 16, 32)| onechar('c', 24, 32): |
| 762 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 763 | case 0| onechar('k', 0, 32)| onechar('s', 8, 32)| onechar('u', 16, 32)| onechar('m', 24, 32): |
| 764 | switch(string[8] | 0x20) { |
| 765 | case 0| onechar('s', 0, 8): |
| 766 | switch(string[9]) { |
| 767 | case 0| onechar('-', 0, 8): |
| 768 | switch(string[10] | 0x20) { |
| 769 | case 0| onechar('s', 0, 8): |
| 770 | switch(string[11] | 0x20) { |
| 771 | case 0| onechar('h', 0, 8): |
| 772 | switch(string[12] | 0x20) { |
| 773 | case 0| onechar('a', 0, 8): |
| 774 | switch(string[13]) { |
| 775 | case 0| onechar('1', 0, 8): |
| 776 | return pkgTagSection::Key::Checksums_Sha1; |
| 777 | } |
| 778 | } |
| 779 | } |
| 780 | } |
| 781 | } |
| 782 | } |
| 783 | } |
| 784 | break; |
| 785 | case 0| onechar('c', 0, 32)| onechar('o', 8, 32)| onechar('n', 16, 32)| onechar('f', 24, 32): |
| 786 | switch(string[4] | 0x20) { |
| 787 | case 0| onechar('i', 0, 8): |
| 788 | switch(string[5] | 0x20) { |
| 789 | case 0| onechar('g', 0, 8): |
| 790 | switch(string[6]) { |
| 791 | case 0| onechar('-', 0, 8): |
| 792 | switch(*((triehash_uu32*) &string[7]) | 0x20202020) { |
| 793 | case 0| onechar('v', 0, 32)| onechar('e', 8, 32)| onechar('r', 16, 32)| onechar('s', 24, 32): |
| 794 | switch(string[11] | 0x20) { |
| 795 | case 0| onechar('i', 0, 8): |
| 796 | switch(string[12] | 0x20) { |
| 797 | case 0| onechar('o', 0, 8): |
| 798 | switch(string[13] | 0x20) { |
| 799 | case 0| onechar('n', 0, 8): |
| 800 | return pkgTagSection::Key::Config_Version; |
| 801 | } |
| 802 | } |
| 803 | } |
| 804 | } |
| 805 | } |
| 806 | } |
| 807 | } |
| 808 | break; |
| 809 | case 0| onechar('i', 0, 32)| onechar('n', 8, 32)| onechar('s', 16, 32)| onechar('t', 24, 32): |
| 810 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 811 | case 0| onechar('a', 0, 32)| onechar('l', 8, 32)| onechar('l', 16, 32)| onechar('e', 24, 32): |
| 812 | switch(string[8] | 0x20) { |
| 813 | case 0| onechar('d', 0, 8): |
| 814 | switch(string[9]) { |
| 815 | case 0| onechar('-', 0, 8): |
| 816 | switch(*((triehash_uu32*) &string[10]) | 0x20202020) { |
| 817 | case 0| onechar('s', 0, 32)| onechar('i', 8, 32)| onechar('z', 16, 32)| onechar('e', 24, 32): |
| 818 | return pkgTagSection::Key::Installed_Size; |
| 819 | } |
| 820 | } |
| 821 | } |
| 822 | } |
| 823 | break; |
| 824 | case 0| onechar('k', 0, 32)| onechar('e', 8, 32)| onechar('r', 16, 32)| onechar('n', 24, 32): |
| 825 | switch(string[4] | 0x20) { |
| 826 | case 0| onechar('e', 0, 8): |
| 827 | switch(string[5] | 0x20) { |
| 828 | case 0| onechar('l', 0, 8): |
| 829 | switch(string[6]) { |
| 830 | case 0| onechar('-', 0, 8): |
| 831 | switch(*((triehash_uu32*) &string[7]) | 0x20202020) { |
| 832 | case 0| onechar('v', 0, 32)| onechar('e', 8, 32)| onechar('r', 16, 32)| onechar('s', 24, 32): |
| 833 | switch(string[11] | 0x20) { |
| 834 | case 0| onechar('i', 0, 8): |
| 835 | switch(string[12] | 0x20) { |
| 836 | case 0| onechar('o', 0, 8): |
| 837 | switch(string[13] | 0x20) { |
| 838 | case 0| onechar('n', 0, 8): |
| 839 | return pkgTagSection::Key::Kernel_Version; |
| 840 | } |
| 841 | } |
| 842 | } |
| 843 | } |
| 844 | } |
| 845 | } |
| 846 | } |
| 847 | break; |
| 848 | case 0| onechar('m', 0, 32)| onechar('s', 8, 32)| onechar('d', 16, 32)| onechar('o', 24, 32): |
| 849 | switch(string[4] | 0x20) { |
| 850 | case 0| onechar('s', 0, 8): |
| 851 | switch(string[5]) { |
| 852 | case 0| onechar('-', 0, 8): |
| 853 | switch(*((triehash_uu64*) &string[6]) | 0x2020202020202020) { |
| 854 | case 0| onechar('f', 0, 64)| onechar('i', 8, 64)| onechar('l', 16, 64)| onechar('e', 24, 64)| onechar('n', 32, 64)| onechar('a', 40, 64)| onechar('m', 48, 64)| onechar('e', 56, 64): |
| 855 | return pkgTagSection::Key::MSDOS_Filename; |
| 856 | } |
| 857 | } |
| 858 | } |
| 859 | } |
| 860 | return pkgTagSection::Key::Unknown; |
| 861 | } |
| 862 | static enum pkgTagSection::Key pkgTagHash15(const char *string) |
| 863 | { |
| 864 | switch(*((triehash_uu32*) &string[0]) | 0x20202020) { |
| 865 | case 0| onechar('b', 0, 32)| onechar('u', 8, 32)| onechar('i', 16, 32)| onechar('l', 24, 32): |
| 866 | switch(string[4] | 0x20) { |
| 867 | case 0| onechar('d', 0, 8): |
| 868 | switch(string[5]) { |
| 869 | case 0| onechar('-', 0, 8): |
| 870 | switch(*((triehash_uu64*) &string[6]) | 0x2020202020202020) { |
| 871 | case 0| onechar('c', 0, 64)| onechar('o', 8, 64)| onechar('n', 16, 64)| onechar('f', 24, 64)| onechar('l', 32, 64)| onechar('i', 40, 64)| onechar('c', 48, 64)| onechar('t', 56, 64): |
| 872 | switch(string[14] | 0x20) { |
| 873 | case 0| onechar('s', 0, 8): |
| 874 | return pkgTagSection::Key::Build_Conflicts; |
| 875 | } |
| 876 | } |
| 877 | } |
| 878 | } |
| 879 | break; |
| 880 | case 0| onechar('d', 0, 32)| onechar('e', 8, 32)| onechar('s', 16, 32)| onechar('c', 24, 32): |
| 881 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 882 | case 0| onechar('r', 0, 32)| onechar('i', 8, 32)| onechar('p', 16, 32)| onechar('t', 24, 32): |
| 883 | switch(string[8] | 0x20) { |
| 884 | case 0| onechar('i', 0, 8): |
| 885 | switch(string[9] | 0x20) { |
| 886 | case 0| onechar('o', 0, 8): |
| 887 | switch(string[10] | 0x20) { |
| 888 | case 0| onechar('n', 0, 8): |
| 889 | switch(string[11]) { |
| 890 | case 0| onechar('-', 0, 8): |
| 891 | switch(string[12] | 0x20) { |
| 892 | case 0| onechar('m', 0, 8): |
| 893 | switch(string[13] | 0x20) { |
| 894 | case 0| onechar('d', 0, 8): |
| 895 | switch(string[14]) { |
| 896 | case 0| onechar('5', 0, 8): |
| 897 | return pkgTagSection::Key::Description_md5; |
| 898 | } |
| 899 | } |
| 900 | } |
| 901 | } |
| 902 | } |
| 903 | } |
| 904 | } |
| 905 | } |
| 906 | break; |
| 907 | case 0| onechar('s', 0, 32)| onechar('u', 8, 32)| onechar('b', 16, 32)| onechar('a', 24, 32): |
| 908 | switch(*((triehash_uu64*) &string[4]) | 0x2020202020202020) { |
| 909 | case 0| onechar('r', 0, 64)| onechar('c', 8, 64)| onechar('h', 16, 64)| onechar('i', 24, 64)| onechar('t', 32, 64)| onechar('e', 40, 64)| onechar('c', 48, 64)| onechar('t', 56, 64): |
| 910 | switch(string[12] | 0x20) { |
| 911 | case 0| onechar('u', 0, 8): |
| 912 | switch(string[13] | 0x20) { |
| 913 | case 0| onechar('r', 0, 8): |
| 914 | switch(string[14] | 0x20) { |
| 915 | case 0| onechar('e', 0, 8): |
| 916 | return pkgTagSection::Key::Subarchitecture; |
| 917 | } |
| 918 | } |
| 919 | } |
| 920 | } |
| 921 | } |
| 922 | return pkgTagSection::Key::Unknown; |
| 923 | } |
| 924 | static enum pkgTagSection::Key pkgTagHash16(const char *string) |
| 925 | { |
| 926 | switch(*((triehash_uu32*) &string[0]) | 0x20202020) { |
| 927 | case 0| onechar('c', 0, 32)| onechar('h', 8, 32)| onechar('e', 16, 32)| onechar('c', 24, 32): |
| 928 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 929 | case 0| onechar('k', 0, 32)| onechar('s', 8, 32)| onechar('u', 16, 32)| onechar('m', 24, 32): |
| 930 | switch(string[8] | 0x20) { |
| 931 | case 0| onechar('s', 0, 8): |
| 932 | switch(string[9]) { |
| 933 | case 0| onechar('-', 0, 8): |
| 934 | switch(string[10] | 0x20) { |
| 935 | case 0| onechar('s', 0, 8): |
| 936 | switch(string[11] | 0x20) { |
| 937 | case 0| onechar('h', 0, 8): |
| 938 | switch(string[12] | 0x20) { |
| 939 | case 0| onechar('a', 0, 8): |
| 940 | switch(string[13]) { |
| 941 | case 0| onechar('2', 0, 8): |
| 942 | switch(string[14]) { |
| 943 | case 0| onechar('5', 0, 8): |
| 944 | switch(string[15]) { |
| 945 | case 0| onechar('6', 0, 8): |
| 946 | return pkgTagSection::Key::Checksums_Sha256; |
| 947 | } |
| 948 | } |
| 949 | break; |
| 950 | case 0| onechar('5', 0, 8): |
| 951 | switch(string[14]) { |
| 952 | case 0| onechar('1', 0, 8): |
| 953 | switch(string[15]) { |
| 954 | case 0| onechar('2', 0, 8): |
| 955 | return pkgTagSection::Key::Checksums_Sha512; |
| 956 | } |
| 957 | } |
| 958 | } |
| 959 | } |
| 960 | } |
| 961 | } |
| 962 | } |
| 963 | } |
| 964 | } |
| 965 | break; |
| 966 | case 0| onechar('p', 0, 32)| onechar('a', 8, 32)| onechar('c', 16, 32)| onechar('k', 24, 32): |
| 967 | switch(string[4] | 0x20) { |
| 968 | case 0| onechar('a', 0, 8): |
| 969 | switch(string[5] | 0x20) { |
| 970 | case 0| onechar('g', 0, 8): |
| 971 | switch(string[6] | 0x20) { |
| 972 | case 0| onechar('e', 0, 8): |
| 973 | switch(string[7]) { |
| 974 | case 0| onechar('-', 0, 8): |
| 975 | switch(*((triehash_uu64*) &string[8]) | 0x2020202020202020) { |
| 976 | case 0| onechar('r', 0, 64)| onechar('e', 8, 64)| onechar('v', 16, 64)| onechar('i', 24, 64)| onechar('s', 32, 64)| onechar('i', 40, 64)| onechar('o', 48, 64)| onechar('n', 56, 64): |
| 977 | return pkgTagSection::Key::Package_Revision; |
| 978 | } |
| 979 | break; |
| 980 | case 0| onechar('_', 0, 8): |
| 981 | switch(*((triehash_uu64*) &string[8]) | 0x2020202020202020) { |
| 982 | case 0| onechar('r', 0, 64)| onechar('e', 8, 64)| onechar('v', 16, 64)| onechar('i', 24, 64)| onechar('s', 32, 64)| onechar('i', 40, 64)| onechar('o', 48, 64)| onechar('n', 56, 64): |
| 983 | return pkgTagSection::Key::Package__Revision; |
| 984 | } |
| 985 | } |
| 986 | } |
| 987 | } |
| 988 | } |
| 989 | break; |
| 990 | case 0| onechar('t', 0, 32)| onechar('r', 8, 32)| onechar('i', 16, 32)| onechar('g', 24, 32): |
| 991 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 992 | case 0| onechar('g', 0, 32)| onechar('e', 8, 32)| onechar('r', 16, 32)| onechar('s', 24, 32): |
| 993 | switch(string[8]) { |
| 994 | case 0| onechar('-', 0, 8): |
| 995 | switch(*((triehash_uu32*) &string[9]) | 0x20202020) { |
| 996 | case 0| onechar('a', 0, 32)| onechar('w', 8, 32)| onechar('a', 16, 32)| onechar('i', 24, 32): |
| 997 | switch(string[13] | 0x20) { |
| 998 | case 0| onechar('t', 0, 8): |
| 999 | switch(string[14] | 0x20) { |
| 1000 | case 0| onechar('e', 0, 8): |
| 1001 | switch(string[15] | 0x20) { |
| 1002 | case 0| onechar('d', 0, 8): |
| 1003 | return pkgTagSection::Key::Triggers_Awaited; |
| 1004 | } |
| 1005 | } |
| 1006 | } |
| 1007 | break; |
| 1008 | case 0| onechar('p', 0, 32)| onechar('e', 8, 32)| onechar('n', 16, 32)| onechar('d', 24, 32): |
| 1009 | switch(string[13] | 0x20) { |
| 1010 | case 0| onechar('i', 0, 8): |
| 1011 | switch(string[14] | 0x20) { |
| 1012 | case 0| onechar('n', 0, 8): |
| 1013 | switch(string[15] | 0x20) { |
| 1014 | case 0| onechar('g', 0, 8): |
| 1015 | return pkgTagSection::Key::Triggers_Pending; |
| 1016 | } |
| 1017 | } |
| 1018 | } |
| 1019 | } |
| 1020 | } |
| 1021 | } |
| 1022 | } |
| 1023 | return pkgTagSection::Key::Unknown; |
| 1024 | } |
| 1025 | static enum pkgTagSection::Key pkgTagHash17(const char *string) |
| 1026 | { |
| 1027 | switch(string[0] | 0x20) { |
| 1028 | case 0| onechar('d', 0, 8): |
| 1029 | switch(string[1] | 0x20) { |
| 1030 | case 0| onechar('m', 0, 8): |
| 1031 | switch(string[2]) { |
| 1032 | case 0| onechar('-', 0, 8): |
| 1033 | switch(*((triehash_uu32*) &string[3]) | 0x20202020) { |
| 1034 | case 0| onechar('u', 0, 32)| onechar('p', 8, 32)| onechar('l', 16, 32)| onechar('o', 24, 32): |
| 1035 | switch(string[7] | 0x20) { |
| 1036 | case 0| onechar('a', 0, 8): |
| 1037 | switch(string[8] | 0x20) { |
| 1038 | case 0| onechar('d', 0, 8): |
| 1039 | switch(string[9]) { |
| 1040 | case 0| onechar('-', 0, 8): |
| 1041 | switch(*((triehash_uu32*) &string[10]) | 0x20202020) { |
| 1042 | case 0| onechar('a', 0, 32)| onechar('l', 8, 32)| onechar('l', 16, 32)| onechar('o', 24, 32): |
| 1043 | switch(string[14] | 0x20) { |
| 1044 | case 0| onechar('w', 0, 8): |
| 1045 | switch(string[15] | 0x20) { |
| 1046 | case 0| onechar('e', 0, 8): |
| 1047 | switch(string[16] | 0x20) { |
| 1048 | case 0| onechar('d', 0, 8): |
| 1049 | return pkgTagSection::Key::Dm_Upload_Allowed; |
| 1050 | } |
| 1051 | } |
| 1052 | } |
| 1053 | } |
| 1054 | } |
| 1055 | } |
| 1056 | } |
| 1057 | } |
| 1058 | } |
| 1059 | } |
| 1060 | break; |
| 1061 | case 0| onechar('s', 0, 8): |
| 1062 | switch(*((triehash_uu64*) &string[1]) | 0x2020202020202020) { |
| 1063 | case 0| onechar('t', 0, 64)| onechar('a', 8, 64)| onechar('n', 16, 64)| onechar('d', 24, 64)| onechar('a', 32, 64)| onechar('r', 40, 64)| onechar('d', 48, 64)| onechar('s', 56, 64): |
| 1064 | switch(string[9]) { |
| 1065 | case 0| onechar('-', 0, 8): |
| 1066 | switch(*((triehash_uu32*) &string[10]) | 0x20202020) { |
| 1067 | case 0| onechar('v', 0, 32)| onechar('e', 8, 32)| onechar('r', 16, 32)| onechar('s', 24, 32): |
| 1068 | switch(string[14] | 0x20) { |
| 1069 | case 0| onechar('i', 0, 8): |
| 1070 | switch(string[15] | 0x20) { |
| 1071 | case 0| onechar('o', 0, 8): |
| 1072 | switch(string[16] | 0x20) { |
| 1073 | case 0| onechar('n', 0, 8): |
| 1074 | return pkgTagSection::Key::Standards_Version; |
| 1075 | } |
| 1076 | } |
| 1077 | } |
| 1078 | } |
| 1079 | } |
| 1080 | } |
| 1081 | } |
| 1082 | return pkgTagSection::Key::Unknown; |
| 1083 | } |
| 1084 | static enum pkgTagSection::Key pkgTagHash18(const char *string) |
| 1085 | { |
| 1086 | switch(*((triehash_uu32*) &string[0]) | 0x20202020) { |
| 1087 | case 0| onechar('b', 0, 32)| onechar('u', 8, 32)| onechar('i', 16, 32)| onechar('l', 24, 32): |
| 1088 | switch(string[4] | 0x20) { |
| 1089 | case 0| onechar('d', 0, 8): |
| 1090 | switch(string[5]) { |
| 1091 | case 0| onechar('-', 0, 8): |
| 1092 | switch(*((triehash_uu32*) &string[6]) | 0x20202020) { |
| 1093 | case 0| onechar('d', 0, 32)| onechar('e', 8, 32)| onechar('p', 16, 32)| onechar('e', 24, 32): |
| 1094 | switch(string[10] | 0x20) { |
| 1095 | case 0| onechar('n', 0, 8): |
| 1096 | switch(string[11] | 0x20) { |
| 1097 | case 0| onechar('d', 0, 8): |
| 1098 | switch(string[12] | 0x20) { |
| 1099 | case 0| onechar('s', 0, 8): |
| 1100 | switch(string[13]) { |
| 1101 | case 0| onechar('-', 0, 8): |
| 1102 | switch(*((triehash_uu32*) &string[14]) | 0x20202020) { |
| 1103 | case 0| onechar('a', 0, 32)| onechar('r', 8, 32)| onechar('c', 16, 32)| onechar('h', 24, 32): |
| 1104 | return pkgTagSection::Key::Build_Depends_Arch; |
| 1105 | } |
| 1106 | } |
| 1107 | } |
| 1108 | } |
| 1109 | } |
| 1110 | } |
| 1111 | } |
| 1112 | break; |
| 1113 | case 0| onechar('t', 0, 8): |
| 1114 | switch(string[5]) { |
| 1115 | case 0| onechar('-', 0, 8): |
| 1116 | switch(string[6] | 0x20) { |
| 1117 | case 0| onechar('f', 0, 8): |
| 1118 | switch(string[7] | 0x20) { |
| 1119 | case 0| onechar('o', 0, 8): |
| 1120 | switch(string[8] | 0x20) { |
| 1121 | case 0| onechar('r', 0, 8): |
| 1122 | switch(string[9]) { |
| 1123 | case 0| onechar('-', 0, 8): |
| 1124 | switch(*((triehash_uu64*) &string[10]) | 0x2020202020202020) { |
| 1125 | case 0| onechar('p', 0, 64)| onechar('r', 8, 64)| onechar('o', 16, 64)| onechar('f', 24, 64)| onechar('i', 32, 64)| onechar('l', 40, 64)| onechar('e', 48, 64)| onechar('s', 56, 64): |
| 1126 | return pkgTagSection::Key::Built_For_Profiles; |
| 1127 | } |
| 1128 | } |
| 1129 | } |
| 1130 | } |
| 1131 | } |
| 1132 | } |
| 1133 | } |
| 1134 | break; |
| 1135 | case 0| onechar('t', 0, 32)| onechar('e', 8, 32)| onechar('s', 16, 32)| onechar('t', 24, 32): |
| 1136 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 1137 | case 0| onechar('s', 0, 32)| onechar('u', 8, 32)| onechar('i', 16, 32)| onechar('t', 24, 32): |
| 1138 | switch(string[8] | 0x20) { |
| 1139 | case 0| onechar('e', 0, 8): |
| 1140 | switch(string[9]) { |
| 1141 | case 0| onechar('-', 0, 8): |
| 1142 | switch(*((triehash_uu64*) &string[10]) | 0x2020202020202020) { |
| 1143 | case 0| onechar('t', 0, 64)| onechar('r', 8, 64)| onechar('i', 16, 64)| onechar('g', 24, 64)| onechar('g', 32, 64)| onechar('e', 40, 64)| onechar('r', 48, 64)| onechar('s', 56, 64): |
| 1144 | return pkgTagSection::Key::Testsuite_Triggers; |
| 1145 | } |
| 1146 | } |
| 1147 | } |
| 1148 | } |
| 1149 | } |
| 1150 | return pkgTagSection::Key::Unknown; |
| 1151 | } |
| 1152 | static enum pkgTagSection::Key pkgTagHash19(const char *string) |
| 1153 | { |
| 1154 | switch(*((triehash_uu32*) &string[0]) | 0x20202020) { |
| 1155 | case 0| onechar('b', 0, 32)| onechar('u', 8, 32)| onechar('i', 16, 32)| onechar('l', 24, 32): |
| 1156 | switch(string[4] | 0x20) { |
| 1157 | case 0| onechar('d', 0, 8): |
| 1158 | switch(string[5]) { |
| 1159 | case 0| onechar('-', 0, 8): |
| 1160 | switch(*((triehash_uu32*) &string[6]) | 0x20202020) { |
| 1161 | case 0| onechar('d', 0, 32)| onechar('e', 8, 32)| onechar('p', 16, 32)| onechar('e', 24, 32): |
| 1162 | switch(string[10] | 0x20) { |
| 1163 | case 0| onechar('n', 0, 8): |
| 1164 | switch(string[11] | 0x20) { |
| 1165 | case 0| onechar('d', 0, 8): |
| 1166 | switch(string[12] | 0x20) { |
| 1167 | case 0| onechar('s', 0, 8): |
| 1168 | switch(string[13]) { |
| 1169 | case 0| onechar('-', 0, 8): |
| 1170 | switch(*((triehash_uu32*) &string[14]) | 0x20202020) { |
| 1171 | case 0| onechar('i', 0, 32)| onechar('n', 8, 32)| onechar('d', 16, 32)| onechar('e', 24, 32): |
| 1172 | switch(string[18] | 0x20) { |
| 1173 | case 0| onechar('p', 0, 8): |
| 1174 | return pkgTagSection::Key::Build_Depends_Indep; |
| 1175 | } |
| 1176 | } |
| 1177 | } |
| 1178 | } |
| 1179 | } |
| 1180 | } |
| 1181 | } |
| 1182 | } |
| 1183 | } |
| 1184 | break; |
| 1185 | case 0| onechar('i', 0, 32)| onechar('n', 8, 32)| onechar('s', 16, 32)| onechar('t', 24, 32): |
| 1186 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 1187 | case 0| onechar('a', 0, 32)| onechar('l', 8, 32)| onechar('l', 16, 32)| onechar('e', 24, 32): |
| 1188 | switch(string[8] | 0x20) { |
| 1189 | case 0| onechar('r', 0, 8): |
| 1190 | switch(string[9]) { |
| 1191 | case 0| onechar('-', 0, 8): |
| 1192 | switch(*((triehash_uu32*) &string[10]) | 0x20202020) { |
| 1193 | case 0| onechar('m', 0, 32)| onechar('e', 8, 32)| onechar('n', 16, 32)| onechar('u', 24, 32): |
| 1194 | switch(string[14]) { |
| 1195 | case 0| onechar('-', 0, 8): |
| 1196 | switch(*((triehash_uu32*) &string[15]) | 0x20202020) { |
| 1197 | case 0| onechar('i', 0, 32)| onechar('t', 8, 32)| onechar('e', 16, 32)| onechar('m', 24, 32): |
| 1198 | return pkgTagSection::Key::Installer_Menu_Item; |
| 1199 | } |
| 1200 | } |
| 1201 | } |
| 1202 | } |
| 1203 | } |
| 1204 | } |
| 1205 | break; |
| 1206 | case 0| onechar('o', 0, 32)| onechar('r', 8, 32)| onechar('i', 16, 32)| onechar('g', 24, 32): |
| 1207 | switch(*((triehash_uu32*) &string[4]) | 0x20202020) { |
| 1208 | case 0| onechar('i', 0, 32)| onechar('n', 8, 32)| onechar('a', 16, 32)| onechar('l', 24, 32): |
| 1209 | switch(string[8]) { |
| 1210 | case 0| onechar('-', 0, 8): |
| 1211 | switch(*((triehash_uu64*) &string[9]) | 0x2020202020202020) { |
| 1212 | case 0| onechar('m', 0, 64)| onechar('a', 8, 64)| onechar('i', 16, 64)| onechar('n', 24, 64)| onechar('t', 32, 64)| onechar('a', 40, 64)| onechar('i', 48, 64)| onechar('n', 56, 64): |
| 1213 | switch(string[17] | 0x20) { |
| 1214 | case 0| onechar('e', 0, 8): |
| 1215 | switch(string[18] | 0x20) { |
| 1216 | case 0| onechar('r', 0, 8): |
| 1217 | return pkgTagSection::Key::Original_Maintainer; |
| 1218 | } |
| 1219 | } |
| 1220 | } |
| 1221 | } |
| 1222 | } |
| 1223 | } |
| 1224 | return pkgTagSection::Key::Unknown; |
| 1225 | } |
| 1226 | static enum pkgTagSection::Key pkgTagHash20(const char *string) |
| 1227 | { |
| 1228 | switch(*((triehash_uu32*) &string[0]) | 0x20202020) { |
| 1229 | case 0| onechar('b', 0, 32)| onechar('u', 8, 32)| onechar('i', 16, 32)| onechar('l', 24, 32): |
| 1230 | switch(string[4] | 0x20) { |
| 1231 | case 0| onechar('d', 0, 8): |
| 1232 | switch(string[5]) { |
| 1233 | case 0| onechar('-', 0, 8): |
| 1234 | switch(*((triehash_uu64*) &string[6]) | 0x2020202020202020) { |
| 1235 | case 0| onechar('c', 0, 64)| onechar('o', 8, 64)| onechar('n', 16, 64)| onechar('f', 24, 64)| onechar('l', 32, 64)| onechar('i', 40, 64)| onechar('c', 48, 64)| onechar('t', 56, 64): |
| 1236 | switch(string[14] | 0x20) { |
| 1237 | case 0| onechar('s', 0, 8): |
| 1238 | switch(string[15]) { |
| 1239 | case 0| onechar('-', 0, 8): |
| 1240 | switch(*((triehash_uu32*) &string[16]) | 0x20202020) { |
| 1241 | case 0| onechar('a', 0, 32)| onechar('r', 8, 32)| onechar('c', 16, 32)| onechar('h', 24, 32): |
| 1242 | return pkgTagSection::Key::Build_Conflicts_Arch; |
| 1243 | } |
| 1244 | } |
| 1245 | } |
| 1246 | } |
| 1247 | } |
| 1248 | } |
| 1249 | } |
| 1250 | return pkgTagSection::Key::Unknown; |
| 1251 | } |
| 1252 | static enum pkgTagSection::Key pkgTagHash21(const char *string) |
| 1253 | { |
| 1254 | switch(*((triehash_uu32*) &string[0]) | 0x20202020) { |
| 1255 | case 0| onechar('b', 0, 32)| onechar('u', 8, 32)| onechar('i', 16, 32)| onechar('l', 24, 32): |
| 1256 | switch(string[4] | 0x20) { |
| 1257 | case 0| onechar('d', 0, 8): |
| 1258 | switch(string[5]) { |
| 1259 | case 0| onechar('-', 0, 8): |
| 1260 | switch(*((triehash_uu64*) &string[6]) | 0x2020202020202020) { |
| 1261 | case 0| onechar('c', 0, 64)| onechar('o', 8, 64)| onechar('n', 16, 64)| onechar('f', 24, 64)| onechar('l', 32, 64)| onechar('i', 40, 64)| onechar('c', 48, 64)| onechar('t', 56, 64): |
| 1262 | switch(string[14] | 0x20) { |
| 1263 | case 0| onechar('s', 0, 8): |
| 1264 | switch(string[15]) { |
| 1265 | case 0| onechar('-', 0, 8): |
| 1266 | switch(*((triehash_uu32*) &string[16]) | 0x20202020) { |
| 1267 | case 0| onechar('i', 0, 32)| onechar('n', 8, 32)| onechar('d', 16, 32)| onechar('e', 24, 32): |
| 1268 | switch(string[20] | 0x20) { |
| 1269 | case 0| onechar('p', 0, 8): |
| 1270 | return pkgTagSection::Key::Build_Conflicts_Indep; |
| 1271 | } |
| 1272 | } |
| 1273 | } |
| 1274 | } |
| 1275 | } |
| 1276 | } |
| 1277 | } |
| 1278 | } |
| 1279 | return pkgTagSection::Key::Unknown; |
| 1280 | } |
| 1281 | #else |
| 1282 | static enum pkgTagSection::Key pkgTagHash3(const char *string) |
| 1283 | { |
| 1284 | switch(string[0] | 0x20) { |
| 1285 | case 't': |
| 1286 | switch(string[1] | 0x20) { |
| 1287 | case 'a': |
| 1288 | switch(string[2] | 0x20) { |
| 1289 | case 'g': |
| 1290 | return pkgTagSection::Key::Tag; |
| 1291 | } |
| 1292 | } |
| 1293 | } |
| 1294 | return pkgTagSection::Key::Unknown; |
| 1295 | } |
| 1296 | static enum pkgTagSection::Key pkgTagHash4(const char *string) |
| 1297 | { |
| 1298 | switch(string[0] | 0x20) { |
| 1299 | case 'b': |
| 1300 | switch(string[1] | 0x20) { |
| 1301 | case 'u': |
| 1302 | switch(string[2] | 0x20) { |
| 1303 | case 'g': |
| 1304 | switch(string[3] | 0x20) { |
| 1305 | case 's': |
| 1306 | return pkgTagSection::Key::Bugs; |
| 1307 | } |
| 1308 | } |
| 1309 | } |
| 1310 | break; |
| 1311 | case 's': |
| 1312 | switch(string[1] | 0x20) { |
| 1313 | case 'h': |
| 1314 | switch(string[2] | 0x20) { |
| 1315 | case 'a': |
| 1316 | switch(string[3]) { |
| 1317 | case '1': |
| 1318 | return pkgTagSection::Key::SHA1; |
| 1319 | } |
| 1320 | } |
| 1321 | break; |
| 1322 | case 'i': |
| 1323 | switch(string[2] | 0x20) { |
| 1324 | case 'z': |
| 1325 | switch(string[3] | 0x20) { |
| 1326 | case 'e': |
| 1327 | return pkgTagSection::Key::Size; |
| 1328 | } |
| 1329 | } |
| 1330 | } |
| 1331 | break; |
| 1332 | case 't': |
| 1333 | switch(string[1] | 0x20) { |
| 1334 | case 'a': |
| 1335 | switch(string[2] | 0x20) { |
| 1336 | case 's': |
| 1337 | switch(string[3] | 0x20) { |
| 1338 | case 'k': |
| 1339 | return pkgTagSection::Key::Task; |
| 1340 | } |
| 1341 | } |
| 1342 | } |
| 1343 | } |
| 1344 | return pkgTagSection::Key::Unknown; |
| 1345 | } |
| 1346 | static enum pkgTagSection::Key pkgTagHash5(const char *string) |
| 1347 | { |
| 1348 | switch(string[0] | 0x20) { |
| 1349 | case 'c': |
| 1350 | switch(string[1] | 0x20) { |
| 1351 | case 'l': |
| 1352 | switch(string[2] | 0x20) { |
| 1353 | case 'a': |
| 1354 | switch(string[3] | 0x20) { |
| 1355 | case 's': |
| 1356 | switch(string[4] | 0x20) { |
| 1357 | case 's': |
| 1358 | return pkgTagSection::Key::Class; |
| 1359 | } |
| 1360 | } |
| 1361 | } |
| 1362 | } |
| 1363 | break; |
| 1364 | case 'f': |
| 1365 | switch(string[1] | 0x20) { |
| 1366 | case 'i': |
| 1367 | switch(string[2] | 0x20) { |
| 1368 | case 'l': |
| 1369 | switch(string[3] | 0x20) { |
| 1370 | case 'e': |
| 1371 | switch(string[4] | 0x20) { |
| 1372 | case 's': |
| 1373 | return pkgTagSection::Key::Files; |
| 1374 | } |
| 1375 | } |
| 1376 | } |
| 1377 | } |
| 1378 | } |
| 1379 | return pkgTagSection::Key::Unknown; |
| 1380 | } |
| 1381 | static enum pkgTagSection::Key pkgTagHash6(const char *string) |
| 1382 | { |
| 1383 | switch(string[0] | 0x20) { |
| 1384 | case 'b': |
| 1385 | switch(string[1] | 0x20) { |
| 1386 | case 'i': |
| 1387 | switch(string[2] | 0x20) { |
| 1388 | case 'n': |
| 1389 | switch(string[3] | 0x20) { |
| 1390 | case 'a': |
| 1391 | switch(string[4] | 0x20) { |
| 1392 | case 'r': |
| 1393 | switch(string[5] | 0x20) { |
| 1394 | case 'y': |
| 1395 | return pkgTagSection::Key::Binary; |
| 1396 | } |
| 1397 | } |
| 1398 | } |
| 1399 | } |
| 1400 | break; |
| 1401 | case 'r': |
| 1402 | switch(string[2] | 0x20) { |
| 1403 | case 'e': |
| 1404 | switch(string[3] | 0x20) { |
| 1405 | case 'a': |
| 1406 | switch(string[4] | 0x20) { |
| 1407 | case 'k': |
| 1408 | switch(string[5] | 0x20) { |
| 1409 | case 's': |
| 1410 | return pkgTagSection::Key::Breaks; |
| 1411 | } |
| 1412 | } |
| 1413 | } |
| 1414 | } |
| 1415 | } |
| 1416 | break; |
| 1417 | case 'f': |
| 1418 | switch(string[1] | 0x20) { |
| 1419 | case 'o': |
| 1420 | switch(string[2] | 0x20) { |
| 1421 | case 'r': |
| 1422 | switch(string[3] | 0x20) { |
| 1423 | case 'm': |
| 1424 | switch(string[4] | 0x20) { |
| 1425 | case 'a': |
| 1426 | switch(string[5] | 0x20) { |
| 1427 | case 't': |
| 1428 | return pkgTagSection::Key::Format; |
| 1429 | } |
| 1430 | } |
| 1431 | } |
| 1432 | } |
| 1433 | } |
| 1434 | break; |
| 1435 | case 'm': |
| 1436 | switch(string[1] | 0x20) { |
| 1437 | case 'd': |
| 1438 | switch(string[2]) { |
| 1439 | case '5': |
| 1440 | switch(string[3] | 0x20) { |
| 1441 | case 's': |
| 1442 | switch(string[4] | 0x20) { |
| 1443 | case 'u': |
| 1444 | switch(string[5] | 0x20) { |
| 1445 | case 'm': |
| 1446 | return pkgTagSection::Key::MD5sum; |
| 1447 | } |
| 1448 | } |
| 1449 | } |
| 1450 | } |
| 1451 | } |
| 1452 | break; |
| 1453 | case 'o': |
| 1454 | switch(string[1] | 0x20) { |
| 1455 | case 'r': |
| 1456 | switch(string[2] | 0x20) { |
| 1457 | case 'i': |
| 1458 | switch(string[3] | 0x20) { |
| 1459 | case 'g': |
| 1460 | switch(string[4] | 0x20) { |
| 1461 | case 'i': |
| 1462 | switch(string[5] | 0x20) { |
| 1463 | case 'n': |
| 1464 | return pkgTagSection::Key::Origin; |
| 1465 | } |
| 1466 | } |
| 1467 | } |
| 1468 | } |
| 1469 | } |
| 1470 | break; |
| 1471 | case 's': |
| 1472 | switch(string[1] | 0x20) { |
| 1473 | case 'h': |
| 1474 | switch(string[2] | 0x20) { |
| 1475 | case 'a': |
| 1476 | switch(string[3]) { |
| 1477 | case '2': |
| 1478 | switch(string[4]) { |
| 1479 | case '5': |
| 1480 | switch(string[5]) { |
| 1481 | case '6': |
| 1482 | return pkgTagSection::Key::SHA256; |
| 1483 | } |
| 1484 | } |
| 1485 | break; |
| 1486 | case '5': |
| 1487 | switch(string[4]) { |
| 1488 | case '1': |
| 1489 | switch(string[5]) { |
| 1490 | case '2': |
| 1491 | return pkgTagSection::Key::SHA512; |
| 1492 | } |
| 1493 | } |
| 1494 | } |
| 1495 | } |
| 1496 | break; |
| 1497 | case 'o': |
| 1498 | switch(string[2] | 0x20) { |
| 1499 | case 'u': |
| 1500 | switch(string[3] | 0x20) { |
| 1501 | case 'r': |
| 1502 | switch(string[4] | 0x20) { |
| 1503 | case 'c': |
| 1504 | switch(string[5] | 0x20) { |
| 1505 | case 'e': |
| 1506 | return pkgTagSection::Key::Source; |
| 1507 | } |
| 1508 | } |
| 1509 | } |
| 1510 | } |
| 1511 | break; |
| 1512 | case 't': |
| 1513 | switch(string[2] | 0x20) { |
| 1514 | case 'a': |
| 1515 | switch(string[3] | 0x20) { |
| 1516 | case 't': |
| 1517 | switch(string[4] | 0x20) { |
| 1518 | case 'u': |
| 1519 | switch(string[5] | 0x20) { |
| 1520 | case 's': |
| 1521 | return pkgTagSection::Key::Status; |
| 1522 | } |
| 1523 | } |
| 1524 | } |
| 1525 | } |
| 1526 | } |
| 1527 | break; |
| 1528 | case 'v': |
| 1529 | switch(string[1] | 0x20) { |
| 1530 | case 'c': |
| 1531 | switch(string[2] | 0x20) { |
| 1532 | case 's': |
| 1533 | switch(string[3]) { |
| 1534 | case '-': |
| 1535 | switch(string[4] | 0x20) { |
| 1536 | case 'h': |
| 1537 | switch(string[5] | 0x20) { |
| 1538 | case 'g': |
| 1539 | return pkgTagSection::Key::Vcs_Hg; |
| 1540 | } |
| 1541 | } |
| 1542 | } |
| 1543 | } |
| 1544 | } |
| 1545 | } |
| 1546 | return pkgTagSection::Key::Unknown; |
| 1547 | } |
| 1548 | static enum pkgTagSection::Key pkgTagHash7(const char *string) |
| 1549 | { |
| 1550 | switch(string[0] | 0x20) { |
| 1551 | case 'd': |
| 1552 | switch(string[1] | 0x20) { |
| 1553 | case 'e': |
| 1554 | switch(string[2] | 0x20) { |
| 1555 | case 'p': |
| 1556 | switch(string[3] | 0x20) { |
| 1557 | case 'e': |
| 1558 | switch(string[4] | 0x20) { |
| 1559 | case 'n': |
| 1560 | switch(string[5] | 0x20) { |
| 1561 | case 'd': |
| 1562 | switch(string[6] | 0x20) { |
| 1563 | case 's': |
| 1564 | return pkgTagSection::Key::Depends; |
| 1565 | } |
| 1566 | } |
| 1567 | } |
| 1568 | } |
| 1569 | } |
| 1570 | } |
| 1571 | break; |
| 1572 | case 'p': |
| 1573 | switch(string[1] | 0x20) { |
| 1574 | case 'a': |
| 1575 | switch(string[2] | 0x20) { |
| 1576 | case 'c': |
| 1577 | switch(string[3] | 0x20) { |
| 1578 | case 'k': |
| 1579 | switch(string[4] | 0x20) { |
| 1580 | case 'a': |
| 1581 | switch(string[5] | 0x20) { |
| 1582 | case 'g': |
| 1583 | switch(string[6] | 0x20) { |
| 1584 | case 'e': |
| 1585 | return pkgTagSection::Key::Package; |
| 1586 | } |
| 1587 | } |
| 1588 | } |
| 1589 | } |
| 1590 | } |
| 1591 | } |
| 1592 | break; |
| 1593 | case 's': |
| 1594 | switch(string[1] | 0x20) { |
| 1595 | case 'e': |
| 1596 | switch(string[2] | 0x20) { |
| 1597 | case 'c': |
| 1598 | switch(string[3] | 0x20) { |
| 1599 | case 't': |
| 1600 | switch(string[4] | 0x20) { |
| 1601 | case 'i': |
| 1602 | switch(string[5] | 0x20) { |
| 1603 | case 'o': |
| 1604 | switch(string[6] | 0x20) { |
| 1605 | case 'n': |
| 1606 | return pkgTagSection::Key::Section; |
| 1607 | } |
| 1608 | } |
| 1609 | } |
| 1610 | } |
| 1611 | } |
| 1612 | } |
| 1613 | break; |
| 1614 | case 'v': |
| 1615 | switch(string[1] | 0x20) { |
| 1616 | case 'c': |
| 1617 | switch(string[2] | 0x20) { |
| 1618 | case 's': |
| 1619 | switch(string[3]) { |
| 1620 | case '-': |
| 1621 | switch(string[4] | 0x20) { |
| 1622 | case 'b': |
| 1623 | switch(string[5] | 0x20) { |
| 1624 | case 'z': |
| 1625 | switch(string[6] | 0x20) { |
| 1626 | case 'r': |
| 1627 | return pkgTagSection::Key::Vcs_Bzr; |
| 1628 | } |
| 1629 | } |
| 1630 | break; |
| 1631 | case 'c': |
| 1632 | switch(string[5] | 0x20) { |
| 1633 | case 'v': |
| 1634 | switch(string[6] | 0x20) { |
| 1635 | case 's': |
| 1636 | return pkgTagSection::Key::Vcs_Cvs; |
| 1637 | } |
| 1638 | } |
| 1639 | break; |
| 1640 | case 'g': |
| 1641 | switch(string[5] | 0x20) { |
| 1642 | case 'i': |
| 1643 | switch(string[6] | 0x20) { |
| 1644 | case 't': |
| 1645 | return pkgTagSection::Key::Vcs_Git; |
| 1646 | } |
| 1647 | } |
| 1648 | break; |
| 1649 | case 'm': |
| 1650 | switch(string[5] | 0x20) { |
| 1651 | case 't': |
| 1652 | switch(string[6] | 0x20) { |
| 1653 | case 'n': |
| 1654 | return pkgTagSection::Key::Vcs_Mtn; |
| 1655 | } |
| 1656 | } |
| 1657 | break; |
| 1658 | case 's': |
| 1659 | switch(string[5] | 0x20) { |
| 1660 | case 'v': |
| 1661 | switch(string[6] | 0x20) { |
| 1662 | case 'n': |
| 1663 | return pkgTagSection::Key::Vcs_Svn; |
| 1664 | } |
| 1665 | } |
| 1666 | } |
| 1667 | } |
| 1668 | } |
| 1669 | break; |
| 1670 | case 'e': |
| 1671 | switch(string[2] | 0x20) { |
| 1672 | case 'r': |
| 1673 | switch(string[3] | 0x20) { |
| 1674 | case 's': |
| 1675 | switch(string[4] | 0x20) { |
| 1676 | case 'i': |
| 1677 | switch(string[5] | 0x20) { |
| 1678 | case 'o': |
| 1679 | switch(string[6] | 0x20) { |
| 1680 | case 'n': |
| 1681 | return pkgTagSection::Key::Version; |
| 1682 | } |
| 1683 | } |
| 1684 | } |
| 1685 | } |
| 1686 | } |
| 1687 | } |
| 1688 | } |
| 1689 | return pkgTagSection::Key::Unknown; |
| 1690 | } |
| 1691 | static enum pkgTagSection::Key pkgTagHash8(const char *string) |
| 1692 | { |
| 1693 | switch(string[0] | 0x20) { |
| 1694 | case 'e': |
| 1695 | switch(string[1] | 0x20) { |
| 1696 | case 'n': |
| 1697 | switch(string[2] | 0x20) { |
| 1698 | case 'h': |
| 1699 | switch(string[3] | 0x20) { |
| 1700 | case 'a': |
| 1701 | switch(string[4] | 0x20) { |
| 1702 | case 'n': |
| 1703 | switch(string[5] | 0x20) { |
| 1704 | case 'c': |
| 1705 | switch(string[6] | 0x20) { |
| 1706 | case 'e': |
| 1707 | switch(string[7] | 0x20) { |
| 1708 | case 's': |
| 1709 | return pkgTagSection::Key::Enhances; |
| 1710 | } |
| 1711 | } |
| 1712 | } |
| 1713 | } |
| 1714 | } |
| 1715 | } |
| 1716 | } |
| 1717 | break; |
| 1718 | case 'f': |
| 1719 | switch(string[1] | 0x20) { |
| 1720 | case 'i': |
| 1721 | switch(string[2] | 0x20) { |
| 1722 | case 'l': |
| 1723 | switch(string[3] | 0x20) { |
| 1724 | case 'e': |
| 1725 | switch(string[4] | 0x20) { |
| 1726 | case 'n': |
| 1727 | switch(string[5] | 0x20) { |
| 1728 | case 'a': |
| 1729 | switch(string[6] | 0x20) { |
| 1730 | case 'm': |
| 1731 | switch(string[7] | 0x20) { |
| 1732 | case 'e': |
| 1733 | return pkgTagSection::Key::Filename; |
| 1734 | } |
| 1735 | } |
| 1736 | } |
| 1737 | } |
| 1738 | } |
| 1739 | } |
| 1740 | } |
| 1741 | break; |
| 1742 | case 'h': |
| 1743 | switch(string[1] | 0x20) { |
| 1744 | case 'o': |
| 1745 | switch(string[2] | 0x20) { |
| 1746 | case 'm': |
| 1747 | switch(string[3] | 0x20) { |
| 1748 | case 'e': |
| 1749 | switch(string[4] | 0x20) { |
| 1750 | case 'p': |
| 1751 | switch(string[5] | 0x20) { |
| 1752 | case 'a': |
| 1753 | switch(string[6] | 0x20) { |
| 1754 | case 'g': |
| 1755 | switch(string[7] | 0x20) { |
| 1756 | case 'e': |
| 1757 | return pkgTagSection::Key::Homepage; |
| 1758 | } |
| 1759 | } |
| 1760 | } |
| 1761 | } |
| 1762 | } |
| 1763 | } |
| 1764 | } |
| 1765 | break; |
| 1766 | case 'o': |
| 1767 | switch(string[1] | 0x20) { |
| 1768 | case 'p': |
| 1769 | switch(string[2] | 0x20) { |
| 1770 | case 't': |
| 1771 | switch(string[3] | 0x20) { |
| 1772 | case 'i': |
| 1773 | switch(string[4] | 0x20) { |
| 1774 | case 'o': |
| 1775 | switch(string[5] | 0x20) { |
| 1776 | case 'n': |
| 1777 | switch(string[6] | 0x20) { |
| 1778 | case 'a': |
| 1779 | switch(string[7] | 0x20) { |
| 1780 | case 'l': |
| 1781 | return pkgTagSection::Key::Optional; |
| 1782 | } |
| 1783 | } |
| 1784 | } |
| 1785 | } |
| 1786 | } |
| 1787 | } |
| 1788 | } |
| 1789 | break; |
| 1790 | case 'p': |
| 1791 | switch(string[1] | 0x20) { |
| 1792 | case 'r': |
| 1793 | switch(string[2] | 0x20) { |
| 1794 | case 'i': |
| 1795 | switch(string[3] | 0x20) { |
| 1796 | case 'o': |
| 1797 | switch(string[4] | 0x20) { |
| 1798 | case 'r': |
| 1799 | switch(string[5] | 0x20) { |
| 1800 | case 'i': |
| 1801 | switch(string[6] | 0x20) { |
| 1802 | case 't': |
| 1803 | switch(string[7] | 0x20) { |
| 1804 | case 'y': |
| 1805 | return pkgTagSection::Key::Priority; |
| 1806 | } |
| 1807 | } |
| 1808 | } |
| 1809 | } |
| 1810 | } |
| 1811 | break; |
| 1812 | case 'o': |
| 1813 | switch(string[3] | 0x20) { |
| 1814 | case 'v': |
| 1815 | switch(string[4] | 0x20) { |
| 1816 | case 'i': |
| 1817 | switch(string[5] | 0x20) { |
| 1818 | case 'd': |
| 1819 | switch(string[6] | 0x20) { |
| 1820 | case 'e': |
| 1821 | switch(string[7] | 0x20) { |
| 1822 | case 's': |
| 1823 | return pkgTagSection::Key::Provides; |
| 1824 | } |
| 1825 | } |
| 1826 | } |
| 1827 | } |
| 1828 | } |
| 1829 | } |
| 1830 | } |
| 1831 | break; |
| 1832 | case 'r': |
| 1833 | switch(string[1] | 0x20) { |
| 1834 | case 'e': |
| 1835 | switch(string[2] | 0x20) { |
| 1836 | case 'p': |
| 1837 | switch(string[3] | 0x20) { |
| 1838 | case 'l': |
| 1839 | switch(string[4] | 0x20) { |
| 1840 | case 'a': |
| 1841 | switch(string[5] | 0x20) { |
| 1842 | case 'c': |
| 1843 | switch(string[6] | 0x20) { |
| 1844 | case 'e': |
| 1845 | switch(string[7] | 0x20) { |
| 1846 | case 's': |
| 1847 | return pkgTagSection::Key::Replaces; |
| 1848 | } |
| 1849 | } |
| 1850 | } |
| 1851 | } |
| 1852 | } |
| 1853 | break; |
| 1854 | case 'v': |
| 1855 | switch(string[3] | 0x20) { |
| 1856 | case 'i': |
| 1857 | switch(string[4] | 0x20) { |
| 1858 | case 's': |
| 1859 | switch(string[5] | 0x20) { |
| 1860 | case 'i': |
| 1861 | switch(string[6] | 0x20) { |
| 1862 | case 'o': |
| 1863 | switch(string[7] | 0x20) { |
| 1864 | case 'n': |
| 1865 | return pkgTagSection::Key::Revision; |
| 1866 | } |
| 1867 | } |
| 1868 | } |
| 1869 | } |
| 1870 | } |
| 1871 | } |
| 1872 | } |
| 1873 | break; |
| 1874 | case 's': |
| 1875 | switch(string[1] | 0x20) { |
| 1876 | case 'u': |
| 1877 | switch(string[2] | 0x20) { |
| 1878 | case 'g': |
| 1879 | switch(string[3] | 0x20) { |
| 1880 | case 'g': |
| 1881 | switch(string[4] | 0x20) { |
| 1882 | case 'e': |
| 1883 | switch(string[5] | 0x20) { |
| 1884 | case 's': |
| 1885 | switch(string[6] | 0x20) { |
| 1886 | case 't': |
| 1887 | switch(string[7] | 0x20) { |
| 1888 | case 's': |
| 1889 | return pkgTagSection::Key::Suggests; |
| 1890 | } |
| 1891 | } |
| 1892 | } |
| 1893 | } |
| 1894 | } |
| 1895 | } |
| 1896 | } |
| 1897 | break; |
| 1898 | case 'v': |
| 1899 | switch(string[1] | 0x20) { |
| 1900 | case 'c': |
| 1901 | switch(string[2] | 0x20) { |
| 1902 | case 's': |
| 1903 | switch(string[3]) { |
| 1904 | case '-': |
| 1905 | switch(string[4] | 0x20) { |
| 1906 | case 'a': |
| 1907 | switch(string[5] | 0x20) { |
| 1908 | case 'r': |
| 1909 | switch(string[6] | 0x20) { |
| 1910 | case 'c': |
| 1911 | switch(string[7] | 0x20) { |
| 1912 | case 'h': |
| 1913 | return pkgTagSection::Key::Vcs_Arch; |
| 1914 | } |
| 1915 | } |
| 1916 | } |
| 1917 | } |
| 1918 | } |
| 1919 | } |
| 1920 | } |
| 1921 | } |
| 1922 | return pkgTagSection::Key::Unknown; |
| 1923 | } |
| 1924 | static enum pkgTagSection::Key pkgTagHash9(const char *string) |
| 1925 | { |
| 1926 | switch(string[0] | 0x20) { |
| 1927 | case 'c': |
| 1928 | switch(string[1] | 0x20) { |
| 1929 | case 'o': |
| 1930 | switch(string[2] | 0x20) { |
| 1931 | case 'n': |
| 1932 | switch(string[3] | 0x20) { |
| 1933 | case 'f': |
| 1934 | switch(string[4] | 0x20) { |
| 1935 | case 'f': |
| 1936 | switch(string[5] | 0x20) { |
| 1937 | case 'i': |
| 1938 | switch(string[6] | 0x20) { |
| 1939 | case 'l': |
| 1940 | switch(string[7] | 0x20) { |
| 1941 | case 'e': |
| 1942 | switch(string[8] | 0x20) { |
| 1943 | case 's': |
| 1944 | return pkgTagSection::Key::Conffiles; |
| 1945 | } |
| 1946 | } |
| 1947 | } |
| 1948 | } |
| 1949 | break; |
| 1950 | case 'l': |
| 1951 | switch(string[5] | 0x20) { |
| 1952 | case 'i': |
| 1953 | switch(string[6] | 0x20) { |
| 1954 | case 'c': |
| 1955 | switch(string[7] | 0x20) { |
| 1956 | case 't': |
| 1957 | switch(string[8] | 0x20) { |
| 1958 | case 's': |
| 1959 | return pkgTagSection::Key::Conflicts; |
| 1960 | } |
| 1961 | } |
| 1962 | } |
| 1963 | } |
| 1964 | } |
| 1965 | } |
| 1966 | } |
| 1967 | } |
| 1968 | break; |
| 1969 | case 'd': |
| 1970 | switch(string[1] | 0x20) { |
| 1971 | case 'i': |
| 1972 | switch(string[2] | 0x20) { |
| 1973 | case 'r': |
| 1974 | switch(string[3] | 0x20) { |
| 1975 | case 'e': |
| 1976 | switch(string[4] | 0x20) { |
| 1977 | case 'c': |
| 1978 | switch(string[5] | 0x20) { |
| 1979 | case 't': |
| 1980 | switch(string[6] | 0x20) { |
| 1981 | case 'o': |
| 1982 | switch(string[7] | 0x20) { |
| 1983 | case 'r': |
| 1984 | switch(string[8] | 0x20) { |
| 1985 | case 'y': |
| 1986 | return pkgTagSection::Key::Directory; |
| 1987 | } |
| 1988 | } |
| 1989 | } |
| 1990 | } |
| 1991 | } |
| 1992 | } |
| 1993 | } |
| 1994 | } |
| 1995 | break; |
| 1996 | case 'e': |
| 1997 | switch(string[1] | 0x20) { |
| 1998 | case 's': |
| 1999 | switch(string[2] | 0x20) { |
| 2000 | case 's': |
| 2001 | switch(string[3] | 0x20) { |
| 2002 | case 'e': |
| 2003 | switch(string[4] | 0x20) { |
| 2004 | case 'n': |
| 2005 | switch(string[5] | 0x20) { |
| 2006 | case 't': |
| 2007 | switch(string[6] | 0x20) { |
| 2008 | case 'i': |
| 2009 | switch(string[7] | 0x20) { |
| 2010 | case 'a': |
| 2011 | switch(string[8] | 0x20) { |
| 2012 | case 'l': |
| 2013 | return pkgTagSection::Key::Essential; |
| 2014 | } |
| 2015 | } |
| 2016 | } |
| 2017 | } |
| 2018 | } |
| 2019 | } |
| 2020 | } |
| 2021 | } |
| 2022 | break; |
| 2023 | case 'i': |
| 2024 | switch(string[1] | 0x20) { |
| 2025 | case 'm': |
| 2026 | switch(string[2] | 0x20) { |
| 2027 | case 'p': |
| 2028 | switch(string[3] | 0x20) { |
| 2029 | case 'o': |
| 2030 | switch(string[4] | 0x20) { |
| 2031 | case 'r': |
| 2032 | switch(string[5] | 0x20) { |
| 2033 | case 't': |
| 2034 | switch(string[6] | 0x20) { |
| 2035 | case 'a': |
| 2036 | switch(string[7] | 0x20) { |
| 2037 | case 'n': |
| 2038 | switch(string[8] | 0x20) { |
| 2039 | case 't': |
| 2040 | return pkgTagSection::Key::Important; |
| 2041 | } |
| 2042 | } |
| 2043 | } |
| 2044 | } |
| 2045 | } |
| 2046 | } |
| 2047 | } |
| 2048 | } |
| 2049 | break; |
| 2050 | case 't': |
| 2051 | switch(string[1] | 0x20) { |
| 2052 | case 'e': |
| 2053 | switch(string[2] | 0x20) { |
| 2054 | case 's': |
| 2055 | switch(string[3] | 0x20) { |
| 2056 | case 't': |
| 2057 | switch(string[4] | 0x20) { |
| 2058 | case 's': |
| 2059 | switch(string[5] | 0x20) { |
| 2060 | case 'u': |
| 2061 | switch(string[6] | 0x20) { |
| 2062 | case 'i': |
| 2063 | switch(string[7] | 0x20) { |
| 2064 | case 't': |
| 2065 | switch(string[8] | 0x20) { |
| 2066 | case 'e': |
| 2067 | return pkgTagSection::Key::Testsuite; |
| 2068 | } |
| 2069 | } |
| 2070 | } |
| 2071 | } |
| 2072 | } |
| 2073 | } |
| 2074 | } |
| 2075 | } |
| 2076 | break; |
| 2077 | case 'u': |
| 2078 | switch(string[1] | 0x20) { |
| 2079 | case 'p': |
| 2080 | switch(string[2] | 0x20) { |
| 2081 | case 'l': |
| 2082 | switch(string[3] | 0x20) { |
| 2083 | case 'o': |
| 2084 | switch(string[4] | 0x20) { |
| 2085 | case 'a': |
| 2086 | switch(string[5] | 0x20) { |
| 2087 | case 'd': |
| 2088 | switch(string[6] | 0x20) { |
| 2089 | case 'e': |
| 2090 | switch(string[7] | 0x20) { |
| 2091 | case 'r': |
| 2092 | switch(string[8] | 0x20) { |
| 2093 | case 's': |
| 2094 | return pkgTagSection::Key::Uploaders; |
| 2095 | } |
| 2096 | } |
| 2097 | } |
| 2098 | } |
| 2099 | } |
| 2100 | } |
| 2101 | } |
| 2102 | } |
| 2103 | break; |
| 2104 | case 'v': |
| 2105 | switch(string[1] | 0x20) { |
| 2106 | case 'c': |
| 2107 | switch(string[2] | 0x20) { |
| 2108 | case 's': |
| 2109 | switch(string[3]) { |
| 2110 | case '-': |
| 2111 | switch(string[4] | 0x20) { |
| 2112 | case 'd': |
| 2113 | switch(string[5] | 0x20) { |
| 2114 | case 'a': |
| 2115 | switch(string[6] | 0x20) { |
| 2116 | case 'r': |
| 2117 | switch(string[7] | 0x20) { |
| 2118 | case 'c': |
| 2119 | switch(string[8] | 0x20) { |
| 2120 | case 's': |
| 2121 | return pkgTagSection::Key::Vcs_Darcs; |
| 2122 | } |
| 2123 | } |
| 2124 | } |
| 2125 | } |
| 2126 | } |
| 2127 | } |
| 2128 | } |
| 2129 | } |
| 2130 | } |
| 2131 | return pkgTagSection::Key::Unknown; |
| 2132 | } |
| 2133 | static enum pkgTagSection::Key pkgTagHash10(const char *string) |
| 2134 | { |
| 2135 | switch(string[0] | 0x20) { |
| 2136 | case 'm': |
| 2137 | switch(string[1] | 0x20) { |
| 2138 | case 'a': |
| 2139 | switch(string[2] | 0x20) { |
| 2140 | case 'i': |
| 2141 | switch(string[3] | 0x20) { |
| 2142 | case 'n': |
| 2143 | switch(string[4] | 0x20) { |
| 2144 | case 't': |
| 2145 | switch(string[5] | 0x20) { |
| 2146 | case 'a': |
| 2147 | switch(string[6] | 0x20) { |
| 2148 | case 'i': |
| 2149 | switch(string[7] | 0x20) { |
| 2150 | case 'n': |
| 2151 | switch(string[8] | 0x20) { |
| 2152 | case 'e': |
| 2153 | switch(string[9] | 0x20) { |
| 2154 | case 'r': |
| 2155 | return pkgTagSection::Key::Maintainer; |
| 2156 | } |
| 2157 | } |
| 2158 | } |
| 2159 | } |
| 2160 | } |
| 2161 | } |
| 2162 | } |
| 2163 | } |
| 2164 | break; |
| 2165 | case 'u': |
| 2166 | switch(string[2] | 0x20) { |
| 2167 | case 'l': |
| 2168 | switch(string[3] | 0x20) { |
| 2169 | case 't': |
| 2170 | switch(string[4] | 0x20) { |
| 2171 | case 'i': |
| 2172 | switch(string[5]) { |
| 2173 | case '-': |
| 2174 | switch(string[6] | 0x20) { |
| 2175 | case 'a': |
| 2176 | switch(string[7] | 0x20) { |
| 2177 | case 'r': |
| 2178 | switch(string[8] | 0x20) { |
| 2179 | case 'c': |
| 2180 | switch(string[9] | 0x20) { |
| 2181 | case 'h': |
| 2182 | return pkgTagSection::Key::Multi_Arch; |
| 2183 | } |
| 2184 | } |
| 2185 | } |
| 2186 | } |
| 2187 | } |
| 2188 | } |
| 2189 | } |
| 2190 | } |
| 2191 | } |
| 2192 | break; |
| 2193 | case 'r': |
| 2194 | switch(string[1] | 0x20) { |
| 2195 | case 'e': |
| 2196 | switch(string[2] | 0x20) { |
| 2197 | case 'c': |
| 2198 | switch(string[3] | 0x20) { |
| 2199 | case 'o': |
| 2200 | switch(string[4] | 0x20) { |
| 2201 | case 'm': |
| 2202 | switch(string[5] | 0x20) { |
| 2203 | case 'm': |
| 2204 | switch(string[6] | 0x20) { |
| 2205 | case 'e': |
| 2206 | switch(string[7] | 0x20) { |
| 2207 | case 'n': |
| 2208 | switch(string[8] | 0x20) { |
| 2209 | case 'd': |
| 2210 | switch(string[9] | 0x20) { |
| 2211 | case 's': |
| 2212 | return pkgTagSection::Key::Recommends; |
| 2213 | } |
| 2214 | } |
| 2215 | } |
| 2216 | } |
| 2217 | } |
| 2218 | } |
| 2219 | } |
| 2220 | } |
| 2221 | } |
| 2222 | break; |
| 2223 | case 'v': |
| 2224 | switch(string[1] | 0x20) { |
| 2225 | case 'c': |
| 2226 | switch(string[2] | 0x20) { |
| 2227 | case 's': |
| 2228 | switch(string[3]) { |
| 2229 | case '-': |
| 2230 | switch(string[4] | 0x20) { |
| 2231 | case 'b': |
| 2232 | switch(string[5] | 0x20) { |
| 2233 | case 'r': |
| 2234 | switch(string[6] | 0x20) { |
| 2235 | case 'o': |
| 2236 | switch(string[7] | 0x20) { |
| 2237 | case 'w': |
| 2238 | switch(string[8] | 0x20) { |
| 2239 | case 's': |
| 2240 | switch(string[9] | 0x20) { |
| 2241 | case 'e': |
| 2242 | return pkgTagSection::Key::Vcs_Browse; |
| 2243 | } |
| 2244 | } |
| 2245 | } |
| 2246 | } |
| 2247 | } |
| 2248 | } |
| 2249 | } |
| 2250 | } |
| 2251 | } |
| 2252 | } |
| 2253 | return pkgTagSection::Key::Unknown; |
| 2254 | } |
| 2255 | static enum pkgTagSection::Key pkgTagHash11(const char *string) |
| 2256 | { |
| 2257 | switch(string[0] | 0x20) { |
| 2258 | case 'b': |
| 2259 | switch(string[1] | 0x20) { |
| 2260 | case 'u': |
| 2261 | switch(string[2] | 0x20) { |
| 2262 | case 'i': |
| 2263 | switch(string[3] | 0x20) { |
| 2264 | case 'l': |
| 2265 | switch(string[4] | 0x20) { |
| 2266 | case 't': |
| 2267 | switch(string[5]) { |
| 2268 | case '-': |
| 2269 | switch(string[6] | 0x20) { |
| 2270 | case 'u': |
| 2271 | switch(string[7] | 0x20) { |
| 2272 | case 's': |
| 2273 | switch(string[8] | 0x20) { |
| 2274 | case 'i': |
| 2275 | switch(string[9] | 0x20) { |
| 2276 | case 'n': |
| 2277 | switch(string[10] | 0x20) { |
| 2278 | case 'g': |
| 2279 | return pkgTagSection::Key::Built_Using; |
| 2280 | } |
| 2281 | } |
| 2282 | } |
| 2283 | } |
| 2284 | } |
| 2285 | } |
| 2286 | } |
| 2287 | } |
| 2288 | } |
| 2289 | } |
| 2290 | break; |
| 2291 | case 'd': |
| 2292 | switch(string[1] | 0x20) { |
| 2293 | case 'e': |
| 2294 | switch(string[2] | 0x20) { |
| 2295 | case 's': |
| 2296 | switch(string[3] | 0x20) { |
| 2297 | case 'c': |
| 2298 | switch(string[4] | 0x20) { |
| 2299 | case 'r': |
| 2300 | switch(string[5] | 0x20) { |
| 2301 | case 'i': |
| 2302 | switch(string[6] | 0x20) { |
| 2303 | case 'p': |
| 2304 | switch(string[7] | 0x20) { |
| 2305 | case 't': |
| 2306 | switch(string[8] | 0x20) { |
| 2307 | case 'i': |
| 2308 | switch(string[9] | 0x20) { |
| 2309 | case 'o': |
| 2310 | switch(string[10] | 0x20) { |
| 2311 | case 'n': |
| 2312 | return pkgTagSection::Key::Description; |
| 2313 | } |
| 2314 | } |
| 2315 | } |
| 2316 | } |
| 2317 | } |
| 2318 | } |
| 2319 | } |
| 2320 | } |
| 2321 | } |
| 2322 | } |
| 2323 | break; |
| 2324 | case 'p': |
| 2325 | switch(string[1] | 0x20) { |
| 2326 | case 'r': |
| 2327 | switch(string[2] | 0x20) { |
| 2328 | case 'e': |
| 2329 | switch(string[3]) { |
| 2330 | case '-': |
| 2331 | switch(string[4] | 0x20) { |
| 2332 | case 'd': |
| 2333 | switch(string[5] | 0x20) { |
| 2334 | case 'e': |
| 2335 | switch(string[6] | 0x20) { |
| 2336 | case 'p': |
| 2337 | switch(string[7] | 0x20) { |
| 2338 | case 'e': |
| 2339 | switch(string[8] | 0x20) { |
| 2340 | case 'n': |
| 2341 | switch(string[9] | 0x20) { |
| 2342 | case 'd': |
| 2343 | switch(string[10] | 0x20) { |
| 2344 | case 's': |
| 2345 | return pkgTagSection::Key::Pre_Depends; |
| 2346 | } |
| 2347 | } |
| 2348 | } |
| 2349 | } |
| 2350 | } |
| 2351 | } |
| 2352 | } |
| 2353 | } |
| 2354 | } |
| 2355 | } |
| 2356 | break; |
| 2357 | case 'r': |
| 2358 | switch(string[1] | 0x20) { |
| 2359 | case 'e': |
| 2360 | switch(string[2] | 0x20) { |
| 2361 | case 'c': |
| 2362 | switch(string[3] | 0x20) { |
| 2363 | case 'o': |
| 2364 | switch(string[4] | 0x20) { |
| 2365 | case 'm': |
| 2366 | switch(string[5] | 0x20) { |
| 2367 | case 'm': |
| 2368 | switch(string[6] | 0x20) { |
| 2369 | case 'e': |
| 2370 | switch(string[7] | 0x20) { |
| 2371 | case 'n': |
| 2372 | switch(string[8] | 0x20) { |
| 2373 | case 'd': |
| 2374 | switch(string[9] | 0x20) { |
| 2375 | case 'e': |
| 2376 | switch(string[10] | 0x20) { |
| 2377 | case 'd': |
| 2378 | return pkgTagSection::Key::Recommended; |
| 2379 | } |
| 2380 | } |
| 2381 | } |
| 2382 | } |
| 2383 | } |
| 2384 | } |
| 2385 | } |
| 2386 | } |
| 2387 | } |
| 2388 | } |
| 2389 | break; |
| 2390 | case 'v': |
| 2391 | switch(string[1] | 0x20) { |
| 2392 | case 'c': |
| 2393 | switch(string[2] | 0x20) { |
| 2394 | case 's': |
| 2395 | switch(string[3]) { |
| 2396 | case '-': |
| 2397 | switch(string[4] | 0x20) { |
| 2398 | case 'b': |
| 2399 | switch(string[5] | 0x20) { |
| 2400 | case 'r': |
| 2401 | switch(string[6] | 0x20) { |
| 2402 | case 'o': |
| 2403 | switch(string[7] | 0x20) { |
| 2404 | case 'w': |
| 2405 | switch(string[8] | 0x20) { |
| 2406 | case 's': |
| 2407 | switch(string[9] | 0x20) { |
| 2408 | case 'e': |
| 2409 | switch(string[10] | 0x20) { |
| 2410 | case 'r': |
| 2411 | return pkgTagSection::Key::Vcs_Browser; |
| 2412 | } |
| 2413 | } |
| 2414 | } |
| 2415 | } |
| 2416 | } |
| 2417 | } |
| 2418 | } |
| 2419 | } |
| 2420 | } |
| 2421 | } |
| 2422 | } |
| 2423 | return pkgTagSection::Key::Unknown; |
| 2424 | } |
| 2425 | static enum pkgTagSection::Key pkgTagHash12(const char *string) |
| 2426 | { |
| 2427 | switch(string[0] | 0x20) { |
| 2428 | case 'a': |
| 2429 | switch(string[1] | 0x20) { |
| 2430 | case 'r': |
| 2431 | switch(string[2] | 0x20) { |
| 2432 | case 'c': |
| 2433 | switch(string[3] | 0x20) { |
| 2434 | case 'h': |
| 2435 | switch(string[4] | 0x20) { |
| 2436 | case 'i': |
| 2437 | switch(string[5] | 0x20) { |
| 2438 | case 't': |
| 2439 | switch(string[6] | 0x20) { |
| 2440 | case 'e': |
| 2441 | switch(string[7] | 0x20) { |
| 2442 | case 'c': |
| 2443 | switch(string[8] | 0x20) { |
| 2444 | case 't': |
| 2445 | switch(string[9] | 0x20) { |
| 2446 | case 'u': |
| 2447 | switch(string[10] | 0x20) { |
| 2448 | case 'r': |
| 2449 | switch(string[11] | 0x20) { |
| 2450 | case 'e': |
| 2451 | return pkgTagSection::Key::Architecture; |
| 2452 | } |
| 2453 | } |
| 2454 | } |
| 2455 | } |
| 2456 | } |
| 2457 | } |
| 2458 | } |
| 2459 | } |
| 2460 | } |
| 2461 | } |
| 2462 | } |
| 2463 | break; |
| 2464 | case 'p': |
| 2465 | switch(string[1] | 0x20) { |
| 2466 | case 'a': |
| 2467 | switch(string[2] | 0x20) { |
| 2468 | case 'c': |
| 2469 | switch(string[3] | 0x20) { |
| 2470 | case 'k': |
| 2471 | switch(string[4] | 0x20) { |
| 2472 | case 'a': |
| 2473 | switch(string[5] | 0x20) { |
| 2474 | case 'g': |
| 2475 | switch(string[6] | 0x20) { |
| 2476 | case 'e': |
| 2477 | switch(string[7]) { |
| 2478 | case '-': |
| 2479 | switch(string[8] | 0x20) { |
| 2480 | case 'l': |
| 2481 | switch(string[9] | 0x20) { |
| 2482 | case 'i': |
| 2483 | switch(string[10] | 0x20) { |
| 2484 | case 's': |
| 2485 | switch(string[11] | 0x20) { |
| 2486 | case 't': |
| 2487 | return pkgTagSection::Key::Package_List; |
| 2488 | } |
| 2489 | } |
| 2490 | } |
| 2491 | break; |
| 2492 | case 't': |
| 2493 | switch(string[9] | 0x20) { |
| 2494 | case 'y': |
| 2495 | switch(string[10] | 0x20) { |
| 2496 | case 'p': |
| 2497 | switch(string[11] | 0x20) { |
| 2498 | case 'e': |
| 2499 | return pkgTagSection::Key::Package_Type; |
| 2500 | } |
| 2501 | } |
| 2502 | } |
| 2503 | } |
| 2504 | } |
| 2505 | } |
| 2506 | } |
| 2507 | } |
| 2508 | } |
| 2509 | } |
| 2510 | } |
| 2511 | } |
| 2512 | return pkgTagSection::Key::Unknown; |
| 2513 | } |
| 2514 | static enum pkgTagSection::Key pkgTagHash13(const char *string) |
| 2515 | { |
| 2516 | switch(string[0] | 0x20) { |
| 2517 | case 'b': |
| 2518 | switch(string[1] | 0x20) { |
| 2519 | case 'u': |
| 2520 | switch(string[2] | 0x20) { |
| 2521 | case 'i': |
| 2522 | switch(string[3] | 0x20) { |
| 2523 | case 'l': |
| 2524 | switch(string[4] | 0x20) { |
| 2525 | case 'd': |
| 2526 | switch(string[5]) { |
| 2527 | case '-': |
| 2528 | switch(string[6] | 0x20) { |
| 2529 | case 'd': |
| 2530 | switch(string[7] | 0x20) { |
| 2531 | case 'e': |
| 2532 | switch(string[8] | 0x20) { |
| 2533 | case 'p': |
| 2534 | switch(string[9] | 0x20) { |
| 2535 | case 'e': |
| 2536 | switch(string[10] | 0x20) { |
| 2537 | case 'n': |
| 2538 | switch(string[11] | 0x20) { |
| 2539 | case 'd': |
| 2540 | switch(string[12] | 0x20) { |
| 2541 | case 's': |
| 2542 | return pkgTagSection::Key::Build_Depends; |
| 2543 | } |
| 2544 | } |
| 2545 | } |
| 2546 | } |
| 2547 | } |
| 2548 | } |
| 2549 | } |
| 2550 | } |
| 2551 | } |
| 2552 | } |
| 2553 | } |
| 2554 | } |
| 2555 | break; |
| 2556 | case 'c': |
| 2557 | switch(string[1] | 0x20) { |
| 2558 | case 'h': |
| 2559 | switch(string[2] | 0x20) { |
| 2560 | case 'e': |
| 2561 | switch(string[3] | 0x20) { |
| 2562 | case 'c': |
| 2563 | switch(string[4] | 0x20) { |
| 2564 | case 'k': |
| 2565 | switch(string[5] | 0x20) { |
| 2566 | case 's': |
| 2567 | switch(string[6] | 0x20) { |
| 2568 | case 'u': |
| 2569 | switch(string[7] | 0x20) { |
| 2570 | case 'm': |
| 2571 | switch(string[8] | 0x20) { |
| 2572 | case 's': |
| 2573 | switch(string[9]) { |
| 2574 | case '-': |
| 2575 | switch(string[10] | 0x20) { |
| 2576 | case 'm': |
| 2577 | switch(string[11] | 0x20) { |
| 2578 | case 'd': |
| 2579 | switch(string[12]) { |
| 2580 | case '5': |
| 2581 | return pkgTagSection::Key::Checksums_Md5; |
| 2582 | } |
| 2583 | } |
| 2584 | } |
| 2585 | } |
| 2586 | } |
| 2587 | } |
| 2588 | } |
| 2589 | } |
| 2590 | } |
| 2591 | } |
| 2592 | } |
| 2593 | } |
| 2594 | } |
| 2595 | return pkgTagSection::Key::Unknown; |
| 2596 | } |
| 2597 | static enum pkgTagSection::Key pkgTagHash14(const char *string) |
| 2598 | { |
| 2599 | switch(string[0] | 0x20) { |
| 2600 | case 'c': |
| 2601 | switch(string[1] | 0x20) { |
| 2602 | case 'h': |
| 2603 | switch(string[2] | 0x20) { |
| 2604 | case 'e': |
| 2605 | switch(string[3] | 0x20) { |
| 2606 | case 'c': |
| 2607 | switch(string[4] | 0x20) { |
| 2608 | case 'k': |
| 2609 | switch(string[5] | 0x20) { |
| 2610 | case 's': |
| 2611 | switch(string[6] | 0x20) { |
| 2612 | case 'u': |
| 2613 | switch(string[7] | 0x20) { |
| 2614 | case 'm': |
| 2615 | switch(string[8] | 0x20) { |
| 2616 | case 's': |
| 2617 | switch(string[9]) { |
| 2618 | case '-': |
| 2619 | switch(string[10] | 0x20) { |
| 2620 | case 's': |
| 2621 | switch(string[11] | 0x20) { |
| 2622 | case 'h': |
| 2623 | switch(string[12] | 0x20) { |
| 2624 | case 'a': |
| 2625 | switch(string[13]) { |
| 2626 | case '1': |
| 2627 | return pkgTagSection::Key::Checksums_Sha1; |
| 2628 | } |
| 2629 | } |
| 2630 | } |
| 2631 | } |
| 2632 | } |
| 2633 | } |
| 2634 | } |
| 2635 | } |
| 2636 | } |
| 2637 | } |
| 2638 | } |
| 2639 | } |
| 2640 | break; |
| 2641 | case 'o': |
| 2642 | switch(string[2] | 0x20) { |
| 2643 | case 'n': |
| 2644 | switch(string[3] | 0x20) { |
| 2645 | case 'f': |
| 2646 | switch(string[4] | 0x20) { |
| 2647 | case 'i': |
| 2648 | switch(string[5] | 0x20) { |
| 2649 | case 'g': |
| 2650 | switch(string[6]) { |
| 2651 | case '-': |
| 2652 | switch(string[7] | 0x20) { |
| 2653 | case 'v': |
| 2654 | switch(string[8] | 0x20) { |
| 2655 | case 'e': |
| 2656 | switch(string[9] | 0x20) { |
| 2657 | case 'r': |
| 2658 | switch(string[10] | 0x20) { |
| 2659 | case 's': |
| 2660 | switch(string[11] | 0x20) { |
| 2661 | case 'i': |
| 2662 | switch(string[12] | 0x20) { |
| 2663 | case 'o': |
| 2664 | switch(string[13] | 0x20) { |
| 2665 | case 'n': |
| 2666 | return pkgTagSection::Key::Config_Version; |
| 2667 | } |
| 2668 | } |
| 2669 | } |
| 2670 | } |
| 2671 | } |
| 2672 | } |
| 2673 | } |
| 2674 | } |
| 2675 | } |
| 2676 | } |
| 2677 | } |
| 2678 | } |
| 2679 | } |
| 2680 | break; |
| 2681 | case 'i': |
| 2682 | switch(string[1] | 0x20) { |
| 2683 | case 'n': |
| 2684 | switch(string[2] | 0x20) { |
| 2685 | case 's': |
| 2686 | switch(string[3] | 0x20) { |
| 2687 | case 't': |
| 2688 | switch(string[4] | 0x20) { |
| 2689 | case 'a': |
| 2690 | switch(string[5] | 0x20) { |
| 2691 | case 'l': |
| 2692 | switch(string[6] | 0x20) { |
| 2693 | case 'l': |
| 2694 | switch(string[7] | 0x20) { |
| 2695 | case 'e': |
| 2696 | switch(string[8] | 0x20) { |
| 2697 | case 'd': |
| 2698 | switch(string[9]) { |
| 2699 | case '-': |
| 2700 | switch(string[10] | 0x20) { |
| 2701 | case 's': |
| 2702 | switch(string[11] | 0x20) { |
| 2703 | case 'i': |
| 2704 | switch(string[12] | 0x20) { |
| 2705 | case 'z': |
| 2706 | switch(string[13] | 0x20) { |
| 2707 | case 'e': |
| 2708 | return pkgTagSection::Key::Installed_Size; |
| 2709 | } |
| 2710 | } |
| 2711 | } |
| 2712 | } |
| 2713 | } |
| 2714 | } |
| 2715 | } |
| 2716 | } |
| 2717 | } |
| 2718 | } |
| 2719 | } |
| 2720 | } |
| 2721 | } |
| 2722 | break; |
| 2723 | case 'k': |
| 2724 | switch(string[1] | 0x20) { |
| 2725 | case 'e': |
| 2726 | switch(string[2] | 0x20) { |
| 2727 | case 'r': |
| 2728 | switch(string[3] | 0x20) { |
| 2729 | case 'n': |
| 2730 | switch(string[4] | 0x20) { |
| 2731 | case 'e': |
| 2732 | switch(string[5] | 0x20) { |
| 2733 | case 'l': |
| 2734 | switch(string[6]) { |
| 2735 | case '-': |
| 2736 | switch(string[7] | 0x20) { |
| 2737 | case 'v': |
| 2738 | switch(string[8] | 0x20) { |
| 2739 | case 'e': |
| 2740 | switch(string[9] | 0x20) { |
| 2741 | case 'r': |
| 2742 | switch(string[10] | 0x20) { |
| 2743 | case 's': |
| 2744 | switch(string[11] | 0x20) { |
| 2745 | case 'i': |
| 2746 | switch(string[12] | 0x20) { |
| 2747 | case 'o': |
| 2748 | switch(string[13] | 0x20) { |
| 2749 | case 'n': |
| 2750 | return pkgTagSection::Key::Kernel_Version; |
| 2751 | } |
| 2752 | } |
| 2753 | } |
| 2754 | } |
| 2755 | } |
| 2756 | } |
| 2757 | } |
| 2758 | } |
| 2759 | } |
| 2760 | } |
| 2761 | } |
| 2762 | } |
| 2763 | } |
| 2764 | break; |
| 2765 | case 'm': |
| 2766 | switch(string[1] | 0x20) { |
| 2767 | case 's': |
| 2768 | switch(string[2] | 0x20) { |
| 2769 | case 'd': |
| 2770 | switch(string[3] | 0x20) { |
| 2771 | case 'o': |
| 2772 | switch(string[4] | 0x20) { |
| 2773 | case 's': |
| 2774 | switch(string[5]) { |
| 2775 | case '-': |
| 2776 | switch(string[6] | 0x20) { |
| 2777 | case 'f': |
| 2778 | switch(string[7] | 0x20) { |
| 2779 | case 'i': |
| 2780 | switch(string[8] | 0x20) { |
| 2781 | case 'l': |
| 2782 | switch(string[9] | 0x20) { |
| 2783 | case 'e': |
| 2784 | switch(string[10] | 0x20) { |
| 2785 | case 'n': |
| 2786 | switch(string[11] | 0x20) { |
| 2787 | case 'a': |
| 2788 | switch(string[12] | 0x20) { |
| 2789 | case 'm': |
| 2790 | switch(string[13] | 0x20) { |
| 2791 | case 'e': |
| 2792 | return pkgTagSection::Key::MSDOS_Filename; |
| 2793 | } |
| 2794 | } |
| 2795 | } |
| 2796 | } |
| 2797 | } |
| 2798 | } |
| 2799 | } |
| 2800 | } |
| 2801 | } |
| 2802 | } |
| 2803 | } |
| 2804 | } |
| 2805 | } |
| 2806 | } |
| 2807 | return pkgTagSection::Key::Unknown; |
| 2808 | } |
| 2809 | static enum pkgTagSection::Key pkgTagHash15(const char *string) |
| 2810 | { |
| 2811 | switch(string[0] | 0x20) { |
| 2812 | case 'b': |
| 2813 | switch(string[1] | 0x20) { |
| 2814 | case 'u': |
| 2815 | switch(string[2] | 0x20) { |
| 2816 | case 'i': |
| 2817 | switch(string[3] | 0x20) { |
| 2818 | case 'l': |
| 2819 | switch(string[4] | 0x20) { |
| 2820 | case 'd': |
| 2821 | switch(string[5]) { |
| 2822 | case '-': |
| 2823 | switch(string[6] | 0x20) { |
| 2824 | case 'c': |
| 2825 | switch(string[7] | 0x20) { |
| 2826 | case 'o': |
| 2827 | switch(string[8] | 0x20) { |
| 2828 | case 'n': |
| 2829 | switch(string[9] | 0x20) { |
| 2830 | case 'f': |
| 2831 | switch(string[10] | 0x20) { |
| 2832 | case 'l': |
| 2833 | switch(string[11] | 0x20) { |
| 2834 | case 'i': |
| 2835 | switch(string[12] | 0x20) { |
| 2836 | case 'c': |
| 2837 | switch(string[13] | 0x20) { |
| 2838 | case 't': |
| 2839 | switch(string[14] | 0x20) { |
| 2840 | case 's': |
| 2841 | return pkgTagSection::Key::Build_Conflicts; |
| 2842 | } |
| 2843 | } |
| 2844 | } |
| 2845 | } |
| 2846 | } |
| 2847 | } |
| 2848 | } |
| 2849 | } |
| 2850 | } |
| 2851 | } |
| 2852 | } |
| 2853 | } |
| 2854 | } |
| 2855 | } |
| 2856 | break; |
| 2857 | case 'd': |
| 2858 | switch(string[1] | 0x20) { |
| 2859 | case 'e': |
| 2860 | switch(string[2] | 0x20) { |
| 2861 | case 's': |
| 2862 | switch(string[3] | 0x20) { |
| 2863 | case 'c': |
| 2864 | switch(string[4] | 0x20) { |
| 2865 | case 'r': |
| 2866 | switch(string[5] | 0x20) { |
| 2867 | case 'i': |
| 2868 | switch(string[6] | 0x20) { |
| 2869 | case 'p': |
| 2870 | switch(string[7] | 0x20) { |
| 2871 | case 't': |
| 2872 | switch(string[8] | 0x20) { |
| 2873 | case 'i': |
| 2874 | switch(string[9] | 0x20) { |
| 2875 | case 'o': |
| 2876 | switch(string[10] | 0x20) { |
| 2877 | case 'n': |
| 2878 | switch(string[11]) { |
| 2879 | case '-': |
| 2880 | switch(string[12] | 0x20) { |
| 2881 | case 'm': |
| 2882 | switch(string[13] | 0x20) { |
| 2883 | case 'd': |
| 2884 | switch(string[14]) { |
| 2885 | case '5': |
| 2886 | return pkgTagSection::Key::Description_md5; |
| 2887 | } |
| 2888 | } |
| 2889 | } |
| 2890 | } |
| 2891 | } |
| 2892 | } |
| 2893 | } |
| 2894 | } |
| 2895 | } |
| 2896 | } |
| 2897 | } |
| 2898 | } |
| 2899 | } |
| 2900 | } |
| 2901 | break; |
| 2902 | case 's': |
| 2903 | switch(string[1] | 0x20) { |
| 2904 | case 'u': |
| 2905 | switch(string[2] | 0x20) { |
| 2906 | case 'b': |
| 2907 | switch(string[3] | 0x20) { |
| 2908 | case 'a': |
| 2909 | switch(string[4] | 0x20) { |
| 2910 | case 'r': |
| 2911 | switch(string[5] | 0x20) { |
| 2912 | case 'c': |
| 2913 | switch(string[6] | 0x20) { |
| 2914 | case 'h': |
| 2915 | switch(string[7] | 0x20) { |
| 2916 | case 'i': |
| 2917 | switch(string[8] | 0x20) { |
| 2918 | case 't': |
| 2919 | switch(string[9] | 0x20) { |
| 2920 | case 'e': |
| 2921 | switch(string[10] | 0x20) { |
| 2922 | case 'c': |
| 2923 | switch(string[11] | 0x20) { |
| 2924 | case 't': |
| 2925 | switch(string[12] | 0x20) { |
| 2926 | case 'u': |
| 2927 | switch(string[13] | 0x20) { |
| 2928 | case 'r': |
| 2929 | switch(string[14] | 0x20) { |
| 2930 | case 'e': |
| 2931 | return pkgTagSection::Key::Subarchitecture; |
| 2932 | } |
| 2933 | } |
| 2934 | } |
| 2935 | } |
| 2936 | } |
| 2937 | } |
| 2938 | } |
| 2939 | } |
| 2940 | } |
| 2941 | } |
| 2942 | } |
| 2943 | } |
| 2944 | } |
| 2945 | } |
| 2946 | } |
| 2947 | return pkgTagSection::Key::Unknown; |
| 2948 | } |
| 2949 | static enum pkgTagSection::Key pkgTagHash16(const char *string) |
| 2950 | { |
| 2951 | switch(string[0] | 0x20) { |
| 2952 | case 'c': |
| 2953 | switch(string[1] | 0x20) { |
| 2954 | case 'h': |
| 2955 | switch(string[2] | 0x20) { |
| 2956 | case 'e': |
| 2957 | switch(string[3] | 0x20) { |
| 2958 | case 'c': |
| 2959 | switch(string[4] | 0x20) { |
| 2960 | case 'k': |
| 2961 | switch(string[5] | 0x20) { |
| 2962 | case 's': |
| 2963 | switch(string[6] | 0x20) { |
| 2964 | case 'u': |
| 2965 | switch(string[7] | 0x20) { |
| 2966 | case 'm': |
| 2967 | switch(string[8] | 0x20) { |
| 2968 | case 's': |
| 2969 | switch(string[9]) { |
| 2970 | case '-': |
| 2971 | switch(string[10] | 0x20) { |
| 2972 | case 's': |
| 2973 | switch(string[11] | 0x20) { |
| 2974 | case 'h': |
| 2975 | switch(string[12] | 0x20) { |
| 2976 | case 'a': |
| 2977 | switch(string[13]) { |
| 2978 | case '2': |
| 2979 | switch(string[14]) { |
| 2980 | case '5': |
| 2981 | switch(string[15]) { |
| 2982 | case '6': |
| 2983 | return pkgTagSection::Key::Checksums_Sha256; |
| 2984 | } |
| 2985 | } |
| 2986 | break; |
| 2987 | case '5': |
| 2988 | switch(string[14]) { |
| 2989 | case '1': |
| 2990 | switch(string[15]) { |
| 2991 | case '2': |
| 2992 | return pkgTagSection::Key::Checksums_Sha512; |
| 2993 | } |
| 2994 | } |
| 2995 | } |
| 2996 | } |
| 2997 | } |
| 2998 | } |
| 2999 | } |
| 3000 | } |
| 3001 | } |
| 3002 | } |
| 3003 | } |
| 3004 | } |
| 3005 | } |
| 3006 | } |
| 3007 | } |
| 3008 | break; |
| 3009 | case 'p': |
| 3010 | switch(string[1] | 0x20) { |
| 3011 | case 'a': |
| 3012 | switch(string[2] | 0x20) { |
| 3013 | case 'c': |
| 3014 | switch(string[3] | 0x20) { |
| 3015 | case 'k': |
| 3016 | switch(string[4] | 0x20) { |
| 3017 | case 'a': |
| 3018 | switch(string[5] | 0x20) { |
| 3019 | case 'g': |
| 3020 | switch(string[6] | 0x20) { |
| 3021 | case 'e': |
| 3022 | switch(string[7]) { |
| 3023 | case '-': |
| 3024 | switch(string[8] | 0x20) { |
| 3025 | case 'r': |
| 3026 | switch(string[9] | 0x20) { |
| 3027 | case 'e': |
| 3028 | switch(string[10] | 0x20) { |
| 3029 | case 'v': |
| 3030 | switch(string[11] | 0x20) { |
| 3031 | case 'i': |
| 3032 | switch(string[12] | 0x20) { |
| 3033 | case 's': |
| 3034 | switch(string[13] | 0x20) { |
| 3035 | case 'i': |
| 3036 | switch(string[14] | 0x20) { |
| 3037 | case 'o': |
| 3038 | switch(string[15] | 0x20) { |
| 3039 | case 'n': |
| 3040 | return pkgTagSection::Key::Package_Revision; |
| 3041 | } |
| 3042 | } |
| 3043 | } |
| 3044 | } |
| 3045 | } |
| 3046 | } |
| 3047 | } |
| 3048 | } |
| 3049 | break; |
| 3050 | case '_': |
| 3051 | switch(string[8] | 0x20) { |
| 3052 | case 'r': |
| 3053 | switch(string[9] | 0x20) { |
| 3054 | case 'e': |
| 3055 | switch(string[10] | 0x20) { |
| 3056 | case 'v': |
| 3057 | switch(string[11] | 0x20) { |
| 3058 | case 'i': |
| 3059 | switch(string[12] | 0x20) { |
| 3060 | case 's': |
| 3061 | switch(string[13] | 0x20) { |
| 3062 | case 'i': |
| 3063 | switch(string[14] | 0x20) { |
| 3064 | case 'o': |
| 3065 | switch(string[15] | 0x20) { |
| 3066 | case 'n': |
| 3067 | return pkgTagSection::Key::Package__Revision; |
| 3068 | } |
| 3069 | } |
| 3070 | } |
| 3071 | } |
| 3072 | } |
| 3073 | } |
| 3074 | } |
| 3075 | } |
| 3076 | } |
| 3077 | } |
| 3078 | } |
| 3079 | } |
| 3080 | } |
| 3081 | } |
| 3082 | } |
| 3083 | break; |
| 3084 | case 't': |
| 3085 | switch(string[1] | 0x20) { |
| 3086 | case 'r': |
| 3087 | switch(string[2] | 0x20) { |
| 3088 | case 'i': |
| 3089 | switch(string[3] | 0x20) { |
| 3090 | case 'g': |
| 3091 | switch(string[4] | 0x20) { |
| 3092 | case 'g': |
| 3093 | switch(string[5] | 0x20) { |
| 3094 | case 'e': |
| 3095 | switch(string[6] | 0x20) { |
| 3096 | case 'r': |
| 3097 | switch(string[7] | 0x20) { |
| 3098 | case 's': |
| 3099 | switch(string[8]) { |
| 3100 | case '-': |
| 3101 | switch(string[9] | 0x20) { |
| 3102 | case 'a': |
| 3103 | switch(string[10] | 0x20) { |
| 3104 | case 'w': |
| 3105 | switch(string[11] | 0x20) { |
| 3106 | case 'a': |
| 3107 | switch(string[12] | 0x20) { |
| 3108 | case 'i': |
| 3109 | switch(string[13] | 0x20) { |
| 3110 | case 't': |
| 3111 | switch(string[14] | 0x20) { |
| 3112 | case 'e': |
| 3113 | switch(string[15] | 0x20) { |
| 3114 | case 'd': |
| 3115 | return pkgTagSection::Key::Triggers_Awaited; |
| 3116 | } |
| 3117 | } |
| 3118 | } |
| 3119 | } |
| 3120 | } |
| 3121 | } |
| 3122 | break; |
| 3123 | case 'p': |
| 3124 | switch(string[10] | 0x20) { |
| 3125 | case 'e': |
| 3126 | switch(string[11] | 0x20) { |
| 3127 | case 'n': |
| 3128 | switch(string[12] | 0x20) { |
| 3129 | case 'd': |
| 3130 | switch(string[13] | 0x20) { |
| 3131 | case 'i': |
| 3132 | switch(string[14] | 0x20) { |
| 3133 | case 'n': |
| 3134 | switch(string[15] | 0x20) { |
| 3135 | case 'g': |
| 3136 | return pkgTagSection::Key::Triggers_Pending; |
| 3137 | } |
| 3138 | } |
| 3139 | } |
| 3140 | } |
| 3141 | } |
| 3142 | } |
| 3143 | } |
| 3144 | } |
| 3145 | } |
| 3146 | } |
| 3147 | } |
| 3148 | } |
| 3149 | } |
| 3150 | } |
| 3151 | } |
| 3152 | } |
| 3153 | return pkgTagSection::Key::Unknown; |
| 3154 | } |
| 3155 | static enum pkgTagSection::Key pkgTagHash17(const char *string) |
| 3156 | { |
| 3157 | switch(string[0] | 0x20) { |
| 3158 | case 'd': |
| 3159 | switch(string[1] | 0x20) { |
| 3160 | case 'm': |
| 3161 | switch(string[2]) { |
| 3162 | case '-': |
| 3163 | switch(string[3] | 0x20) { |
| 3164 | case 'u': |
| 3165 | switch(string[4] | 0x20) { |
| 3166 | case 'p': |
| 3167 | switch(string[5] | 0x20) { |
| 3168 | case 'l': |
| 3169 | switch(string[6] | 0x20) { |
| 3170 | case 'o': |
| 3171 | switch(string[7] | 0x20) { |
| 3172 | case 'a': |
| 3173 | switch(string[8] | 0x20) { |
| 3174 | case 'd': |
| 3175 | switch(string[9]) { |
| 3176 | case '-': |
| 3177 | switch(string[10] | 0x20) { |
| 3178 | case 'a': |
| 3179 | switch(string[11] | 0x20) { |
| 3180 | case 'l': |
| 3181 | switch(string[12] | 0x20) { |
| 3182 | case 'l': |
| 3183 | switch(string[13] | 0x20) { |
| 3184 | case 'o': |
| 3185 | switch(string[14] | 0x20) { |
| 3186 | case 'w': |
| 3187 | switch(string[15] | 0x20) { |
| 3188 | case 'e': |
| 3189 | switch(string[16] | 0x20) { |
| 3190 | case 'd': |
| 3191 | return pkgTagSection::Key::Dm_Upload_Allowed; |
| 3192 | } |
| 3193 | } |
| 3194 | } |
| 3195 | } |
| 3196 | } |
| 3197 | } |
| 3198 | } |
| 3199 | } |
| 3200 | } |
| 3201 | } |
| 3202 | } |
| 3203 | } |
| 3204 | } |
| 3205 | } |
| 3206 | } |
| 3207 | } |
| 3208 | break; |
| 3209 | case 's': |
| 3210 | switch(string[1] | 0x20) { |
| 3211 | case 't': |
| 3212 | switch(string[2] | 0x20) { |
| 3213 | case 'a': |
| 3214 | switch(string[3] | 0x20) { |
| 3215 | case 'n': |
| 3216 | switch(string[4] | 0x20) { |
| 3217 | case 'd': |
| 3218 | switch(string[5] | 0x20) { |
| 3219 | case 'a': |
| 3220 | switch(string[6] | 0x20) { |
| 3221 | case 'r': |
| 3222 | switch(string[7] | 0x20) { |
| 3223 | case 'd': |
| 3224 | switch(string[8] | 0x20) { |
| 3225 | case 's': |
| 3226 | switch(string[9]) { |
| 3227 | case '-': |
| 3228 | switch(string[10] | 0x20) { |
| 3229 | case 'v': |
| 3230 | switch(string[11] | 0x20) { |
| 3231 | case 'e': |
| 3232 | switch(string[12] | 0x20) { |
| 3233 | case 'r': |
| 3234 | switch(string[13] | 0x20) { |
| 3235 | case 's': |
| 3236 | switch(string[14] | 0x20) { |
| 3237 | case 'i': |
| 3238 | switch(string[15] | 0x20) { |
| 3239 | case 'o': |
| 3240 | switch(string[16] | 0x20) { |
| 3241 | case 'n': |
| 3242 | return pkgTagSection::Key::Standards_Version; |
| 3243 | } |
| 3244 | } |
| 3245 | } |
| 3246 | } |
| 3247 | } |
| 3248 | } |
| 3249 | } |
| 3250 | } |
| 3251 | } |
| 3252 | } |
| 3253 | } |
| 3254 | } |
| 3255 | } |
| 3256 | } |
| 3257 | } |
| 3258 | } |
| 3259 | } |
| 3260 | return pkgTagSection::Key::Unknown; |
| 3261 | } |
| 3262 | static enum pkgTagSection::Key pkgTagHash18(const char *string) |
| 3263 | { |
| 3264 | switch(string[0] | 0x20) { |
| 3265 | case 'b': |
| 3266 | switch(string[1] | 0x20) { |
| 3267 | case 'u': |
| 3268 | switch(string[2] | 0x20) { |
| 3269 | case 'i': |
| 3270 | switch(string[3] | 0x20) { |
| 3271 | case 'l': |
| 3272 | switch(string[4] | 0x20) { |
| 3273 | case 'd': |
| 3274 | switch(string[5]) { |
| 3275 | case '-': |
| 3276 | switch(string[6] | 0x20) { |
| 3277 | case 'd': |
| 3278 | switch(string[7] | 0x20) { |
| 3279 | case 'e': |
| 3280 | switch(string[8] | 0x20) { |
| 3281 | case 'p': |
| 3282 | switch(string[9] | 0x20) { |
| 3283 | case 'e': |
| 3284 | switch(string[10] | 0x20) { |
| 3285 | case 'n': |
| 3286 | switch(string[11] | 0x20) { |
| 3287 | case 'd': |
| 3288 | switch(string[12] | 0x20) { |
| 3289 | case 's': |
| 3290 | switch(string[13]) { |
| 3291 | case '-': |
| 3292 | switch(string[14] | 0x20) { |
| 3293 | case 'a': |
| 3294 | switch(string[15] | 0x20) { |
| 3295 | case 'r': |
| 3296 | switch(string[16] | 0x20) { |
| 3297 | case 'c': |
| 3298 | switch(string[17] | 0x20) { |
| 3299 | case 'h': |
| 3300 | return pkgTagSection::Key::Build_Depends_Arch; |
| 3301 | } |
| 3302 | } |
| 3303 | } |
| 3304 | } |
| 3305 | } |
| 3306 | } |
| 3307 | } |
| 3308 | } |
| 3309 | } |
| 3310 | } |
| 3311 | } |
| 3312 | } |
| 3313 | } |
| 3314 | break; |
| 3315 | case 't': |
| 3316 | switch(string[5]) { |
| 3317 | case '-': |
| 3318 | switch(string[6] | 0x20) { |
| 3319 | case 'f': |
| 3320 | switch(string[7] | 0x20) { |
| 3321 | case 'o': |
| 3322 | switch(string[8] | 0x20) { |
| 3323 | case 'r': |
| 3324 | switch(string[9]) { |
| 3325 | case '-': |
| 3326 | switch(string[10] | 0x20) { |
| 3327 | case 'p': |
| 3328 | switch(string[11] | 0x20) { |
| 3329 | case 'r': |
| 3330 | switch(string[12] | 0x20) { |
| 3331 | case 'o': |
| 3332 | switch(string[13] | 0x20) { |
| 3333 | case 'f': |
| 3334 | switch(string[14] | 0x20) { |
| 3335 | case 'i': |
| 3336 | switch(string[15] | 0x20) { |
| 3337 | case 'l': |
| 3338 | switch(string[16] | 0x20) { |
| 3339 | case 'e': |
| 3340 | switch(string[17] | 0x20) { |
| 3341 | case 's': |
| 3342 | return pkgTagSection::Key::Built_For_Profiles; |
| 3343 | } |
| 3344 | } |
| 3345 | } |
| 3346 | } |
| 3347 | } |
| 3348 | } |
| 3349 | } |
| 3350 | } |
| 3351 | } |
| 3352 | } |
| 3353 | } |
| 3354 | } |
| 3355 | } |
| 3356 | } |
| 3357 | } |
| 3358 | } |
| 3359 | } |
| 3360 | break; |
| 3361 | case 't': |
| 3362 | switch(string[1] | 0x20) { |
| 3363 | case 'e': |
| 3364 | switch(string[2] | 0x20) { |
| 3365 | case 's': |
| 3366 | switch(string[3] | 0x20) { |
| 3367 | case 't': |
| 3368 | switch(string[4] | 0x20) { |
| 3369 | case 's': |
| 3370 | switch(string[5] | 0x20) { |
| 3371 | case 'u': |
| 3372 | switch(string[6] | 0x20) { |
| 3373 | case 'i': |
| 3374 | switch(string[7] | 0x20) { |
| 3375 | case 't': |
| 3376 | switch(string[8] | 0x20) { |
| 3377 | case 'e': |
| 3378 | switch(string[9]) { |
| 3379 | case '-': |
| 3380 | switch(string[10] | 0x20) { |
| 3381 | case 't': |
| 3382 | switch(string[11] | 0x20) { |
| 3383 | case 'r': |
| 3384 | switch(string[12] | 0x20) { |
| 3385 | case 'i': |
| 3386 | switch(string[13] | 0x20) { |
| 3387 | case 'g': |
| 3388 | switch(string[14] | 0x20) { |
| 3389 | case 'g': |
| 3390 | switch(string[15] | 0x20) { |
| 3391 | case 'e': |
| 3392 | switch(string[16] | 0x20) { |
| 3393 | case 'r': |
| 3394 | switch(string[17] | 0x20) { |
| 3395 | case 's': |
| 3396 | return pkgTagSection::Key::Testsuite_Triggers; |
| 3397 | } |
| 3398 | } |
| 3399 | } |
| 3400 | } |
| 3401 | } |
| 3402 | } |
| 3403 | } |
| 3404 | } |
| 3405 | } |
| 3406 | } |
| 3407 | } |
| 3408 | } |
| 3409 | } |
| 3410 | } |
| 3411 | } |
| 3412 | } |
| 3413 | } |
| 3414 | } |
| 3415 | return pkgTagSection::Key::Unknown; |
| 3416 | } |
| 3417 | static enum pkgTagSection::Key pkgTagHash19(const char *string) |
| 3418 | { |
| 3419 | switch(string[0] | 0x20) { |
| 3420 | case 'b': |
| 3421 | switch(string[1] | 0x20) { |
| 3422 | case 'u': |
| 3423 | switch(string[2] | 0x20) { |
| 3424 | case 'i': |
| 3425 | switch(string[3] | 0x20) { |
| 3426 | case 'l': |
| 3427 | switch(string[4] | 0x20) { |
| 3428 | case 'd': |
| 3429 | switch(string[5]) { |
| 3430 | case '-': |
| 3431 | switch(string[6] | 0x20) { |
| 3432 | case 'd': |
| 3433 | switch(string[7] | 0x20) { |
| 3434 | case 'e': |
| 3435 | switch(string[8] | 0x20) { |
| 3436 | case 'p': |
| 3437 | switch(string[9] | 0x20) { |
| 3438 | case 'e': |
| 3439 | switch(string[10] | 0x20) { |
| 3440 | case 'n': |
| 3441 | switch(string[11] | 0x20) { |
| 3442 | case 'd': |
| 3443 | switch(string[12] | 0x20) { |
| 3444 | case 's': |
| 3445 | switch(string[13]) { |
| 3446 | case '-': |
| 3447 | switch(string[14] | 0x20) { |
| 3448 | case 'i': |
| 3449 | switch(string[15] | 0x20) { |
| 3450 | case 'n': |
| 3451 | switch(string[16] | 0x20) { |
| 3452 | case 'd': |
| 3453 | switch(string[17] | 0x20) { |
| 3454 | case 'e': |
| 3455 | switch(string[18] | 0x20) { |
| 3456 | case 'p': |
| 3457 | return pkgTagSection::Key::Build_Depends_Indep; |
| 3458 | } |
| 3459 | } |
| 3460 | } |
| 3461 | } |
| 3462 | } |
| 3463 | } |
| 3464 | } |
| 3465 | } |
| 3466 | } |
| 3467 | } |
| 3468 | } |
| 3469 | } |
| 3470 | } |
| 3471 | } |
| 3472 | } |
| 3473 | } |
| 3474 | } |
| 3475 | } |
| 3476 | break; |
| 3477 | case 'i': |
| 3478 | switch(string[1] | 0x20) { |
| 3479 | case 'n': |
| 3480 | switch(string[2] | 0x20) { |
| 3481 | case 's': |
| 3482 | switch(string[3] | 0x20) { |
| 3483 | case 't': |
| 3484 | switch(string[4] | 0x20) { |
| 3485 | case 'a': |
| 3486 | switch(string[5] | 0x20) { |
| 3487 | case 'l': |
| 3488 | switch(string[6] | 0x20) { |
| 3489 | case 'l': |
| 3490 | switch(string[7] | 0x20) { |
| 3491 | case 'e': |
| 3492 | switch(string[8] | 0x20) { |
| 3493 | case 'r': |
| 3494 | switch(string[9]) { |
| 3495 | case '-': |
| 3496 | switch(string[10] | 0x20) { |
| 3497 | case 'm': |
| 3498 | switch(string[11] | 0x20) { |
| 3499 | case 'e': |
| 3500 | switch(string[12] | 0x20) { |
| 3501 | case 'n': |
| 3502 | switch(string[13] | 0x20) { |
| 3503 | case 'u': |
| 3504 | switch(string[14]) { |
| 3505 | case '-': |
| 3506 | switch(string[15] | 0x20) { |
| 3507 | case 'i': |
| 3508 | switch(string[16] | 0x20) { |
| 3509 | case 't': |
| 3510 | switch(string[17] | 0x20) { |
| 3511 | case 'e': |
| 3512 | switch(string[18] | 0x20) { |
| 3513 | case 'm': |
| 3514 | return pkgTagSection::Key::Installer_Menu_Item; |
| 3515 | } |
| 3516 | } |
| 3517 | } |
| 3518 | } |
| 3519 | } |
| 3520 | } |
| 3521 | } |
| 3522 | } |
| 3523 | } |
| 3524 | } |
| 3525 | } |
| 3526 | } |
| 3527 | } |
| 3528 | } |
| 3529 | } |
| 3530 | } |
| 3531 | } |
| 3532 | } |
| 3533 | break; |
| 3534 | case 'o': |
| 3535 | switch(string[1] | 0x20) { |
| 3536 | case 'r': |
| 3537 | switch(string[2] | 0x20) { |
| 3538 | case 'i': |
| 3539 | switch(string[3] | 0x20) { |
| 3540 | case 'g': |
| 3541 | switch(string[4] | 0x20) { |
| 3542 | case 'i': |
| 3543 | switch(string[5] | 0x20) { |
| 3544 | case 'n': |
| 3545 | switch(string[6] | 0x20) { |
| 3546 | case 'a': |
| 3547 | switch(string[7] | 0x20) { |
| 3548 | case 'l': |
| 3549 | switch(string[8]) { |
| 3550 | case '-': |
| 3551 | switch(string[9] | 0x20) { |
| 3552 | case 'm': |
| 3553 | switch(string[10] | 0x20) { |
| 3554 | case 'a': |
| 3555 | switch(string[11] | 0x20) { |
| 3556 | case 'i': |
| 3557 | switch(string[12] | 0x20) { |
| 3558 | case 'n': |
| 3559 | switch(string[13] | 0x20) { |
| 3560 | case 't': |
| 3561 | switch(string[14] | 0x20) { |
| 3562 | case 'a': |
| 3563 | switch(string[15] | 0x20) { |
| 3564 | case 'i': |
| 3565 | switch(string[16] | 0x20) { |
| 3566 | case 'n': |
| 3567 | switch(string[17] | 0x20) { |
| 3568 | case 'e': |
| 3569 | switch(string[18] | 0x20) { |
| 3570 | case 'r': |
| 3571 | return pkgTagSection::Key::Original_Maintainer; |
| 3572 | } |
| 3573 | } |
| 3574 | } |
| 3575 | } |
| 3576 | } |
| 3577 | } |
| 3578 | } |
| 3579 | } |
| 3580 | } |
| 3581 | } |
| 3582 | } |
| 3583 | } |
| 3584 | } |
| 3585 | } |
| 3586 | } |
| 3587 | } |
| 3588 | } |
| 3589 | } |
| 3590 | } |
| 3591 | return pkgTagSection::Key::Unknown; |
| 3592 | } |
| 3593 | static enum pkgTagSection::Key pkgTagHash20(const char *string) |
| 3594 | { |
| 3595 | switch(string[0] | 0x20) { |
| 3596 | case 'b': |
| 3597 | switch(string[1] | 0x20) { |
| 3598 | case 'u': |
| 3599 | switch(string[2] | 0x20) { |
| 3600 | case 'i': |
| 3601 | switch(string[3] | 0x20) { |
| 3602 | case 'l': |
| 3603 | switch(string[4] | 0x20) { |
| 3604 | case 'd': |
| 3605 | switch(string[5]) { |
| 3606 | case '-': |
| 3607 | switch(string[6] | 0x20) { |
| 3608 | case 'c': |
| 3609 | switch(string[7] | 0x20) { |
| 3610 | case 'o': |
| 3611 | switch(string[8] | 0x20) { |
| 3612 | case 'n': |
| 3613 | switch(string[9] | 0x20) { |
| 3614 | case 'f': |
| 3615 | switch(string[10] | 0x20) { |
| 3616 | case 'l': |
| 3617 | switch(string[11] | 0x20) { |
| 3618 | case 'i': |
| 3619 | switch(string[12] | 0x20) { |
| 3620 | case 'c': |
| 3621 | switch(string[13] | 0x20) { |
| 3622 | case 't': |
| 3623 | switch(string[14] | 0x20) { |
| 3624 | case 's': |
| 3625 | switch(string[15]) { |
| 3626 | case '-': |
| 3627 | switch(string[16] | 0x20) { |
| 3628 | case 'a': |
| 3629 | switch(string[17] | 0x20) { |
| 3630 | case 'r': |
| 3631 | switch(string[18] | 0x20) { |
| 3632 | case 'c': |
| 3633 | switch(string[19] | 0x20) { |
| 3634 | case 'h': |
| 3635 | return pkgTagSection::Key::Build_Conflicts_Arch; |
| 3636 | } |
| 3637 | } |
| 3638 | } |
| 3639 | } |
| 3640 | } |
| 3641 | } |
| 3642 | } |
| 3643 | } |
| 3644 | } |
| 3645 | } |
| 3646 | } |
| 3647 | } |
| 3648 | } |
| 3649 | } |
| 3650 | } |
| 3651 | } |
| 3652 | } |
| 3653 | } |
| 3654 | } |
| 3655 | } |
| 3656 | return pkgTagSection::Key::Unknown; |
| 3657 | } |
| 3658 | static enum pkgTagSection::Key pkgTagHash21(const char *string) |
| 3659 | { |
| 3660 | switch(string[0] | 0x20) { |
| 3661 | case 'b': |
| 3662 | switch(string[1] | 0x20) { |
| 3663 | case 'u': |
| 3664 | switch(string[2] | 0x20) { |
| 3665 | case 'i': |
| 3666 | switch(string[3] | 0x20) { |
| 3667 | case 'l': |
| 3668 | switch(string[4] | 0x20) { |
| 3669 | case 'd': |
| 3670 | switch(string[5]) { |
| 3671 | case '-': |
| 3672 | switch(string[6] | 0x20) { |
| 3673 | case 'c': |
| 3674 | switch(string[7] | 0x20) { |
| 3675 | case 'o': |
| 3676 | switch(string[8] | 0x20) { |
| 3677 | case 'n': |
| 3678 | switch(string[9] | 0x20) { |
| 3679 | case 'f': |
| 3680 | switch(string[10] | 0x20) { |
| 3681 | case 'l': |
| 3682 | switch(string[11] | 0x20) { |
| 3683 | case 'i': |
| 3684 | switch(string[12] | 0x20) { |
| 3685 | case 'c': |
| 3686 | switch(string[13] | 0x20) { |
| 3687 | case 't': |
| 3688 | switch(string[14] | 0x20) { |
| 3689 | case 's': |
| 3690 | switch(string[15]) { |
| 3691 | case '-': |
| 3692 | switch(string[16] | 0x20) { |
| 3693 | case 'i': |
| 3694 | switch(string[17] | 0x20) { |
| 3695 | case 'n': |
| 3696 | switch(string[18] | 0x20) { |
| 3697 | case 'd': |
| 3698 | switch(string[19] | 0x20) { |
| 3699 | case 'e': |
| 3700 | switch(string[20] | 0x20) { |
| 3701 | case 'p': |
| 3702 | return pkgTagSection::Key::Build_Conflicts_Indep; |
| 3703 | } |
| 3704 | } |
| 3705 | } |
| 3706 | } |
| 3707 | } |
| 3708 | } |
| 3709 | } |
| 3710 | } |
| 3711 | } |
| 3712 | } |
| 3713 | } |
| 3714 | } |
| 3715 | } |
| 3716 | } |
| 3717 | } |
| 3718 | } |
| 3719 | } |
| 3720 | } |
| 3721 | } |
| 3722 | } |
| 3723 | } |
| 3724 | return pkgTagSection::Key::Unknown; |
| 3725 | } |
| 3726 | #endif /* TRIE_HASH_MULTI_BYTE */ |
| 3727 | enum pkgTagSection::Key pkgTagHash(const char *string, size_t length) |
| 3728 | { |
| 3729 | switch (length) { |
| 3730 | case 3: |
| 3731 | return pkgTagHash3(string); |
| 3732 | case 4: |
| 3733 | return pkgTagHash4(string); |
| 3734 | case 5: |
| 3735 | return pkgTagHash5(string); |
| 3736 | case 6: |
| 3737 | return pkgTagHash6(string); |
| 3738 | case 7: |
| 3739 | return pkgTagHash7(string); |
| 3740 | case 8: |
| 3741 | return pkgTagHash8(string); |
| 3742 | case 9: |
| 3743 | return pkgTagHash9(string); |
| 3744 | case 10: |
| 3745 | return pkgTagHash10(string); |
| 3746 | case 11: |
| 3747 | return pkgTagHash11(string); |
| 3748 | case 12: |
| 3749 | return pkgTagHash12(string); |
| 3750 | case 13: |
| 3751 | return pkgTagHash13(string); |
| 3752 | case 14: |
| 3753 | return pkgTagHash14(string); |
| 3754 | case 15: |
| 3755 | return pkgTagHash15(string); |
| 3756 | case 16: |
| 3757 | return pkgTagHash16(string); |
| 3758 | case 17: |
| 3759 | return pkgTagHash17(string); |
| 3760 | case 18: |
| 3761 | return pkgTagHash18(string); |
| 3762 | case 19: |
| 3763 | return pkgTagHash19(string); |
| 3764 | case 20: |
| 3765 | return pkgTagHash20(string); |
| 3766 | case 21: |
| 3767 | return pkgTagHash21(string); |
| 3768 | default: |
| 3769 | return pkgTagSection::Key::Unknown; |
| 3770 | } |
| 3771 | } |