gecko-dev/layout/style/nsCSSKeywords.cpp
peterl%netscape.com a21191639f added CSS2 keywords
1998-10-26 23:15:35 +00:00

861 lines
29 KiB
C++

/*
** This is a generated file, do not edit it. This file is created by
** genhash.pl
*/
#include "plstr.h"
#include "nsCSSKeywords.h"
#define TOTAL_KEYWORDS 203
#define MIN_WORD_LENGTH 1
#define MAX_WORD_LENGTH 20
#define MIN_HASH_VALUE 200
#define MAX_HASH_VALUE 1351
/* maximum key range = 1152, duplicates = 0 */
struct StaticNameTable {
char* tag;
PRInt32 id;
};
static const unsigned char kLowerLookup[256] = {
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,
32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,
48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,
64,
97,98,99,100,101,102,103,104,105,106,107,108,109,
110,111,112,113,114,115,116,117,118,119,120,121,122,
91, 92, 93, 94, 95, 96, 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,
112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,
128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,
144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,
160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,
176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,
192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,
208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,
224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,
240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255
};
#define MYLOWER(x) kLowerLookup[((x) & 0x7f)]
/**
* Map a name to an ID or -1
*/
PRInt32 nsCSSKeywords::LookupName(const char* str)
{
static unsigned short asso_values[] =
{
1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352,
1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352,
1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352,
1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352,
1352, 1352, 1352, 1352, 1352, 215, 1352, 1352, 1352, 1352,
1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352,
1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352,
1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352,
1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352, 1352,
1352, 1352, 1352, 1352, 1352, 1352, 1352, 161, 214, 235,
171, 174, 131, 255, 246, 141, 231, 69, 87, 84,
144, 30, 7, 170, 4, 194, 153, 76, 94, 197,
176, 245, 40, 1352, 1352, 1352, 1352, 1352,
};
static unsigned char lengthtable[] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 3, 0, 0, 0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, 0, 13, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 14,
};
static struct StaticNameTable wordlist[] =
{
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",},
{"top", 180},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",},
{"ltr", 97},
{"",}, {"",},
{"mm", 104},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",},
{"crop", 30},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"pt", 129},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",},
{"hz", 65},
{"",}, {"",}, {"",},
{"marker", 98},
{"",},
{"rtl", 140},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"em", 43},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"px", 130},
{"pre", 128},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"s", 142},
{"",}, {"",}, {"",}, {"",}, {"",},
{"nowrap", 116},
{"",}, {"",},
{"khz", 78},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"cm", 24},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"in", 67},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",},
{"normal", 114},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",},
{"auto", 4},
{"",}, {"",}, {"",}, {"",}, {"",},
{"super", 164},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",},
{"ms", 106},
{"",}, {"",}, {"",}, {"",},
{"pc", 125},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"lower", 91},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"pointer", 126},
{"",}, {"",},
{"rad", 131},
{"",}, {"",}, {"",},
{"low", 90},
{"",},
{"bolder", 13},
{"",}, {"",}, {"",}, {"",},
{"larger", 81},
{"slower", 152},
{"",}, {"",},
{"help", 58},
{"narrower", 108},
{"",},
{"ex", 45},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",},
{"loud", 89},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"menu", 100},
{"",},
{"move", 105},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"mix", 103},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"paragraph", 124},
{"",}, {"",},
{"avoid", 5},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"small", 153},
{"",}, {"",},
{"level", 85},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"solid", 158},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"transparent", 181},
{"",}, {"",},
{"block", 11},
{"",}, {"",},
{"scroll", 144},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"faster", 52},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"blink", 10},
{"",},
{"cross", 31},
{"",},
{"upper-roman", 187},
{"soft", 157},
{"",}, {"",}, {"",},
{"portrait", 127},
{"none", 113},
{"repeat", 133},
{"",},
{"groove", 56},
{"",}, {"",}, {"",},
{"bold", 12},
{"above", 0},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"large", 80},
{"",}, {"",}, {"",}, {"",}, {"",},
{"wider", 192},
{"",}, {"",}, {"",}, {"",}, {"",},
{"icon", 66},
{"",}, {"",},
{"sub", 163},
{"left", 82},
{"",}, {"",}, {"",}, {"",},
{"below", 8},
{"",},
{"slow", 151},
{"x-low", 197},
{"smaller", 156},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"center", 18},
{"",}, {"",},
{"no-repeat", 112},
{"bottom", 15},
{"",}, {"",}, {"",}, {"",},
{"oblique", 118},
{"",}, {"",}, {"",},
{"run-in", 141},
{"",}, {"",}, {"",},
{"caption", 17},
{"upper-alpha", 185},
{"open-quote", 120},
{"",}, {"",}, {"",}, {"",},
{"medium", 99},
{"",}, {"",}, {"",}, {"",}, {"",},
{"ridge", 136},
{"compact", 27},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"once", 119},
{"",}, {"",}, {"",},
{"outset", 121},
{"grad", 55},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",},
{"lower-greek", 93},
{"code", 25},
{"",}, {"",}, {"",}, {"",}, {"",},
{"table", 166},
{"upper-latin", 186},
{"fast", 51},
{"",},
{"fixed", 53},
{"overline", 123},
{"",}, {"",},
{"collapse", 26},
{"",},
{"right", 137},
{"outside", 122},
{"",}, {"",}, {"",},
{"wait", 191},
{"",},
{"inset", 71},
{"",},
{"text", 175},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"embed", 44},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"text-top", 177},
{"thin", 179},
{"",}, {"",}, {"",}, {"",}, {"",},
{"visible", 189},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"double", 41},
{"",}, {"",}, {"",},
{"thick", 178},
{"x-small", 199},
{"",}, {"",}, {"",}, {"",},
{"dotted", 40},
{"x-loud", 196},
{"",},
{"deg", 37},
{"",},
{"armenian", 3},
{"",}, {"",},
{"crosshair", 32},
{"",},
{"invert", 73},
{"",},
{"inline", 69},
{"show", 149},
{"",}, {"",}, {"",},
{"repeat-x", 134},
{"",}, {"",}, {"",},
{"uppercase", 188},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"default", 36},
{"",},
{"table-row-group", 174},
{"",},
{"lower-roman", 95},
{"table-footer-group", 171},
{"",}, {"",}, {"",},
{"both", 14},
{"",},
{"ultra-condensed", 182},
{"",}, {"",}, {"",}, {"",},
{"georgian", 54},
{"",},
{"higher", 62},
{"",}, {"",}, {"",}, {"",}, {"",},
{"silent", 150},
{"",},
{"hide", 60},
{"",}, {"",}, {"",},
{"lighter", 86},
{"spell-out", 159},
{"",}, {"",}, {"",}, {"",}, {"",},
{"middle", 102},
{"",},
{"relative", 132},
{"",}, {"",}, {"",},
{"x-soft", 200},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",},
{"continuous", 29},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",},
{"ne-resize", 109},
{"square", 160},
{"",}, {"",}, {"",}, {"",}, {"",},
{"center-left", 19},
{"lower-alpha", 92},
{"",}, {"",}, {"",},
{"noshade", 115},
{"",}, {"",},
{"circle", 21},
{"",}, {"",}, {"",}, {"",},
{"inside", 72},
{"",},
{"decimal", 34},
{"nw-resize", 117},
{"",},
{"underline", 184},
{"disc", 39},
{"",}, {"",},
{"list-item", 88},
{"",}, {"",}, {"",}, {"",},
{"landscape", 79},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"x-fast", 193},
{"",}, {"",}, {"",},
{"far-left", 49},
{"always", 2},
{"",}, {"",}, {"",},
{"se-resize", 145},
{"",},
{"inherit", 68},
{"",}, {"",}, {"",},
{"repeat-y", 135},
{"",}, {"",}, {"",},
{"xx-large", 201},
{"",}, {"",}, {"",},
{"italic", 74},
{"lower-latin", 94},
{"",}, {"",},
{"close-quote", 23},
{"hidden", 59},
{"",}, {"",}, {"",},
{"sw-resize", 165},
{"",},
{"table-column-group", 170},
{"capitalize", 16},
{"absolute", 1},
{"center-right", 20},
{"table-header-group", 172},
{"n-resize", 107},
{"katakana", 76},
{"",},
{"justify", 75},
{"hebrew", 57},
{"expanded", 46},
{"",}, {"",}, {"",},
{"hiragana", 63},
{"",}, {"",},
{"no-close-quote", 110},
{"",}, {"",}, {"",}, {"",},
{"rightwards", 139},
{"",},
{"separate", 148},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"far-right", 50},
{"",}, {"",}, {"",},
{"e-resize", 42},
{"",},
{"table-row", 173},
{"ultra-expanded", 183},
{"",}, {"",}, {"",},
{"katakana-iroha", 77},
{"x-slow", 198},
{"",}, {"",},
{"x-large", 195},
{"",}, {"",},
{"condensed", 28},
{"hiragana-iroha", 64},
{"leftwards", 84},
{"",},
{"extra-condensed", 47},
{"status-bar", 162},
{"s-resize", 143},
{"",}, {"",},
{"w-resize", 190},
{"",},
{"small-caption", 155},
{"",}, {"",}, {"",},
{"left-side", 83},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"lowercase", 96},
{"table-cell", 168},
{"digits", 38},
{"",},
{"xx-small", 202},
{"",},
{"small-caps", 154},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",},
{"text-bottom", 176},
{"",},
{"dashed", 33},
{"",}, {"",},
{"behind", 7},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"semi-expanded", 147},
{"",}, {"",}, {"",}, {"",},
{"static", 161},
{"high", 61},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"no-open-quote", 111},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",},
{"table-column", 169},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"table-caption", 167},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"right-side", 138},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",},
{"inline-table", 70},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"line-through", 87},
{"cjk-ideographic", 22},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",},
{"bidi-override", 9},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",},
{"baseline", 6},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",},
{"extra-expanded", 48},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",},
{"x-high", 194},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"message-box", 101},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",},
{"decimal-leading-zero", 35},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",},
{"",}, {"",}, {"",}, {"",}, {"",},
{"semi-condensed", 146},
};
if (str != NULL) {
int len = PL_strlen(str);
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) {
register int hval = len;
switch (hval)
{
default:
case 12:
hval += asso_values[MYLOWER(str[11])];
case 11:
case 10:
case 9:
case 8:
hval += asso_values[MYLOWER(str[7])];
case 7:
case 6:
hval += asso_values[MYLOWER(str[5])];
case 5:
case 4:
hval += asso_values[MYLOWER(str[3])];
case 3:
hval += asso_values[MYLOWER(str[2])];
case 2:
hval += asso_values[MYLOWER(str[1])];
case 1:
hval += asso_values[MYLOWER(str[0])];
break;
}
hval += asso_values[MYLOWER(str[len - 1])];
if (hval <= MAX_HASH_VALUE && hval >= MIN_HASH_VALUE) {
if (len == lengthtable[hval]) {
register const char *tag = wordlist[hval].tag;
/*
** While not at the end of the string, if they ever differ
** they are not equal. We know "tag" is already lower case.
*/
while ((*tag != '\0')&&(*str != '\0')) {
if (*tag != (char) MYLOWER(*str)) {
return -1;
}
tag++;
str++;
}
/*
** One of the strings has ended, if they are both ended, then they
** are equal, otherwise not.
*/
if ((*tag == '\0')&&(*str == '\0')) {
return wordlist[hval].id;
}
}
}
}
}
return -1;
}
const nsCSSKeywords::NameTableEntry nsCSSKeywords::kNameTable[] = {
{ "above", 0 },
{ "absolute", 1 },
{ "always", 2 },
{ "armenian", 3 },
{ "auto", 4 },
{ "avoid", 5 },
{ "baseline", 6 },
{ "behind", 7 },
{ "below", 8 },
{ "bidi-override", 9 },
{ "blink", 10 },
{ "block", 11 },
{ "bold", 12 },
{ "bolder", 13 },
{ "both", 14 },
{ "bottom", 15 },
{ "capitalize", 16 },
{ "caption", 17 },
{ "center", 18 },
{ "center-left", 19 },
{ "center-right", 20 },
{ "circle", 21 },
{ "cjk-ideographic", 22 },
{ "close-quote", 23 },
{ "cm", 24 },
{ "code", 25 },
{ "collapse", 26 },
{ "compact", 27 },
{ "condensed", 28 },
{ "continuous", 29 },
{ "crop", 30 },
{ "cross", 31 },
{ "crosshair", 32 },
{ "dashed", 33 },
{ "decimal", 34 },
{ "decimal-leading-zero", 35 },
{ "default", 36 },
{ "deg", 37 },
{ "digits", 38 },
{ "disc", 39 },
{ "dotted", 40 },
{ "double", 41 },
{ "e-resize", 42 },
{ "em", 43 },
{ "embed", 44 },
{ "ex", 45 },
{ "expanded", 46 },
{ "extra-condensed", 47 },
{ "extra-expanded", 48 },
{ "far-left", 49 },
{ "far-right", 50 },
{ "fast", 51 },
{ "faster", 52 },
{ "fixed", 53 },
{ "georgian", 54 },
{ "grad", 55 },
{ "groove", 56 },
{ "hebrew", 57 },
{ "help", 58 },
{ "hidden", 59 },
{ "hide", 60 },
{ "high", 61 },
{ "higher", 62 },
{ "hiragana", 63 },
{ "hiragana-iroha", 64 },
{ "hz", 65 },
{ "icon", 66 },
{ "in", 67 },
{ "inherit", 68 },
{ "inline", 69 },
{ "inline-table", 70 },
{ "inset", 71 },
{ "inside", 72 },
{ "invert", 73 },
{ "italic", 74 },
{ "justify", 75 },
{ "katakana", 76 },
{ "katakana-iroha", 77 },
{ "khz", 78 },
{ "landscape", 79 },
{ "large", 80 },
{ "larger", 81 },
{ "left", 82 },
{ "left-side", 83 },
{ "leftwards", 84 },
{ "level", 85 },
{ "lighter", 86 },
{ "line-through", 87 },
{ "list-item", 88 },
{ "loud", 89 },
{ "low", 90 },
{ "lower", 91 },
{ "lower-alpha", 92 },
{ "lower-greek", 93 },
{ "lower-latin", 94 },
{ "lower-roman", 95 },
{ "lowercase", 96 },
{ "ltr", 97 },
{ "marker", 98 },
{ "medium", 99 },
{ "menu", 100 },
{ "message-box", 101 },
{ "middle", 102 },
{ "mix", 103 },
{ "mm", 104 },
{ "move", 105 },
{ "ms", 106 },
{ "n-resize", 107 },
{ "narrower", 108 },
{ "ne-resize", 109 },
{ "no-close-quote", 110 },
{ "no-open-quote", 111 },
{ "no-repeat", 112 },
{ "none", 113 },
{ "normal", 114 },
{ "noshade", 115 },
{ "nowrap", 116 },
{ "nw-resize", 117 },
{ "oblique", 118 },
{ "once", 119 },
{ "open-quote", 120 },
{ "outset", 121 },
{ "outside", 122 },
{ "overline", 123 },
{ "paragraph", 124 },
{ "pc", 125 },
{ "pointer", 126 },
{ "portrait", 127 },
{ "pre", 128 },
{ "pt", 129 },
{ "px", 130 },
{ "rad", 131 },
{ "relative", 132 },
{ "repeat", 133 },
{ "repeat-x", 134 },
{ "repeat-y", 135 },
{ "ridge", 136 },
{ "right", 137 },
{ "right-side", 138 },
{ "rightwards", 139 },
{ "rtl", 140 },
{ "run-in", 141 },
{ "s", 142 },
{ "s-resize", 143 },
{ "scroll", 144 },
{ "se-resize", 145 },
{ "semi-condensed", 146 },
{ "semi-expanded", 147 },
{ "separate", 148 },
{ "show", 149 },
{ "silent", 150 },
{ "slow", 151 },
{ "slower", 152 },
{ "small", 153 },
{ "small-caps", 154 },
{ "small-caption", 155 },
{ "smaller", 156 },
{ "soft", 157 },
{ "solid", 158 },
{ "spell-out", 159 },
{ "square", 160 },
{ "static", 161 },
{ "status-bar", 162 },
{ "sub", 163 },
{ "super", 164 },
{ "sw-resize", 165 },
{ "table", 166 },
{ "table-caption", 167 },
{ "table-cell", 168 },
{ "table-column", 169 },
{ "table-column-group", 170 },
{ "table-footer-group", 171 },
{ "table-header-group", 172 },
{ "table-row", 173 },
{ "table-row-group", 174 },
{ "text", 175 },
{ "text-bottom", 176 },
{ "text-top", 177 },
{ "thick", 178 },
{ "thin", 179 },
{ "top", 180 },
{ "transparent", 181 },
{ "ultra-condensed", 182 },
{ "ultra-expanded", 183 },
{ "underline", 184 },
{ "upper-alpha", 185 },
{ "upper-latin", 186 },
{ "upper-roman", 187 },
{ "uppercase", 188 },
{ "visible", 189 },
{ "w-resize", 190 },
{ "wait", 191 },
{ "wider", 192 },
{ "x-fast", 193 },
{ "x-high", 194 },
{ "x-large", 195 },
{ "x-loud", 196 },
{ "x-low", 197 },
{ "x-slow", 198 },
{ "x-small", 199 },
{ "x-soft", 200 },
{ "xx-large", 201 },
{ "xx-small", 202 },
};