зеркало из https://github.com/mozilla/pjs.git
869 строки
27 KiB
C++
869 строки
27 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 205
|
|
#define MIN_WORD_LENGTH 1
|
|
#define MAX_WORD_LENGTH 20
|
|
#define MIN_HASH_VALUE 112
|
|
#define MAX_HASH_VALUE 1361
|
|
/* maximum key range = 1250, 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[] =
|
|
{
|
|
1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362,
|
|
1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362,
|
|
1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362,
|
|
1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362,
|
|
1362, 1362, 1362, 1362, 1362, 242, 1362, 1362, 1362, 1362,
|
|
1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362,
|
|
1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362,
|
|
1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362,
|
|
1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362,
|
|
1362, 1362, 1362, 1362, 1362, 1362, 1362, 124, 38, 48,
|
|
149, 53, 246, 88, 208, 134, 75, 119, 226, 175,
|
|
101, 190, 14, 103, 188, 166, 80, 163, 104, 47,
|
|
148, 101, 153, 1362, 1362, 1362, 1362, 1362
|
|
};
|
|
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,
|
|
2, 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 0, 13
|
|
};
|
|
static struct StaticNameTable wordlist[] =
|
|
{
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""},
|
|
{"pc", 127},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"pt", 131},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"top", 182},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"pre", 130},
|
|
{"px", 132},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""},
|
|
{"s", 144},
|
|
{""}, {""}, {""}, {""},
|
|
{"in", 69},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""},
|
|
{"ex", 47},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""},
|
|
{"deg", 39},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"cm", 26},
|
|
{""}, {""}, {""}, {""},
|
|
{"em", 45},
|
|
{""}, {""},
|
|
{"sub", 165},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"text", 177},
|
|
{""}, {""}, {""},
|
|
{"once", 121},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"crop", 32},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""},
|
|
{"wait", 193},
|
|
{""}, {""}, {""},
|
|
{"embed", 46},
|
|
{"repeat", 135},
|
|
{""}, {""},
|
|
{"text-top", 179},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""},
|
|
{"code", 27},
|
|
{""}, {""}, {""}, {""},
|
|
{"none", 115},
|
|
{""}, {""}, {""}, {""}, {""}, {""},
|
|
{"ms", 108},
|
|
{""}, {""}, {""},
|
|
{"low", 92},
|
|
{"above", 2},
|
|
{""},
|
|
{"hz", 67},
|
|
{""}, {""},
|
|
{"help", 60},
|
|
{"uppercase", 190},
|
|
{""}, {""}, {""}, {""}, {""},
|
|
{"table", 168},
|
|
{"mm", 106},
|
|
{""}, {""},
|
|
{"circle", 23},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"inset", 73},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"disc", 41},
|
|
{""}, {""},
|
|
{"static", 163},
|
|
{""}, {""}, {""}, {""}, {""},
|
|
{"invert", 75},
|
|
{"below", 10},
|
|
{"nowrap", 118},
|
|
{""},
|
|
{"compact", 29},
|
|
{""},
|
|
{"caption", 19},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""},
|
|
{"wider", 194},
|
|
{""},
|
|
{"icon", 68},
|
|
{"move", 107},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"hebrew", 59},
|
|
{""},
|
|
{"super", 166},
|
|
{""}, {""}, {""}, {""},
|
|
{"thick", 180},
|
|
{"separate", 150},
|
|
{""}, {""},
|
|
{"repeat-y", 137},
|
|
{""}, {""},
|
|
{"hide", 62},
|
|
{""}, {""}, {""}, {""}, {""}, {""},
|
|
{"mix", 105},
|
|
{""}, {""}, {""}, {""},
|
|
{"rad", 133},
|
|
{""}, {""}, {""},
|
|
{"ridge", 138},
|
|
{""}, {""}, {""}, {""}, {""},
|
|
{"blink", 12},
|
|
{""}, {""},
|
|
{"block", 13},
|
|
{""},
|
|
{"thin", 181},
|
|
{"baseline", 8},
|
|
{""}, {""}, {""}, {""}, {""}, {""},
|
|
{"khz", 80},
|
|
{""}, {""}, {""}, {""},
|
|
{"capitalize", 18},
|
|
{""}, {""}, {""}, {""}, {""},
|
|
{"inside", 74},
|
|
{""}, {""}, {""}, {""},
|
|
{"double", 43},
|
|
{""}, {""}, {""}, {""}, {""}, {""},
|
|
{"menu", 102},
|
|
{""}, {""},
|
|
{"show", 151},
|
|
{""},
|
|
{"center", 20},
|
|
{"text-bottom", 178},
|
|
{"italic", 76},
|
|
{"level", 87},
|
|
{"square", 162},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""},
|
|
{"slow", 153},
|
|
{""}, {""}, {""},
|
|
{"large", 82},
|
|
{"ltr", 99},
|
|
{""},
|
|
{"pointer", 128},
|
|
{""},
|
|
{"left", 84},
|
|
{""}, {""},
|
|
{"repeat-x", 136},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"fast", 53},
|
|
{""},
|
|
{"grad", 57},
|
|
{"right", 139},
|
|
{""}, {""},
|
|
{"avoid", 7},
|
|
{"inline", 71},
|
|
{""},
|
|
{"lower", 93},
|
|
{""}, {""}, {""}, {""},
|
|
{"open-quote", 122},
|
|
{""}, {""},
|
|
{"inherit", 70},
|
|
{""},
|
|
{"middle", 104},
|
|
{""}, {""},
|
|
{"upper-latin", 188},
|
|
{"rtl", 142},
|
|
{"landscape", 81},
|
|
{""}, {""}, {""},
|
|
{"both", 16},
|
|
{""}, {""}, {""}, {""}, {""}, {""},
|
|
{"fixed", 55},
|
|
{""},
|
|
{"behind", 9},
|
|
{""}, {""}, {""},
|
|
{"decimal", 36},
|
|
{""}, {""},
|
|
{"bottom", 17},
|
|
{"silent", 152},
|
|
{""}, {""}, {""}, {""}, {""},
|
|
{"auto", 6},
|
|
{""}, {""}, {""}, {""},
|
|
{"bold", 14},
|
|
{""}, {""}, {""}, {""}, {""}, {""},
|
|
{"cross", 33},
|
|
{"portrait", 129},
|
|
{"outset", 123},
|
|
{"soft", 159},
|
|
{""},
|
|
{"groove", 58},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"w-resize", 192},
|
|
{""}, {""}, {""}, {""},
|
|
{"overline", 125},
|
|
{"e-resize", 44},
|
|
{""},
|
|
{"transparent", 183},
|
|
{"center-left", 21},
|
|
{"upper-roman", 189},
|
|
{""}, {""}, {""},
|
|
{"lowercase", 98},
|
|
{""},
|
|
{"expanded", 48},
|
|
{"absolute", 3},
|
|
{""}, {""}, {""}, {""},
|
|
{"condensed", 30},
|
|
{""}, {""},
|
|
{"dotted", 42},
|
|
{""}, {""}, {""}, {""},
|
|
{"outside", 124},
|
|
{""},
|
|
{"semi-expanded", 149},
|
|
{"oblique", 120},
|
|
{""}, {""}, {""}, {""}, {""}, {""},
|
|
{"collapse", 28},
|
|
{""}, {""}, {""}, {""}, {""},
|
|
{"visible", 191},
|
|
{""}, {""},
|
|
{"katakana", 78},
|
|
{""}, {""},
|
|
{"center-right", 22},
|
|
{""},
|
|
{"n-resize", 109},
|
|
{""}, {""}, {""}, {""}, {""},
|
|
{"justify", 77},
|
|
{"relative", 134},
|
|
{""}, {""}, {""},
|
|
{"digits", 40},
|
|
{""}, {""},
|
|
{"inline-table", 72},
|
|
{"upper-alpha", 187},
|
|
{"hidden", 61},
|
|
{""},
|
|
{"high", 63},
|
|
{""},
|
|
{"status-bar", 164},
|
|
{""}, {""},
|
|
{"underline", 186},
|
|
{""}, {""},
|
|
{"x-low", 199},
|
|
{"always", 4},
|
|
{""}, {""}, {""},
|
|
{"georgian", 56},
|
|
{""}, {""}, {""},
|
|
{"medium", 101},
|
|
{""},
|
|
{"paragraph", 126},
|
|
{"solid", 160},
|
|
{""}, {""}, {""},
|
|
{"noshade", 117},
|
|
{""}, {""}, {""}, {""}, {""}, {""},
|
|
{"loud", 91},
|
|
{"x-slow", 200},
|
|
{""},
|
|
{"armenian", 5},
|
|
{"default", 38},
|
|
{"continuous", 31},
|
|
{""},
|
|
{"x-large", 197},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"s-resize", 145},
|
|
{""}, {""},
|
|
{"cjk-ideographic", 24},
|
|
{""},
|
|
{"run-in", 143},
|
|
{""},
|
|
{"lighter", 88},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"x-soft", 202},
|
|
{"bidi-override", 11},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"small", 155},
|
|
{""}, {""}, {""},
|
|
{"x-fast", 195},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""},
|
|
{"smaller", 158},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"no-repeat", 114},
|
|
{""}, {""},
|
|
{"dashed", 35},
|
|
{""},
|
|
{"spell-out", 161},
|
|
{""}, {""},
|
|
{"table-row", 175},
|
|
{""}, {""},
|
|
{"nw-resize", 119},
|
|
{""}, {""}, {""}, {""}, {""},
|
|
{"ne-resize", 111},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""},
|
|
{"list-item", 90},
|
|
{""}, {""}, {""}, {""},
|
|
{"left-side", 85},
|
|
{"table-header-group", 174},
|
|
{""},
|
|
{"bolder", 15},
|
|
{""}, {""},
|
|
{"marker", 100},
|
|
{""}, {""}, {""}, {""}, {""},
|
|
{"lower-latin", 96},
|
|
{""}, {""}, {""},
|
|
{"faster", 54},
|
|
{"table-cell", 170},
|
|
{""}, {""}, {""}, {""}, {""}, {""},
|
|
{"semi-condensed", 148},
|
|
{""},
|
|
{"larger", 83},
|
|
{""}, {""},
|
|
{"slower", 154},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"higher", 64},
|
|
{"far-left", 51},
|
|
{""},
|
|
{"katakana-iroha", 79},
|
|
{"sw-resize", 167},
|
|
{""}, {""}, {""}, {""},
|
|
{"rightwards", 141},
|
|
{"se-resize", 147},
|
|
{""},
|
|
{"narrower", 110},
|
|
{"table-column-group", 172},
|
|
{"hiragana", 65},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""},
|
|
{"message-box", 103},
|
|
{"scroll", 146},
|
|
{""}, {""},
|
|
{"leftwards", 86},
|
|
{""}, {""}, {""},
|
|
{"right-side", 140},
|
|
{""}, {""},
|
|
{"lower-roman", 97},
|
|
{""}, {""}, {""}, {""}, {""},
|
|
{"xx-large", 203},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"lower-greek", 95},
|
|
{""}, {""}, {""}, {""},
|
|
{"no-close-quote", 112},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"close-quote", 25},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"decimal-leading-zero", 37},
|
|
{"x-loud", 198},
|
|
{""},
|
|
{"normal", 116},
|
|
{""},
|
|
{"table-column", 171},
|
|
{""}, {""},
|
|
{"table-row-group", 176},
|
|
{""},
|
|
{"lower-alpha", 94},
|
|
{"table-footer-group", 173},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""},
|
|
{"crosshair", 34},
|
|
{""}, {""}, {""}, {""}, {""}, {""},
|
|
{"table-caption", 169},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""},
|
|
{"x-high", 196},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"no-open-quote", 113},
|
|
{""},
|
|
{"extra-condensed", 49},
|
|
{""}, {""}, {""}, {""},
|
|
{"extra-expanded", 50},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""},
|
|
{"-moz-bg-inset", 0},
|
|
{""}, {""}, {""},
|
|
{"x-small", 201},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""},
|
|
{"line-through", 89},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""},
|
|
{"hiragana-iroha", 66},
|
|
{"far-right", 52},
|
|
{""},
|
|
{"small-caps", 156},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"xx-small", 204},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""},
|
|
{"-moz-bg-outset", 1},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
|
|
{"ultra-condensed", 184},
|
|
{""}, {""}, {""}, {""},
|
|
{"ultra-expanded", 185},
|
|
{""},
|
|
{"small-caption", 157}
|
|
};
|
|
|
|
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[] = {
|
|
{ "-moz-bg-inset", 0 },
|
|
{ "-moz-bg-outset", 1 },
|
|
{ "above", 2 },
|
|
{ "absolute", 3 },
|
|
{ "always", 4 },
|
|
{ "armenian", 5 },
|
|
{ "auto", 6 },
|
|
{ "avoid", 7 },
|
|
{ "baseline", 8 },
|
|
{ "behind", 9 },
|
|
{ "below", 10 },
|
|
{ "bidi-override", 11 },
|
|
{ "blink", 12 },
|
|
{ "block", 13 },
|
|
{ "bold", 14 },
|
|
{ "bolder", 15 },
|
|
{ "both", 16 },
|
|
{ "bottom", 17 },
|
|
{ "capitalize", 18 },
|
|
{ "caption", 19 },
|
|
{ "center", 20 },
|
|
{ "center-left", 21 },
|
|
{ "center-right", 22 },
|
|
{ "circle", 23 },
|
|
{ "cjk-ideographic", 24 },
|
|
{ "close-quote", 25 },
|
|
{ "cm", 26 },
|
|
{ "code", 27 },
|
|
{ "collapse", 28 },
|
|
{ "compact", 29 },
|
|
{ "condensed", 30 },
|
|
{ "continuous", 31 },
|
|
{ "crop", 32 },
|
|
{ "cross", 33 },
|
|
{ "crosshair", 34 },
|
|
{ "dashed", 35 },
|
|
{ "decimal", 36 },
|
|
{ "decimal-leading-zero", 37 },
|
|
{ "default", 38 },
|
|
{ "deg", 39 },
|
|
{ "digits", 40 },
|
|
{ "disc", 41 },
|
|
{ "dotted", 42 },
|
|
{ "double", 43 },
|
|
{ "e-resize", 44 },
|
|
{ "em", 45 },
|
|
{ "embed", 46 },
|
|
{ "ex", 47 },
|
|
{ "expanded", 48 },
|
|
{ "extra-condensed", 49 },
|
|
{ "extra-expanded", 50 },
|
|
{ "far-left", 51 },
|
|
{ "far-right", 52 },
|
|
{ "fast", 53 },
|
|
{ "faster", 54 },
|
|
{ "fixed", 55 },
|
|
{ "georgian", 56 },
|
|
{ "grad", 57 },
|
|
{ "groove", 58 },
|
|
{ "hebrew", 59 },
|
|
{ "help", 60 },
|
|
{ "hidden", 61 },
|
|
{ "hide", 62 },
|
|
{ "high", 63 },
|
|
{ "higher", 64 },
|
|
{ "hiragana", 65 },
|
|
{ "hiragana-iroha", 66 },
|
|
{ "hz", 67 },
|
|
{ "icon", 68 },
|
|
{ "in", 69 },
|
|
{ "inherit", 70 },
|
|
{ "inline", 71 },
|
|
{ "inline-table", 72 },
|
|
{ "inset", 73 },
|
|
{ "inside", 74 },
|
|
{ "invert", 75 },
|
|
{ "italic", 76 },
|
|
{ "justify", 77 },
|
|
{ "katakana", 78 },
|
|
{ "katakana-iroha", 79 },
|
|
{ "khz", 80 },
|
|
{ "landscape", 81 },
|
|
{ "large", 82 },
|
|
{ "larger", 83 },
|
|
{ "left", 84 },
|
|
{ "left-side", 85 },
|
|
{ "leftwards", 86 },
|
|
{ "level", 87 },
|
|
{ "lighter", 88 },
|
|
{ "line-through", 89 },
|
|
{ "list-item", 90 },
|
|
{ "loud", 91 },
|
|
{ "low", 92 },
|
|
{ "lower", 93 },
|
|
{ "lower-alpha", 94 },
|
|
{ "lower-greek", 95 },
|
|
{ "lower-latin", 96 },
|
|
{ "lower-roman", 97 },
|
|
{ "lowercase", 98 },
|
|
{ "ltr", 99 },
|
|
{ "marker", 100 },
|
|
{ "medium", 101 },
|
|
{ "menu", 102 },
|
|
{ "message-box", 103 },
|
|
{ "middle", 104 },
|
|
{ "mix", 105 },
|
|
{ "mm", 106 },
|
|
{ "move", 107 },
|
|
{ "ms", 108 },
|
|
{ "n-resize", 109 },
|
|
{ "narrower", 110 },
|
|
{ "ne-resize", 111 },
|
|
{ "no-close-quote", 112 },
|
|
{ "no-open-quote", 113 },
|
|
{ "no-repeat", 114 },
|
|
{ "none", 115 },
|
|
{ "normal", 116 },
|
|
{ "noshade", 117 },
|
|
{ "nowrap", 118 },
|
|
{ "nw-resize", 119 },
|
|
{ "oblique", 120 },
|
|
{ "once", 121 },
|
|
{ "open-quote", 122 },
|
|
{ "outset", 123 },
|
|
{ "outside", 124 },
|
|
{ "overline", 125 },
|
|
{ "paragraph", 126 },
|
|
{ "pc", 127 },
|
|
{ "pointer", 128 },
|
|
{ "portrait", 129 },
|
|
{ "pre", 130 },
|
|
{ "pt", 131 },
|
|
{ "px", 132 },
|
|
{ "rad", 133 },
|
|
{ "relative", 134 },
|
|
{ "repeat", 135 },
|
|
{ "repeat-x", 136 },
|
|
{ "repeat-y", 137 },
|
|
{ "ridge", 138 },
|
|
{ "right", 139 },
|
|
{ "right-side", 140 },
|
|
{ "rightwards", 141 },
|
|
{ "rtl", 142 },
|
|
{ "run-in", 143 },
|
|
{ "s", 144 },
|
|
{ "s-resize", 145 },
|
|
{ "scroll", 146 },
|
|
{ "se-resize", 147 },
|
|
{ "semi-condensed", 148 },
|
|
{ "semi-expanded", 149 },
|
|
{ "separate", 150 },
|
|
{ "show", 151 },
|
|
{ "silent", 152 },
|
|
{ "slow", 153 },
|
|
{ "slower", 154 },
|
|
{ "small", 155 },
|
|
{ "small-caps", 156 },
|
|
{ "small-caption", 157 },
|
|
{ "smaller", 158 },
|
|
{ "soft", 159 },
|
|
{ "solid", 160 },
|
|
{ "spell-out", 161 },
|
|
{ "square", 162 },
|
|
{ "static", 163 },
|
|
{ "status-bar", 164 },
|
|
{ "sub", 165 },
|
|
{ "super", 166 },
|
|
{ "sw-resize", 167 },
|
|
{ "table", 168 },
|
|
{ "table-caption", 169 },
|
|
{ "table-cell", 170 },
|
|
{ "table-column", 171 },
|
|
{ "table-column-group", 172 },
|
|
{ "table-footer-group", 173 },
|
|
{ "table-header-group", 174 },
|
|
{ "table-row", 175 },
|
|
{ "table-row-group", 176 },
|
|
{ "text", 177 },
|
|
{ "text-bottom", 178 },
|
|
{ "text-top", 179 },
|
|
{ "thick", 180 },
|
|
{ "thin", 181 },
|
|
{ "top", 182 },
|
|
{ "transparent", 183 },
|
|
{ "ultra-condensed", 184 },
|
|
{ "ultra-expanded", 185 },
|
|
{ "underline", 186 },
|
|
{ "upper-alpha", 187 },
|
|
{ "upper-latin", 188 },
|
|
{ "upper-roman", 189 },
|
|
{ "uppercase", 190 },
|
|
{ "visible", 191 },
|
|
{ "w-resize", 192 },
|
|
{ "wait", 193 },
|
|
{ "wider", 194 },
|
|
{ "x-fast", 195 },
|
|
{ "x-high", 196 },
|
|
{ "x-large", 197 },
|
|
{ "x-loud", 198 },
|
|
{ "x-low", 199 },
|
|
{ "x-slow", 200 },
|
|
{ "x-small", 201 },
|
|
{ "x-soft", 202 },
|
|
{ "xx-large", 203 },
|
|
{ "xx-small", 204 },
|
|
};
|