/* ANSI-C code produced by gperf version 3.1 */
/* Command-line: /usr/pkg/bin/gperf --output-file libappstream-glib/as-tag-private.h ../libappstream-glib/as-tag.gperf  */
/* Computed positions: -k'1,5' */

#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-gperf@gnu.org>."
#endif

#line 8 "../libappstream-glib/as-tag.gperf"
struct tag_data { gint name; guint etag; };
#include <string.h>

#define TOTAL_KEYWORDS 71
#define MIN_WORD_LENGTH 1
#define MAX_WORD_LENGTH 22
#define MIN_HASH_VALUE 2
#define MAX_HASH_VALUE 136
/* maximum key range = 135, duplicates = 0 */

#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
_as_tag_hash (register const char *str, register size_t len)
{
  static const unsigned char asso_values[] =
    {
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137,  35,  35,   0,
       75,   0,  20,   0, 137,   0, 137,  65,  25,  45,
       30,  40,  30, 137,  15,   5,  35,  60,  80, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
      137, 137, 137, 137, 137, 137
    };
  register unsigned int hval = len;

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

struct stringpool_t
  {
    char stringpool_str2[sizeof("id")];
    char stringpool_str4[sizeof("icon")];
    char stringpool_str5[sizeof("image")];
    char stringpool_str7[sizeof("caption")];
    char stringpool_str8[sizeof("category")];
    char stringpool_str9[sizeof("size")];
    char stringpool_str10[sizeof("categories")];
    char stringpool_str13[sizeof("suggests")];
    char stringpool_str14[sizeof("content_rating")];
    char stringpool_str15[sizeof("screenshot")];
    char stringpool_str16[sizeof("screenshots")];
    char stringpool_str17[sizeof("content_attribute")];
    char stringpool_str19[sizeof("source_pkgname")];
    char stringpool_str21[sizeof("review")];
    char stringpool_str22[sizeof("reviews")];
    char stringpool_str23[sizeof("requires")];
    char stringpool_str24[sizeof("font")];
    char stringpool_str26[sizeof("reviewer_id")];
    char stringpool_str27[sizeof("li")];
    char stringpool_str28[sizeof("reviewer_name")];
    char stringpool_str29[sizeof("lang")];
    char stringpool_str31[sizeof("p")];
    char stringpool_str34[sizeof("name")];
    char stringpool_str35[sizeof("launchable")];
    char stringpool_str37[sizeof("extends")];
    char stringpool_str38[sizeof("provides")];
    char stringpool_str39[sizeof("arch")];
    char stringpool_str40[sizeof("permission")];
    char stringpool_str41[sizeof("permissions")];
    char stringpool_str42[sizeof("ol")];
    char stringpool_str43[sizeof("project_group")];
    char stringpool_str44[sizeof("agreement")];
    char stringpool_str45[sizeof("project_license")];
    char stringpool_str46[sizeof("custom")];
    char stringpool_str47[sizeof("summary")];
    char stringpool_str48[sizeof("architectures")];
    char stringpool_str49[sizeof("component")];
    char stringpool_str50[sizeof("components")];
    char stringpool_str51[sizeof("translation")];
    char stringpool_str52[sizeof("agreement_section")];
    char stringpool_str53[sizeof("priority")];
    char stringpool_str56[sizeof("binary")];
    char stringpool_str57[sizeof("release")];
    char stringpool_str58[sizeof("releases")];
    char stringpool_str62[sizeof("ul")];
    char stringpool_str63[sizeof("url")];
    char stringpool_str66[sizeof("bundle")];
    char stringpool_str67[sizeof("library")];
    char stringpool_str68[sizeof("location")];
    char stringpool_str69[sizeof("kudo")];
    char stringpool_str72[sizeof("pkgname")];
    char stringpool_str73[sizeof("checksum")];
    char stringpool_str75[sizeof("kudos")];
    char stringpool_str78[sizeof("modalias")];
    char stringpool_str79[sizeof("dbus")];
    char stringpool_str82[sizeof("compulsory_for_desktop")];
    char stringpool_str84[sizeof("veto")];
    char stringpool_str85[sizeof("value")];
    char stringpool_str87[sizeof("version")];
    char stringpool_str88[sizeof("mimetype")];
    char stringpool_str89[sizeof("mimetypes")];
    char stringpool_str90[sizeof("vetos")];
    char stringpool_str94[sizeof("languages")];
    char stringpool_str101[sizeof("description")];
    char stringpool_str107[sizeof("unknown")];
    char stringpool_str109[sizeof("update_contact")];
    char stringpool_str112[sizeof("keyword")];
    char stringpool_str113[sizeof("keywords")];
    char stringpool_str114[sizeof("developer_name")];
    char stringpool_str128[sizeof("metadata")];
    char stringpool_str136[sizeof("metadata_license")];
  };
static const struct stringpool_t stringpool_contents =
  {
    "id",
    "icon",
    "image",
    "caption",
    "category",
    "size",
    "categories",
    "suggests",
    "content_rating",
    "screenshot",
    "screenshots",
    "content_attribute",
    "source_pkgname",
    "review",
    "reviews",
    "requires",
    "font",
    "reviewer_id",
    "li",
    "reviewer_name",
    "lang",
    "p",
    "name",
    "launchable",
    "extends",
    "provides",
    "arch",
    "permission",
    "permissions",
    "ol",
    "project_group",
    "agreement",
    "project_license",
    "custom",
    "summary",
    "architectures",
    "component",
    "components",
    "translation",
    "agreement_section",
    "priority",
    "binary",
    "release",
    "releases",
    "ul",
    "url",
    "bundle",
    "library",
    "location",
    "kudo",
    "pkgname",
    "checksum",
    "kudos",
    "modalias",
    "dbus",
    "compulsory_for_desktop",
    "veto",
    "value",
    "version",
    "mimetype",
    "mimetypes",
    "vetos",
    "languages",
    "description",
    "unknown",
    "update_contact",
    "keyword",
    "keywords",
    "developer_name",
    "metadata",
    "metadata_license"
  };
#define stringpool ((const char *) &stringpool_contents)
const struct tag_data *
_as_tag_from_gperf (register const char *str, register size_t len)
{
  static const struct tag_data wordlist[] =
    {
      {-1}, {-1},
#line 13 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str2, AS_TAG_ID},
      {-1},
#line 19 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str4, AS_TAG_ICON},
#line 31 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str5, AS_TAG_IMAGE},
      {-1},
#line 34 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str7, AS_TAG_CAPTION},
#line 21 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str8, AS_TAG_CATEGORY},
#line 57 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str9, AS_TAG_SIZE},
#line 20 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str10, AS_TAG_CATEGORIES},
      {-1}, {-1},
#line 66 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str13, AS_TAG_SUGGESTS},
#line 59 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str14, AS_TAG_CONTENT_RATING},
#line 28 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str15, AS_TAG_SCREENSHOT},
#line 29 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str16, AS_TAG_SCREENSHOTS},
#line 60 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str17, AS_TAG_CONTENT_ATTRIBUTE},
      {-1},
#line 49 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str19, AS_TAG_SOURCE_PKGNAME},
      {-1},
#line 63 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str21, AS_TAG_REVIEW},
#line 62 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str22, AS_TAG_REVIEWS},
#line 67 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str23, AS_TAG_REQUIRES},
#line 77 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str24, AS_TAG_FONT},
      {-1},
#line 65 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str26, AS_TAG_REVIEWER_ID},
#line 73 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str27, AS_TAG_LI},
#line 64 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str28, AS_TAG_REVIEWER_NAME},
#line 36 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str29, AS_TAG_LANG},
      {-1},
#line 72 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str31, AS_TAG_P},
      {-1}, {-1},
#line 15 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str34, AS_TAG_NAME},
#line 69 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str35, AS_TAG_LAUNCHABLE},
      {-1},
#line 45 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str37, AS_TAG_EXTENDS},
#line 44 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str38, AS_TAG_PROVIDES},
#line 42 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str39, AS_TAG_ARCH},
#line 54 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str40, AS_TAG_PERMISSION},
#line 53 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str41, AS_TAG_PERMISSIONS},
#line 75 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str42, AS_TAG_OL},
#line 26 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str43, AS_TAG_PROJECT_GROUP},
#line 70 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str44, AS_TAG_AGREEMENT},
#line 27 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str45, AS_TAG_PROJECT_LICENSE},
#line 68 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str46, AS_TAG_CUSTOM},
#line 16 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str47, AS_TAG_SUMMARY},
#line 41 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str48, AS_TAG_ARCHITECTURES},
#line 12 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str49, AS_TAG_COMPONENT},
#line 11 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str50, AS_TAG_COMPONENTS},
#line 58 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str51, AS_TAG_TRANSLATION},
#line 71 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str52, AS_TAG_AGREEMENT_SECTION},
#line 33 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str53, AS_TAG_PRIORITY},
      {-1}, {-1},
#line 76 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str56, AS_TAG_BINARY},
#line 40 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str57, AS_TAG_RELEASE},
#line 39 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str58, AS_TAG_RELEASES},
      {-1}, {-1}, {-1},
#line 74 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str62, AS_TAG_UL},
#line 18 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str63, AS_TAG_URL},
      {-1}, {-1},
#line 52 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str66, AS_TAG_BUNDLE},
#line 80 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str67, AS_TAG_LIBRARY},
#line 55 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str68, AS_TAG_LOCATION},
#line 48 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str69, AS_TAG_KUDO},
      {-1}, {-1},
#line 14 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str72, AS_TAG_PKGNAME},
#line 56 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str73, AS_TAG_CHECKSUM},
      {-1},
#line 47 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str75, AS_TAG_KUDOS},
      {-1}, {-1},
#line 79 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str78, AS_TAG_MODALIAS},
#line 78 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str79, AS_TAG_DBUS},
      {-1}, {-1},
#line 32 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str82, AS_TAG_COMPULSORY_FOR_DESKTOP},
      {-1},
#line 51 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str84, AS_TAG_VETO},
#line 38 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str85, AS_TAG_VALUE},
      {-1},
#line 61 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str87, AS_TAG_VERSION},
#line 25 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str88, AS_TAG_MIMETYPE},
#line 24 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str89, AS_TAG_MIMETYPES},
#line 50 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str90, AS_TAG_VETOS},
      {-1}, {-1}, {-1},
#line 35 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str94, AS_TAG_LANGUAGES},
      {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
#line 17 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str101, AS_TAG_DESCRIPTION},
      {-1}, {-1}, {-1}, {-1}, {-1},
#line 10 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str107, AS_TAG_UNKNOWN},
      {-1},
#line 30 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str109, AS_TAG_UPDATE_CONTACT},
      {-1}, {-1},
#line 23 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str112, AS_TAG_KEYWORD},
#line 22 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str113, AS_TAG_KEYWORDS},
#line 46 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str114, AS_TAG_DEVELOPER_NAME},
      {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
      {-1}, {-1}, {-1}, {-1},
#line 37 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str128, AS_TAG_METADATA},
      {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
#line 43 "../libappstream-glib/as-tag.gperf"
      {(int)(size_t)&((struct stringpool_t *)0)->stringpool_str136, AS_TAG_METADATA_LICENSE}
    };

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

      if (key <= MAX_HASH_VALUE)
        {
          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;
}
