/* ANSI-C code produced by gperf version 3.0.4 */
/* Command-line: gperf  */
/* Computed positions: -k'1,3' */

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

struct tag_data { gint name; guint etag; };
#include <string.h>

#define TOTAL_KEYWORDS 51
#define MIN_WORD_LENGTH 2
#define MAX_WORD_LENGTH 22
#define MIN_HASH_VALUE 4
#define MAX_HASH_VALUE 87
/* maximum key range = 84, duplicates = 0 */

#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
as_tag_hash (register const char *str, register unsigned int len)
{
  static const unsigned char asso_values[] =
    {
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 30,  0,  5,
      15, 50, 88,  0, 88, 30, 88, 50, 20,  0,
       0, 10,  5, 88, 10, 35,  5, 30, 25, 88,
      88,  0, 10, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
      88, 88, 88, 88, 88, 88
    };
  register int hval = len;

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

struct stringpool_t
  {
    char stringpool_str4[sizeof("name")];
    char stringpool_str6[sizeof("bundle")];
    char stringpool_str8[sizeof("mimetype")];
    char stringpool_str9[sizeof("mimetypes")];
    char stringpool_str12[sizeof("pkgname")];
    char stringpool_str13[sizeof("metadata")];
    char stringpool_str14[sizeof("component")];
    char stringpool_str15[sizeof("components")];
    char stringpool_str17[sizeof("caption")];
    char stringpool_str18[sizeof("category")];
    char stringpool_str19[sizeof("content_rating")];
    char stringpool_str20[sizeof("categories")];
    char stringpool_str21[sizeof("metadata_license")];
    char stringpool_str22[sizeof("content_attribute")];
    char stringpool_str23[sizeof("provides")];
    char stringpool_str24[sizeof("lang")];
    char stringpool_str25[sizeof("permission")];
    char stringpool_str26[sizeof("permissions")];
    char stringpool_str27[sizeof("compulsory_for_desktop")];
    char stringpool_str28[sizeof("project_group")];
    char stringpool_str29[sizeof("languages")];
    char stringpool_str30[sizeof("project_license")];
    char stringpool_str32[sizeof("id")];
    char stringpool_str33[sizeof("location")];
    char stringpool_str34[sizeof("veto")];
    char stringpool_str35[sizeof("vetos")];
    char stringpool_str37[sizeof("release")];
    char stringpool_str38[sizeof("releases")];
    char stringpool_str39[sizeof("arch")];
    char stringpool_str42[sizeof("summary")];
    char stringpool_str43[sizeof("priority")];
    char stringpool_str44[sizeof("icon")];
    char stringpool_str46[sizeof("translation")];
    char stringpool_str48[sizeof("architectures")];
    char stringpool_str49[sizeof("size")];
    char stringpool_str50[sizeof("value")];
    char stringpool_str53[sizeof("url")];
    char stringpool_str54[sizeof("developer_name")];
    char stringpool_str55[sizeof("screenshot")];
    char stringpool_str56[sizeof("screenshots")];
    char stringpool_str57[sizeof("keyword")];
    char stringpool_str58[sizeof("keywords")];
    char stringpool_str59[sizeof("update_contact")];
    char stringpool_str61[sizeof("description")];
    char stringpool_str62[sizeof("extends")];
    char stringpool_str63[sizeof("checksum")];
    char stringpool_str65[sizeof("image")];
    char stringpool_str69[sizeof("kudo")];
    char stringpool_str70[sizeof("kudos")];
    char stringpool_str79[sizeof("source_pkgname")];
    char stringpool_str87[sizeof("unknown")];
  };
static const struct stringpool_t stringpool_contents =
  {
    "name",
    "bundle",
    "mimetype",
    "mimetypes",
    "pkgname",
    "metadata",
    "component",
    "components",
    "caption",
    "category",
    "content_rating",
    "categories",
    "metadata_license",
    "content_attribute",
    "provides",
    "lang",
    "permission",
    "permissions",
    "compulsory_for_desktop",
    "project_group",
    "languages",
    "project_license",
    "id",
    "location",
    "veto",
    "vetos",
    "release",
    "releases",
    "arch",
    "summary",
    "priority",
    "icon",
    "translation",
    "architectures",
    "size",
    "value",
    "url",
    "developer_name",
    "screenshot",
    "screenshots",
    "keyword",
    "keywords",
    "update_contact",
    "description",
    "extends",
    "checksum",
    "image",
    "kudo",
    "kudos",
    "source_pkgname",
    "unknown"
  };
#define stringpool ((const char *) &stringpool_contents)
#ifdef __GNUC__
__inline
#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
__attribute__ ((__gnu_inline__))
#endif
#endif
const struct tag_data *
as_tag_from_gperf (register const char *str, register unsigned int len)
{
  static const struct tag_data wordlist[] =
    {
      {-1}, {-1}, {-1}, {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str4, AS_TAG_NAME},
      {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str6, AS_TAG_BUNDLE},
      {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str8, AS_TAG_MIMETYPE},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str9, AS_TAG_MIMETYPES},
      {-1}, {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str12, AS_TAG_PKGNAME},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str13, AS_TAG_METADATA},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str14, AS_TAG_COMPONENT},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str15, AS_TAG_COMPONENTS},
      {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str17, AS_TAG_CAPTION},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str18, AS_TAG_CATEGORY},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str19, AS_TAG_CONTENT_RATING},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str20, AS_TAG_CATEGORIES},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str21, AS_TAG_METADATA_LICENSE},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str22, AS_TAG_CONTENT_ATTRIBUTE},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str23, AS_TAG_PROVIDES},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str24, AS_TAG_LANG},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str25, AS_TAG_PERMISSION},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str26, AS_TAG_PERMISSIONS},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str27, AS_TAG_COMPULSORY_FOR_DESKTOP},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str28, AS_TAG_PROJECT_GROUP},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str29, AS_TAG_LANGUAGES},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str30, AS_TAG_PROJECT_LICENSE},
      {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str32, AS_TAG_ID},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str33, AS_TAG_LOCATION},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str34, AS_TAG_VETO},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str35, AS_TAG_VETOS},
      {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str37, AS_TAG_RELEASE},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str38, AS_TAG_RELEASES},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str39, AS_TAG_ARCH},
      {-1}, {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str42, AS_TAG_SUMMARY},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str43, AS_TAG_PRIORITY},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str44, AS_TAG_ICON},
      {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str46, AS_TAG_TRANSLATION},
      {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str48, AS_TAG_ARCHITECTURES},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str49, AS_TAG_SIZE},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str50, AS_TAG_VALUE},
      {-1}, {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str53, AS_TAG_URL},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str54, AS_TAG_DEVELOPER_NAME},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str55, AS_TAG_SCREENSHOT},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str56, AS_TAG_SCREENSHOTS},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str57, AS_TAG_KEYWORD},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str58, AS_TAG_KEYWORDS},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str59, AS_TAG_UPDATE_CONTACT},
      {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str61, AS_TAG_DESCRIPTION},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str62, AS_TAG_EXTENDS},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str63, AS_TAG_CHECKSUM},
      {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str65, AS_TAG_IMAGE},
      {-1}, {-1}, {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str69, AS_TAG_KUDO},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str70, AS_TAG_KUDOS},
      {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str79, AS_TAG_SOURCE_PKGNAME},
      {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
      {(int)(long)&((struct stringpool_t *)0)->stringpool_str87, AS_TAG_UNKNOWN}
    };

  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
    {
      register int key = as_tag_hash (str, len);

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

              if (*str == *s && !strcmp (str + 1, s + 1))
                return &wordlist[key];
            }
        }
    }
  return 0;
}
