/* ANSI-C code produced by gperf version 3.0.4 */
/* Command-line: /usr/bin/gperf -H imapx_hash -N imapx_tokenise_struct -L ANSI-C -o -t -k'1,$' --output-file=camel-imapx-tokenise.h camel-imapx-tokens.txt  */

#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

#line 3 "camel-imapx-tokens.txt"
struct _imapx_keyword {const gchar *name; camel_imapx_id_t id; };
struct _imapx_keyword *imapx_tokenise_struct (register const char *str, register unsigned int len);

#define TOTAL_KEYWORDS 58
#define MIN_WORD_LENGTH 2
#define MAX_WORD_LENGTH 20
#define MIN_HASH_VALUE 2
#define MAX_HASH_VALUE 96
/* maximum key range = 95, duplicates = 0 */

#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
imapx_hash (register const char *str, register unsigned int len)
{
  static unsigned char asso_values[] =
    {
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97,  0, 15, 10, 25,  0,
      20, 40, 35,  0, 97,  0, 35, 40, 15,  0,
      15, 25,  0, 45, 10, 35,  0, 97, 97, 20,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
      97, 97, 97, 97, 97, 97
    };
  return len + asso_values[(unsigned char)str[len - 1]] + asso_values[(unsigned char)str[0]];
}

#ifdef __GNUC__
__inline
#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
__attribute__ ((__gnu_inline__))
#endif
#endif
struct _imapx_keyword *
imapx_tokenise_struct (register const char *str, register unsigned int len)
{
  static struct _imapx_keyword wordlist[] =
    {
      {""}, {""},
#line 43 "camel-imapx-tokens.txt"
      {"OK",			IMAPX_OK},
      {""}, {""},
#line 31 "camel-imapx-tokens.txt"
      {"INUSE",			IMAPX_INUSE},
      {""},
#line 25 "camel-imapx-tokens.txt"
      {"EXPUNGE",		IMAPX_EXPUNGE},
#line 22 "camel-imapx-tokens.txt"
      {"ENVELOPE",		IMAPX_ENVELOPE},
#line 44 "camel-imapx-tokens.txt"
      {"OVERQUOTA",		IMAPX_OVERQUOTA},
#line 50 "camel-imapx-tokens.txt"
      {"READ-WRITE",		IMAPX_READ_WRITE},
#line 53 "camel-imapx-tokens.txt"
      {"RFC822.SIZE",		IMAPX_RFC822_SIZE},
#line 30 "camel-imapx-tokens.txt"
      {"INTERNALDATE",		IMAPX_INTERNALDATE},
#line 52 "camel-imapx-tokens.txt"
      {"RFC822.HEADER",		IMAPX_RFC822_HEADER},
      {""},
#line 6 "camel-imapx-tokens.txt"
      {"ALERT",			IMAPX_ALERT},
#line 51 "camel-imapx-tokens.txt"
      {"RECENT",			IMAPX_RECENT},
#line 39 "camel-imapx-tokens.txt"
      {"NO",			IMAPX_NO},
#line 14 "camel-imapx-tokens.txt"
      {"BYE",			IMAPX_BYE},
#line 57 "camel-imapx-tokens.txt"
      {"TRYCREATE",		IMAPX_TRYCREATE},
#line 45 "camel-imapx-tokens.txt"
      {"PARSE",			IMAPX_PARSE},
#line 54 "camel-imapx-tokens.txt"
      {"RFC822.TEXT",		IMAPX_RFC822_TEXT},
#line 38 "camel-imapx-tokens.txt"
      {"NEWNAME",		IMAPX_NEWNAME},
      {""},
#line 37 "camel-imapx-tokens.txt"
      {"NAMESPACE",		IMAPX_NAMESPACE},
      {""},
#line 15 "camel-imapx-tokens.txt"
      {"CANNOT",			IMAPX_CANNOT},
      {""},
#line 13 "camel-imapx-tokens.txt"
      {"BODYSTRUCTURE",		IMAPX_BODYSTRUCTURE},
#line 49 "camel-imapx-tokens.txt"
      {"READ-ONLY",		IMAPX_READ_ONLY},
      {""}, {""},
#line 24 "camel-imapx-tokens.txt"
      {"EXPIRED",		IMAPX_EXPIRED},
#line 63 "camel-imapx-tokens.txt"
      {"VANISHED",		IMAPX_VANISHED},
#line 10 "camel-imapx-tokens.txt"
      {"APPENDUID",		IMAPX_APPENDUID},
#line 20 "camel-imapx-tokens.txt"
      {"CORRUPTION",		IMAPX_CORRUPTION},
#line 41 "camel-imapx-tokens.txt"
      {"NONEXISTENT",		IMAPX_NONEXISTENT},
#line 18 "camel-imapx-tokens.txt"
      {"CONTACTADMIN",		IMAPX_CONTACTADMIN},
#line 26 "camel-imapx-tokens.txt"
      {"EXPUNGEISSUED",		IMAPX_EXPUNGEISSUED},
#line 12 "camel-imapx-tokens.txt"
      {"BODY",			IMAPX_BODY},
#line 16 "camel-imapx-tokens.txt"
      {"CAPABILITY",		IMAPX_CAPABILITY},
#line 21 "camel-imapx-tokens.txt"
      {"CLOSED",			IMAPX_CLOSED},
#line 19 "camel-imapx-tokens.txt"
      {"COPYUID",		IMAPX_COPYUID},
#line 11 "camel-imapx-tokens.txt"
      {"BAD",			IMAPX_BAD},
#line 9 "camel-imapx-tokens.txt"
      {"AUTHORIZATIONFAILED",	IMAPX_AUTHORIZATIONFAILED},
#line 8 "camel-imapx-tokens.txt"
      {"AUTHENTICATIONFAILED",	IMAPX_AUTHENTICATIONFAILED},
#line 60 "camel-imapx-tokens.txt"
      {"UNAVAILABLE",		IMAPX_UNAVAILABLE},
      {""},
#line 40 "camel-imapx-tokens.txt"
      {"NOMODSEQ",		IMAPX_NOMODSEQ},
#line 33 "camel-imapx-tokens.txt"
      {"LIST",			IMAPX_LIST},
#line 32 "camel-imapx-tokens.txt"
      {"LIMIT",			IMAPX_LIMIT},
#line 23 "camel-imapx-tokens.txt"
      {"EXISTS",			IMAPX_EXISTS},
#line 62 "camel-imapx-tokens.txt"
      {"UIDNEXT",		IMAPX_UIDNEXT},
      {""},
#line 34 "camel-imapx-tokens.txt"
      {"LSUB",			IMAPX_LSUB},
#line 48 "camel-imapx-tokens.txt"
      {"PRIVACYREQUIRED",	IMAPX_PRIVACYREQUIRED},
#line 61 "camel-imapx-tokens.txt"
      {"UNSEEN",			IMAPX_UNSEEN},
#line 47 "camel-imapx-tokens.txt"
      {"PREAUTH",		IMAPX_PREAUTH},
#line 7 "camel-imapx-tokens.txt"
      {"ALREADYEXISTS",		IMAPX_ALREADYEXISTS},
#line 17 "camel-imapx-tokens.txt"
      {"CLIENTBUG",		IMAPX_CLIENTBUG},
#line 27 "camel-imapx-tokens.txt"
      {"FETCH",			IMAPX_FETCH},
#line 42 "camel-imapx-tokens.txt"
      {"NOPERM",			IMAPX_NOPERM},
      {""},
#line 58 "camel-imapx-tokens.txt"
      {"UID",			IMAPX_UID},
      {""}, {""},
#line 59 "camel-imapx-tokens.txt"
      {"UIDVALIDITY",		IMAPX_UIDVALIDITY},
      {""}, {""}, {""},
#line 28 "camel-imapx-tokens.txt"
      {"FLAGS",			IMAPX_FLAGS},
#line 36 "camel-imapx-tokens.txt"
      {"MODSEQ",			IMAPX_MODSEQ},
      {""},
#line 29 "camel-imapx-tokens.txt"
      {"HIGHESTMODSEQ",		IMAPX_HIGHESTMODSEQ},
#line 46 "camel-imapx-tokens.txt"
      {"PERMANENTFLAGS",		IMAPX_PERMANENTFLAGS},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
      {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
#line 35 "camel-imapx-tokens.txt"
      {"MESSAGES",		IMAPX_MESSAGES},
#line 55 "camel-imapx-tokens.txt"
      {"SERVERBUG",		IMAPX_SERVERBUG},
      {""},
#line 56 "camel-imapx-tokens.txt"
      {"STATUS",			IMAPX_STATUS}
    };

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

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

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