cssvalues.c   [plain text]


/* ANSI-C code produced by gperf version 2.7.2 */
/* Command-line: gperf -L ANSI-C -E -C -n -o -t -k '*' -NfindValue -Hhash_val -Wwordlist_value -D cssvalues.gperf  */
/* This file is automatically generated from cssvalues.in by makevalues, do not edit */
/* Copyright 1999 W. Bastian */
#include "cssvalues.h"
struct css_value {
    const char *name;
    int id;
};
/* maximum key range = 1430, duplicates = 1 */

#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
hash_val (register const char *str, register unsigned int len)
{
  static const unsigned short asso_values[] =
    {
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430,    0, 1430, 1430,    0,    5,
        10,   15,   20,   25,   30,   35,   40,    0, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430,    0,  188,   34,
        78,  170,  185,  230,   55,    0,    5,   34,   20,   79,
        80,   35,   14,  195,   25,    5,    0,  160,  213,  240,
       210,  149,  240, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430,
      1430, 1430, 1430, 1430, 1430, 1430
    };
  register int hval = 0;

  switch (len)
    {
      default:
      case 21:
        hval += asso_values[(unsigned char)str[20]];
      case 20:
        hval += asso_values[(unsigned char)str[19]];
      case 19:
        hval += asso_values[(unsigned char)str[18]];
      case 18:
        hval += asso_values[(unsigned char)str[17]];
      case 17:
        hval += asso_values[(unsigned char)str[16]];
      case 16:
        hval += asso_values[(unsigned char)str[15]];
      case 15:
        hval += asso_values[(unsigned char)str[14]];
      case 14:
        hval += asso_values[(unsigned char)str[13]];
      case 13:
        hval += asso_values[(unsigned char)str[12]];
      case 12:
        hval += asso_values[(unsigned char)str[11]];
      case 11:
        hval += asso_values[(unsigned char)str[10]];
      case 10:
        hval += asso_values[(unsigned char)str[9]];
      case 9:
        hval += asso_values[(unsigned char)str[8]];
      case 8:
        hval += asso_values[(unsigned char)str[7]];
      case 7:
        hval += asso_values[(unsigned char)str[6]];
      case 6:
        hval += asso_values[(unsigned char)str[5]];
      case 5:
        hval += asso_values[(unsigned char)str[4]];
      case 4:
        hval += asso_values[(unsigned char)str[3]];
      case 3:
        hval += asso_values[(unsigned char)str[2]];
      case 2:
        hval += asso_values[(unsigned char)str[1]];
      case 1:
        hval += asso_values[(unsigned char)str[0]];
        break;
    }
  return hval;
}

#ifdef __GNUC__
__inline
#endif
const struct css_value *
findValue (register const char *str, register unsigned int len)
{
  enum
    {
      TOTAL_KEYWORDS = 228,
      MIN_WORD_LENGTH = 3,
      MAX_WORD_LENGTH = 21,
      MIN_HASH_VALUE = 0,
      MAX_HASH_VALUE = 1429
    };

  static const struct css_value wordlist_value[] =
    {
      {"900", CSS_VAL_900},
      {"100", CSS_VAL_100},
      {"200", CSS_VAL_200},
      {"300", CSS_VAL_300},
      {"400", CSS_VAL_400},
      {"500", CSS_VAL_500},
      {"600", CSS_VAL_600},
      {"700", CSS_VAL_700},
      {"static", CSS_VAL_STATIC},
      {"800", CSS_VAL_800},
      {"ltr", CSS_VAL_LTR},
      {"rtl", CSS_VAL_RTL},
      {"top", CSS_VAL_TOP},
      {"italic", CSS_VAL_ITALIC},
      {"portrait", CSS_VAL_PORTRAIT},
      {"cross", CSS_VAL_CROSS},
      {"crop", CSS_VAL_CROP},
      {"disc", CSS_VAL_DISC},
      {"thick", CSS_VAL_THICK},
      {"small", CSS_VAL_SMALL},
      {"thin", CSS_VAL_THIN},
      {"solid", CSS_VAL_SOLID},
      {"scroll", CSS_VAL_SCROLL},
      {"katakana", CSS_VAL_KATAKANA},
      {"icon", CSS_VAL_ICON},
      {"caption", CSS_VAL_CAPTION},
      {"small-caps", CSS_VAL_SMALL_CAPS},
      {"crosshair", CSS_VAL_CROSSHAIR},
      {"teal", CSS_VAL_TEAL},
      {"auto", CSS_VAL_AUTO},
      {"compact", CSS_VAL_COMPACT},
      {"pre", CSS_VAL_PRE},
      {"hand", CSS_VAL_HAND},
      {"normal", CSS_VAL_NORMAL},
      {"wait", CSS_VAL_WAIT},
      {"maroon", CSS_VAL_MAROON},
      {"inset", CSS_VAL_INSET},
      {"help", CSS_VAL_HELP},
      {"katakana-iroha", CSS_VAL_KATAKANA_IROHA},
      {"lime", CSS_VAL_LIME},
      {"red", CSS_VAL_RED},
      {"list-item", CSS_VAL_LIST_ITEM},
      {"black", CSS_VAL_BLACK},
      {"both", CSS_VAL_BOTH},
      {"circle", CSS_VAL_CIRCLE},
      {"small-caption", CSS_VAL_SMALL_CAPTION},
      {"mix", CSS_VAL_MIX},
      {"loud", CSS_VAL_LOUD},
      {"collapse", CSS_VAL_COLLAPSE},
      {"hide", CSS_VAL_HIDE},
      {"right", CSS_VAL_RIGHT},
      {"block", CSS_VAL_BLOCK},
      {"smaller", CSS_VAL_SMALLER},
      {"bold", CSS_VAL_BOLD},
      {"blink", CSS_VAL_BLINK},
      {"pointer", CSS_VAL_POINTER},
      {"avoid", CSS_VAL_AVOID},
      {"inherit", CSS_VAL_INHERIT},
      {"inside", CSS_VAL_INSIDE},
      {"x-small", CSS_VAL_X_SMALL},
      {"show", CSS_VAL_SHOW},
      {"bottom", CSS_VAL_BOTTOM},
      {"run-in", CSS_VAL_RUN_IN},
      {"inline", CSS_VAL_INLINE},
      {"scrollbar", CSS_VAL_SCROLLBAR},
      {"sub", CSS_VAL_SUB},
      {"aqua", CSS_VAL_AQUA},
      {"dotted", CSS_VAL_DOTTED},
      {"none", CSS_VAL_NONE},
      {"outset", CSS_VAL_OUTSET},
      {"super", CSS_VAL_SUPER},
      {"left", CSS_VAL_LEFT},
      {"table", CSS_VAL_TABLE},
      {"repeat", CSS_VAL_REPEAT},
      {"text", CSS_VAL_TEXT},
      {"decimal", CSS_VAL_DECIMAL},
      {"status-bar", CSS_VAL_STATUS_BAR},
      {"separate", CSS_VAL_SEPARATE},
      {"serif", CSS_VAL_SERIF},
      {"dashed", CSS_VAL_DASHED},
      {"hiragana", CSS_VAL_HIRAGANA},
      {"nowrap", CSS_VAL_NOWRAP},
      {"transparent", CSS_VAL_TRANSPARENT},
      {"landscape", CSS_VAL_LANDSCAPE},
      {"purple", CSS_VAL_PURPLE},
      {"gray", CSS_VAL_GRAY},
      {"always", CSS_VAL_ALWAYS},
      {"fantasy", CSS_VAL_FANTASY},
      {"middle", CSS_VAL_MIDDLE},
      {"text-top", CSS_VAL_TEXT_TOP},
      {"silver", CSS_VAL_SILVER},
      {"armenian", CSS_VAL_ARMENIAN},
      {"olive", CSS_VAL_OLIVE},
      {"fuchsia", CSS_VAL_FUCHSIA},
      {"navy", CSS_VAL_NAVY},
      {"large", CSS_VAL_LARGE},
      {"outside", CSS_VAL_OUTSIDE},
      {"monospace", CSS_VAL_MONOSPACE},
      {"hidden", CSS_VAL_HIDDEN},
      {"white", CSS_VAL_WHITE},
      {"larger", CSS_VAL_LARGER},
      {"upper-alpha", CSS_VAL_UPPER_ALPHA},
      {"sans-serif", CSS_VAL_SANS_SERIF},
      {"capitalize", CSS_VAL_CAPITALIZE},
      {"center", CSS_VAL_CENTER},
      {"upper-latin", CSS_VAL_UPPER_LATIN},
      {"invert", CSS_VAL_INVERT},
      {"menu", CSS_VAL_MENU},
      {"lower", CSS_VAL_LOWER},
      {"no-repeat", CSS_VAL_NO_REPEAT},
      {"move", CSS_VAL_MOVE},
      {"lighter", CSS_VAL_LIGHTER},
      {"ridge", CSS_VAL_RIDGE},
      {"justify", CSS_VAL_JUSTIFY},
      {"hiragana-iroha", CSS_VAL_HIRAGANA_IROHA},
      {"progress", CSS_VAL_PROGRESS},
      {"wider", CSS_VAL_WIDER},
      {"bolder", CSS_VAL_BOLDER},
      {"repeat-y", CSS_VAL_REPEAT_Y},
      {"higher", CSS_VAL_HIGHER},
      {"blue", CSS_VAL_BLUE},
      {"-konq-auto", CSS_VAL__KONQ_AUTO},
      {"orange", CSS_VAL_ORANGE},
      {"table-caption", CSS_VAL_TABLE_CAPTION},
      {"captiontext", CSS_VAL_CAPTIONTEXT},
      {"xx-small", CSS_VAL_XX_SMALL},
      {"square", CSS_VAL_SQUARE},
      {"medium", CSS_VAL_MEDIUM},
      {"grey", CSS_VAL_GREY},
      {"absolute", CSS_VAL_ABSOLUTE},
      {"lower-alpha", CSS_VAL_LOWER_ALPHA},
      {"activecaption", CSS_VAL_ACTIVECAPTION},
      {"-konq-normal", CSS_VAL__KONQ_NORMAL},
      {"appworkspace", CSS_VAL_APPWORKSPACE},
      {"repeat-x", CSS_VAL_REPEAT_X},
      {"lower-latin", CSS_VAL_LOWER_LATIN},
      {"uppercase", CSS_VAL_UPPERCASE},
      {"level", CSS_VAL_LEVEL},
      {"visible", CSS_VAL_VISIBLE},
      {"relative", CSS_VAL_RELATIVE},
      {"narrower", CSS_VAL_NARROWER},
      {"upper-roman", CSS_VAL_UPPER_ROMAN},
      {"above", CSS_VAL_ABOVE},
      {"cursive", CSS_VAL_CURSIVE},
      {"default", CSS_VAL_DEFAULT},
      {"s-resize", CSS_VAL_S_RESIZE},
      {"table-cell", CSS_VAL_TABLE_CELL},
      {"baseline", CSS_VAL_BASELINE},
      {"yellow", CSS_VAL_YELLOW},
      {"fixed", CSS_VAL_FIXED},
      {"highlight", CSS_VAL_HIGHLIGHT},
      {"double", CSS_VAL_DOUBLE},
      {"below", CSS_VAL_BELOW},
      {"x-large", CSS_VAL_X_LARGE},
      {"inactivecaption", CSS_VAL_INACTIVECAPTION},
      {"inline-block", CSS_VAL_INLINE_BLOCK},
      {"window", CSS_VAL_WINDOW},
      {"green", CSS_VAL_GREEN},
      {"table-row", CSS_VAL_TABLE_ROW},
      {"infotext", CSS_VAL_INFOTEXT},
      {"embed", CSS_VAL_EMBED},
      {"n-resize", CSS_VAL_N_RESIZE},
      {"lowercase", CSS_VAL_LOWERCASE},
      {"groove", CSS_VAL_GROOVE},
      {"lower-roman", CSS_VAL_LOWER_ROMAN},
      {"overline", CSS_VAL_OVERLINE},
      {"cjk-ideographic", CSS_VAL_CJK_IDEOGRAPHIC},
      {"text-bottom", CSS_VAL_TEXT_BOTTOM},
      {"-konq-text", CSS_VAL__KONQ_TEXT},
      {"inline-table", CSS_VAL_INLINE_TABLE},
      {"condensed", CSS_VAL_CONDENSED},
      {"-konq-nowrap", CSS_VAL__KONQ_NOWRAP},
      {"oblique", CSS_VAL_OBLIQUE},
      {"georgian", CSS_VAL_GEORGIAN},
      {"e-resize", CSS_VAL_E_RESIZE},
      {"underline", CSS_VAL_UNDERLINE},
      {"graytext", CSS_VAL_GRAYTEXT},
      {"se-resize", CSS_VAL_SE_RESIZE},
      {"table-column", CSS_VAL_TABLE_COLUMN},
      {"-konq-body", CSS_VAL__KONQ_BODY},
      {"expanded", CSS_VAL_EXPANDED},
      {"-konq-center", CSS_VAL__KONQ_CENTER},
      {"close-quote", CSS_VAL_CLOSE_QUOTE},
      {"line-through", CSS_VAL_LINE_THROUGH},
      {"buttontext", CSS_VAL_BUTTONTEXT},
      {"hebrew", CSS_VAL_HEBREW},
      {"w-resize", CSS_VAL_W_RESIZE},
      {"buttonface", CSS_VAL_BUTTONFACE},
      {"sw-resize", CSS_VAL_SW_RESIZE},
      {"open-quote", CSS_VAL_OPEN_QUOTE},
      {"ne-resize", CSS_VAL_NE_RESIZE},
      {"background", CSS_VAL_BACKGROUND},
      {"xx-large", CSS_VAL_XX_LARGE},
      {"menutext", CSS_VAL_MENUTEXT},
      {"buttonshadow", CSS_VAL_BUTTONSHADOW},
      {"threedface", CSS_VAL_THREEDFACE},
      {"threedshadow", CSS_VAL_THREEDSHADOW},
      {"nw-resize", CSS_VAL_NW_RESIZE},
      {"ultra-condensed", CSS_VAL_ULTRA_CONDENSED},
      {"activeborder", CSS_VAL_ACTIVEBORDER},
      {"no-close-quote", CSS_VAL_NO_CLOSE_QUOTE},
      {"-konq-around-floats", CSS_VAL__KONQ_AROUND_FLOATS},
      {"no-open-quote", CSS_VAL_NO_OPEN_QUOTE},
      {"bidi-override", CSS_VAL_BIDI_OVERRIDE},
      {"semi-condensed", CSS_VAL_SEMI_CONDENSED},
      {"ultra-expanded", CSS_VAL_ULTRA_EXPANDED},
      {"inactiveborder", CSS_VAL_INACTIVEBORDER},
      {"highlighttext", CSS_VAL_HIGHLIGHTTEXT},
      {"inactivecaptiontext", CSS_VAL_INACTIVECAPTIONTEXT},
      {"threeddarkshadow", CSS_VAL_THREEDDARKSHADOW},
      {"windowtext", CSS_VAL_WINDOWTEXT},
      {"semi-expanded", CSS_VAL_SEMI_EXPANDED},
      {"message-box", CSS_VAL_MESSAGE_BOX},
      {"buttonhighlight", CSS_VAL_BUTTONHIGHLIGHT},
      {"lower-greek", CSS_VAL_LOWER_GREEK},
      {"windowframe", CSS_VAL_WINDOWFRAME},
      {"extra-condensed", CSS_VAL_EXTRA_CONDENSED},
      {"table-row-group", CSS_VAL_TABLE_ROW_GROUP},
      {"threedhighlight", CSS_VAL_THREEDHIGHLIGHT},
      {"infobackground", CSS_VAL_INFOBACKGROUND},
      {"extra-expanded", CSS_VAL_EXTRA_EXPANDED},
      {"threedlightshadow", CSS_VAL_THREEDLIGHTSHADOW},
      {"table-column-group", CSS_VAL_TABLE_COLUMN_GROUP},
      {"table-footer-group", CSS_VAL_TABLE_FOOTER_GROUP},
      {"table-header-group", CSS_VAL_TABLE_HEADER_GROUP},
      {"-konq-baseline-middle", CSS_VAL__KONQ_BASELINE_MIDDLE},
      {"-konq-xxx-large", CSS_VAL__KONQ_XXX_LARGE},
      {"decimal-leading-zero", CSS_VAL_DECIMAL_LEADING_ZERO}
    };

  static const short lookup[] =
    {
         0,   -1,   -1,   -1,   -1,    1,   -1,   -1,
        -1,   -1,    2,   -1,   -1,   -1,   -1,    3,
        -1,   -1,   -1,   -1,    4,   -1,   -1,   -1,
        -1,    5,   -1,   -1,   -1,   -1,    6,   -1,
        -1,   -1,   -1,    7,   -1,   -1,   -1,    8,
         9,   -1,   -1,   -1,   -1, -275, -218,   -2,
        -1,   12,   -1,   -1,   -1,   -1,   13,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   14,   -1,   -1,   -1,   -1,
        15,   -1,   -1,   -1,   16,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   17,   -1,   -1,
        -1,   -1,   -1,   18,   19,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   20,
        -1,   -1,   21,   22,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   23,   24,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   25,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   26,   -1,   -1,   -1,   -1,   -1,   -1,
        27,   -1,   -1,   -1,   -1,   -1,   28,   -1,
        -1,   -1,   -1,   29,   30,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   31,   -1,   -1,   -1,   32,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   33,
        34,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   35,   36,
        -1,   -1,   -1,   37,   -1,   -1,   -1,   38,
        -1,   -1,   -1,   -1,   -1,   39,   -1,   -1,
        -1,   40,   41,   -1,   42,   -1,   43,   -1,
        -1,   -1,   -1,   44,   -1,   -1,   -1,   45,
        -1,   46,   -1,   -1,   -1,   47,   -1,   -1,
        -1,   -1,   48,   -1,   -1,   -1,   -1,   49,
        -1,   -1,   -1,   -1,   -1,   -1,   50,   51,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   52,
        -1,   53,   54,   -1,   55,   -1,   56,   -1,
        -1,   -1,   57,   -1,   -1,   58,   59,   60,
        -1,   61,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   62,   -1,   -1,   -1,   -1,   63,   -1,
        64,   65,   -1,   66,   -1,   -1,   -1,   -1,
        -1,   67,   -1,   -1,   -1,   68,   -1,   -1,
        -1,   -1,   69,   -1,   -1,   -1,   70,   71,
        -1,   -1,   72,   73,   74,   75,   -1,   76,
        77,   78,   79,   -1,   -1,   -1,   80,   -1,
        -1,   -1,   81,   -1,   -1,   -1,   -1,   82,
        -1,   83,   -1,   84,   85,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   86,   -1,
        -1,   -1,   -1,   87,   -1,   -1,   -1,   -1,
        -1,   88,   -1,   -1,   -1,   89,   -1,   -1,
        -1,   90,   91,   -1,   -1,   -1,   92,   93,
        -1,   -1,   94,   -1,   -1,   95,   -1,   -1,
        96,   -1,   -1,   -1,   97,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   98,   -1,   -1,
        -1,   99,   -1,   -1,   -1,   -1,  100,   -1,
       101,   -1,   -1,  102,   -1,   -1,  103,  104,
        -1,   -1,   -1,  105,   -1,   -1,   -1,   -1,
       106,  107,  108,   -1,   -1,   -1,  109,   -1,
        -1,  110,   -1,   -1,  111,   -1,   -1,  112,
       113,  114,   -1,   -1,   -1,  115,   -1,   -1,
        -1,  116,   -1,   -1,  117,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
       118,   -1,   -1,   -1,   -1,   -1,   -1,  119,
        -1,   -1,  120,  121,  122,  123,   -1,  124,
       125,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,  126,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,  127,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,  128,   -1,
        -1,   -1,  129,  130,  131,   -1,   -1,  132,
        -1,  133,   -1,   -1,   -1,  134,  135,   -1,
       136,  137,   -1,   -1,  138,   -1,  139,   -1,
       140,   -1,  141,   -1,   -1,   -1,  142,  143,
        -1,   -1,   -1,   -1,   -1,  144,   -1,  145,
        -1,   -1,   -1,   -1,   -1,   -1,  146,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,  147,  148,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,  149,   -1,  150,   -1,   -1,
        -1,   -1,   -1,  151,   -1,  152,   -1,  153,
        -1,   -1,   -1,   -1,  154,  155,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,  156,   -1,  157,   -1,   -1,  158,   -1,
       159,   -1,   -1,   -1,   -1,  160,   -1,   -1,
        -1,   -1,  161,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,  162,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,  163,  164,   -1,   -1,
        -1,  165,  166,   -1,   -1,  167,   -1,   -1,
        -1,   -1,   -1,   -1,  168,   -1,   -1,   -1,
       169,   -1,  170,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,  171,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
       172,   -1,  173,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,  174,   -1,   -1,  175,
       176,  177,  178,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,  179,   -1,   -1,   -1,   -1,   -1,
       180,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,  181,
       182,   -1,   -1,   -1,   -1,   -1,  183,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,  184,   -1,   -1,   -1,   -1,
       185,   -1,  186,   -1,  187,   -1,   -1,  188,
        -1,   -1,   -1,  189,  190,   -1,   -1,   -1,
       191,  192,   -1,   -1,   -1,  193,   -1,   -1,
        -1,   -1,   -1,   -1,  194,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,  195,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,  196,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,  197,   -1,   -1,   -1,   -1,  198,
        -1,   -1,  199,  200,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,  201,
        -1,   -1,   -1,   -1,   -1,   -1,  202,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,  203,   -1,
       204,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,  205,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,  206,   -1,   -1,   -1,   -1,   -1,
        -1,  207,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
       208,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
       209,   -1,   -1,   -1,   -1,  210,  211,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,  212,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,  213,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,  214,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,  215,   -1,   -1,  216,
        -1,   -1,   -1,   -1,   -1,   -1,  217,  218,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,  219,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,  220,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
       221,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,  222,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,  223,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,  224,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,  225,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,  226,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,  227
    };

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

      if (key <= MAX_HASH_VALUE && key >= 0)
        {
          register int index = lookup[key];

          if (index >= 0)
            {
              register const char *s = wordlist_value[index].name;

              if (*str == *s && !strcmp (str + 1, s + 1))
                return &wordlist_value[index];
            }
          else if (index < -TOTAL_KEYWORDS)
            {
              register int offset = - 1 - TOTAL_KEYWORDS - index;
              register const struct css_value *wordptr = &wordlist_value[TOTAL_KEYWORDS + lookup[offset]];
              register const struct css_value *wordendptr = wordptr + -lookup[offset + 1];

              while (wordptr < wordendptr)
                {
                  register const char *s = wordptr->name;

                  if (*str == *s && !strcmp (str + 1, s + 1))
                    return wordptr;
                  wordptr++;
                }
            }
        }
    }
  return 0;
}
static const char * const valueList[] = {
"",
"inherit", 
"none", 
"hidden", 
"dotted", 
"dashed", 
"double", 
"solid", 
"outset", 
"inset", 
"groove", 
"ridge", 
"caption", 
"icon", 
"menu", 
"message-box", 
"small-caption", 
"status-bar", 
"italic", 
"oblique", 
"small-caps", 
"normal", 
"bold", 
"bolder", 
"lighter", 
"100", 
"200", 
"300", 
"400", 
"500", 
"600", 
"700", 
"800", 
"900", 
"xx-small", 
"x-small", 
"small", 
"medium", 
"large", 
"x-large", 
"xx-large", 
"-konq-xxx-large", 
"smaller", 
"larger", 
"wider", 
"narrower", 
"ultra-condensed", 
"extra-condensed", 
"condensed", 
"semi-condensed", 
"semi-expanded", 
"expanded", 
"extra-expanded", 
"ultra-expanded", 
"serif", 
"sans-serif", 
"cursive", 
"fantasy", 
"monospace", 
"-konq-body", 
"transparent", 
"aqua", 
"black", 
"blue", 
"fuchsia", 
"gray", 
"green", 
"lime", 
"maroon", 
"navy", 
"olive", 
"orange", 
"purple", 
"red", 
"silver", 
"teal", 
"white", 
"yellow", 
"activeborder", 
"activecaption", 
"appworkspace", 
"background", 
"buttonface", 
"buttonhighlight", 
"buttonshadow", 
"buttontext", 
"captiontext", 
"graytext", 
"highlight", 
"highlighttext", 
"inactiveborder", 
"inactivecaption", 
"inactivecaptiontext", 
"infobackground", 
"infotext", 
"menutext", 
"scrollbar", 
"threeddarkshadow", 
"threedface", 
"threedhighlight", 
"threedlightshadow", 
"threedshadow", 
"window", 
"windowframe", 
"windowtext", 
"grey", 
"-konq-text", 
"repeat", 
"repeat-x", 
"repeat-y", 
"no-repeat", 
"baseline", 
"middle", 
"sub", 
"super", 
"text-top", 
"text-bottom", 
"top", 
"bottom", 
"-konq-baseline-middle", 
"-konq-auto", 
"left", 
"right", 
"center", 
"justify", 
"-konq-center", 
"outside", 
"inside", 
"disc", 
"circle", 
"square", 
"decimal", 
"decimal-leading-zero", 
"lower-roman", 
"upper-roman", 
"lower-greek", 
"lower-alpha", 
"lower-latin", 
"upper-alpha", 
"upper-latin", 
"hebrew", 
"armenian", 
"georgian", 
"cjk-ideographic", 
"hiragana", 
"katakana", 
"hiragana-iroha", 
"katakana-iroha", 
"inline", 
"block", 
"list-item", 
"run-in", 
"compact", 
"inline-block", 
"table", 
"inline-table", 
"table-row-group", 
"table-header-group", 
"table-footer-group", 
"table-row", 
"table-column-group", 
"table-column", 
"table-cell", 
"table-caption", 
"auto", 
"crosshair", 
"default", 
"pointer", 
"progress", 
"move", 
"e-resize", 
"ne-resize", 
"nw-resize", 
"n-resize", 
"se-resize", 
"sw-resize", 
"s-resize", 
"w-resize", 
"text", 
"wait", 
"help", 
"ltr", 
"rtl", 
"capitalize", 
"uppercase", 
"lowercase", 
"visible", 
"collapse", 
"above", 
"absolute", 
"always", 
"avoid", 
"below", 
"bidi-override", 
"blink", 
"both", 
"close-quote", 
"crop", 
"cross", 
"embed", 
"fixed", 
"hand", 
"hide", 
"higher", 
"invert", 
"landscape", 
"level", 
"line-through", 
"loud", 
"lower", 
"mix", 
"no-close-quote", 
"no-open-quote", 
"nowrap", 
"open-quote", 
"overline", 
"portrait", 
"pre", 
"relative", 
"scroll", 
"separate", 
"show", 
"static", 
"thick", 
"thin", 
"underline", 
"-konq-nowrap", 
"-konq-normal", 
"-konq-around-floats", 
    0
};
DOMString getValueName(unsigned short id)
{
    if(id >= CSS_VAL_TOTAL || id == 0)
      return DOMString();
    else
      return DOMString(valueList[id]);
};