📄 cssproperties.c
字号:
/* ANSI-C code produced by gperf version 3.0.1 *//* Command-line: gperf -a -L ANSI-C -E -C -c -o -t -k '*' -NfindProp -Hhash_prop -Wwordlist_prop -D -s 2 cssproperties.gperf */#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 1 "cssproperties.gperf"/* This file is automatically generated from cssproperties.in by makeprop, do not edit *//* Copyright 1999 W. Bastian */#include "cssproperties.h"#line 6 "cssproperties.gperf"struct props { const char *name; int id;};static const struct props * findProp (register const char *str, register unsigned int len);/* maximum key range = 350, duplicates = 0 */#ifdef __GNUC____inline#else#ifdef __cplusplusinline#endif#endifstatic unsigned inthash_prop (register const char *str, register unsigned int len){ static const unsigned short asso_values[] = { 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 0, 353, 353, 353, 353, 353, 0, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 30, 0, 5, 5, 10, 45, 0, 0, 0, 353, 60, 0, 0, 15, 0, 0, 5, 0, 20, 0, 115, 80, 100, 25, 45, 55, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353 }; register int hval = len; switch (hval) { default: hval += asso_values[(unsigned char)str[31]]; /*FALLTHROUGH*/ case 31: hval += asso_values[(unsigned char)str[30]]; /*FALLTHROUGH*/ case 30: hval += asso_values[(unsigned char)str[29]]; /*FALLTHROUGH*/ case 29: hval += asso_values[(unsigned char)str[28]]; /*FALLTHROUGH*/ case 28: hval += asso_values[(unsigned char)str[27]]; /*FALLTHROUGH*/ case 27: hval += asso_values[(unsigned char)str[26]]; /*FALLTHROUGH*/ case 26: hval += asso_values[(unsigned char)str[25]]; /*FALLTHROUGH*/ case 25: hval += asso_values[(unsigned char)str[24]]; /*FALLTHROUGH*/ case 24: hval += asso_values[(unsigned char)str[23]]; /*FALLTHROUGH*/ case 23: hval += asso_values[(unsigned char)str[22]]; /*FALLTHROUGH*/ case 22: hval += asso_values[(unsigned char)str[21]]; /*FALLTHROUGH*/ case 21: hval += asso_values[(unsigned char)str[20]]; /*FALLTHROUGH*/ case 20: hval += asso_values[(unsigned char)str[19]]; /*FALLTHROUGH*/ case 19: hval += asso_values[(unsigned char)str[18]]; /*FALLTHROUGH*/ case 18: hval += asso_values[(unsigned char)str[17]]; /*FALLTHROUGH*/ case 17: hval += asso_values[(unsigned char)str[16]]; /*FALLTHROUGH*/ case 16: hval += asso_values[(unsigned char)str[15]]; /*FALLTHROUGH*/ case 15: hval += asso_values[(unsigned char)str[14]]; /*FALLTHROUGH*/ case 14: hval += asso_values[(unsigned char)str[13]]; /*FALLTHROUGH*/ case 13: hval += asso_values[(unsigned char)str[12]]; /*FALLTHROUGH*/ case 12: hval += asso_values[(unsigned char)str[11]]; /*FALLTHROUGH*/ case 11: hval += asso_values[(unsigned char)str[10]]; /*FALLTHROUGH*/ case 10: hval += asso_values[(unsigned char)str[9]]; /*FALLTHROUGH*/ case 9: hval += asso_values[(unsigned char)str[8]]; /*FALLTHROUGH*/ case 8: hval += asso_values[(unsigned char)str[7]]; /*FALLTHROUGH*/ case 7: hval += asso_values[(unsigned char)str[6]]; /*FALLTHROUGH*/ case 6: hval += asso_values[(unsigned char)str[5]]; /*FALLTHROUGH*/ case 5: hval += asso_values[(unsigned char)str[4]]; /*FALLTHROUGH*/ case 4: hval += asso_values[(unsigned char)str[3]]; /*FALLTHROUGH*/ case 3: hval += asso_values[(unsigned char)str[2]]; /*FALLTHROUGH*/ case 2: hval += asso_values[(unsigned char)str[1]]; /*FALLTHROUGH*/ case 1: hval += asso_values[(unsigned char)str[0]]; break; } return hval;}#ifdef __GNUC____inline#endifconst struct props *findProp (register const char *str, register unsigned int len){ enum { TOTAL_KEYWORDS = 122, MIN_WORD_LENGTH = 3, MAX_WORD_LENGTH = 32, MIN_HASH_VALUE = 3, MAX_HASH_VALUE = 352 }; static const struct props wordlist_prop[] = {#line 102 "cssproperties.gperf" {"top", CSS_PROP_TOP},#line 94 "cssproperties.gperf" {"right", CSS_PROP_RIGHT},#line 37 "cssproperties.gperf" {"bottom", CSS_PROP_BOTTOM},#line 40 "cssproperties.gperf" {"clip", CSS_PROP_CLIP},#line 41 "cssproperties.gperf" {"color", CSS_PROP_COLOR},#line 55 "cssproperties.gperf" {"height", CSS_PROP_HEIGHT},#line 112 "cssproperties.gperf" {"border", CSS_PROP_BORDER},#line 115 "cssproperties.gperf" {"border-top", CSS_PROP_BORDER_TOP},#line 116 "cssproperties.gperf" {"border-right", CSS_PROP_BORDER_RIGHT},#line 117 "cssproperties.gperf" {"border-bottom", CSS_PROP_BORDER_BOTTOM},#line 113 "cssproperties.gperf" {"border-color", CSS_PROP_BORDER_COLOR},#line 75 "cssproperties.gperf" {"min-height", CSS_PROP_MIN_HEIGHT},#line 25 "cssproperties.gperf" {"border-top-color", CSS_PROP_BORDER_TOP_COLOR},#line 26 "cssproperties.gperf" {"border-right-color", CSS_PROP_BORDER_RIGHT_COLOR},#line 27 "cssproperties.gperf" {"border-bottom-color", CSS_PROP_BORDER_BOTTOM_COLOR},#line 92 "cssproperties.gperf" {"position", CSS_PROP_POSITION},#line 46 "cssproperties.gperf" {"direction", CSS_PROP_DIRECTION},#line 58 "cssproperties.gperf" {"line-height", CSS_PROP_LINE_HEIGHT},#line 39 "cssproperties.gperf" {"clear", CSS_PROP_CLEAR},#line 123 "cssproperties.gperf" {"margin", CSS_PROP_MARGIN},#line 42 "cssproperties.gperf" {"content", CSS_PROP_CONTENT},#line 62 "cssproperties.gperf" {"margin-top", CSS_PROP_MARGIN_TOP},#line 63 "cssproperties.gperf" {"margin-right", CSS_PROP_MARGIN_RIGHT},#line 64 "cssproperties.gperf" {"margin-bottom", CSS_PROP_MARGIN_BOTTOM},#line 56 "cssproperties.gperf" {"left", CSS_PROP_LEFT},#line 125 "cssproperties.gperf" {"padding", CSS_PROP_PADDING},#line 121 "cssproperties.gperf" {"font", CSS_PROP_FONT},#line 84 "cssproperties.gperf" {"padding-top", CSS_PROP_PADDING_TOP},#line 85 "cssproperties.gperf" {"padding-right", CSS_PROP_PADDING_RIGHT},#line 86 "cssproperties.gperf" {"padding-bottom", CSS_PROP_PADDING_BOTTOM},#line 77 "cssproperties.gperf" {"orphans", CSS_PROP_ORPHANS},#line 73 "cssproperties.gperf" {"max-height", CSS_PROP_MAX_HEIGHT},#line 49 "cssproperties.gperf" {"float", CSS_PROP_FLOAT},#line 118 "cssproperties.gperf" {"border-left", CSS_PROP_BORDER_LEFT},#line 129 "cssproperties.gperf" {"scrollbar-highlight-color", CSS_PROP_SCROLLBAR_HIGHLIGHT_COLOR},#line 78 "cssproperties.gperf" {"opacity", CSS_PROP_OPACITY},#line 130 "cssproperties.gperf" {"scrollbar-3dlight-color", CSS_PROP_SCROLLBAR_3DLIGHT_COLOR},#line 95 "cssproperties.gperf" {"size", CSS_PROP_SIZE},#line 97 "cssproperties.gperf" {"text-align", CSS_PROP_TEXT_ALIGN},#line 99 "cssproperties.gperf" {"text-indent", CSS_PROP_TEXT_INDENT},#line 28 "cssproperties.gperf" {"border-left-color", CSS_PROP_BORDER_LEFT_COLOR},#line 21 "cssproperties.gperf" {"border-collapse", CSS_PROP_BORDER_COLLAPSE},#line 38 "cssproperties.gperf" {"caption-side", CSS_PROP_CAPTION_SIDE},#line 22 "cssproperties.gperf" {"border-spacing", CSS_PROP_BORDER_SPACING},#line 48 "cssproperties.gperf" {"empty-cells", CSS_PROP_EMPTY_CELLS},#line 114 "cssproperties.gperf" {"border-style", CSS_PROP_BORDER_STYLE},#line 57 "cssproperties.gperf" {"letter-spacing", CSS_PROP_LETTER_SPACING},#line 122 "cssproperties.gperf" {"list-style", CSS_PROP_LIST_STYLE},#line 29 "cssproperties.gperf" {"border-top-style", CSS_PROP_BORDER_TOP_STYLE},#line 47 "cssproperties.gperf" {"display", CSS_PROP_DISPLAY},#line 30 "cssproperties.gperf" {"border-right-style", CSS_PROP_BORDER_RIGHT_STYLE},#line 31 "cssproperties.gperf" {"border-bottom-style", CSS_PROP_BORDER_BOTTOM_STYLE},#line 108 "cssproperties.gperf" {"width", CSS_PROP_WIDTH},#line 65 "cssproperties.gperf" {"margin-left", CSS_PROP_MARGIN_LEFT},#line 98 "cssproperties.gperf" {"text-decoration", CSS_PROP_TEXT_DECORATION},#line 110 "cssproperties.gperf" {"z-index", CSS_PROP_Z_INDEX},#line 87 "cssproperties.gperf" {"padding-left", CSS_PROP_PADDING_LEFT},#line 120 "cssproperties.gperf" {"box-sizing", CSS_PROP_BOX_SIZING},#line 76 "cssproperties.gperf" {"min-width", CSS_PROP_MIN_WIDTH},#line 119 "cssproperties.gperf"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -