📄 cssproperties.c
字号:
/* ANSI-C code produced by gperf version 2.7.2 *//* Command-line: gperf -a -L ANSI-C -E -C -c -o -t -k '*' -NfindProp -Hhash_prop -Wwordlist_prop -D -s 2 cssproperties.gperf *//* This file is automatically generated from cssproperties.in by makeprop, do not edit *//* Copyright 1999 W. Bastian */#include "cssproperties.h"struct props { const char *name; int id;};/* maximum key range = 1312, 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[] = { 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 0, 1317, 1317, 1317, 1317, 1317, 0, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 15, 10, 0, 0, 0, 185, 50, 0, 0, 0, 10, 0, 10, 360, 0, 100, 105, 0, 25, 0, 10, 25, 225, 250, 355, 5, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317, 1317 }; register int hval = len; switch (hval) { default: case 32: hval += asso_values[(unsigned char)str[31]]; case 31: hval += asso_values[(unsigned char)str[30]]; case 30: hval += asso_values[(unsigned char)str[29]]; case 29: hval += asso_values[(unsigned char)str[28]]; case 28: hval += asso_values[(unsigned char)str[27]]; case 27: hval += asso_values[(unsigned char)str[26]]; case 26: hval += asso_values[(unsigned char)str[25]]; case 25: hval += asso_values[(unsigned char)str[24]]; case 24: hval += asso_values[(unsigned char)str[23]]; case 23: hval += asso_values[(unsigned char)str[22]]; case 22: hval += asso_values[(unsigned char)str[21]]; 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#endifconst struct props *findProp (register const char *str, register unsigned int len){ enum { TOTAL_KEYWORDS = 136, MIN_WORD_LENGTH = 3, MAX_WORD_LENGTH = 32, MIN_HASH_VALUE = 5, MAX_HASH_VALUE = 1316 }; static const struct props wordlist_prop[] = { {"color", CSS_PROP_COLOR}, {"border", CSS_PROP_BORDER}, {"clear", CSS_PROP_CLEAR}, {"border-color", CSS_PROP_BORDER_COLOR}, {"bottom", CSS_PROP_BOTTOM}, {"size", CSS_PROP_SIZE}, {"cursor", CSS_PROP_CURSOR}, {"border-bottom", CSS_PROP_BORDER_BOTTOM}, {"border-bottom-color", CSS_PROP_BORDER_BOTTOM_COLOR}, {"right", CSS_PROP_RIGHT}, {"height", CSS_PROP_HEIGHT}, {"border-right", CSS_PROP_BORDER_RIGHT}, {"border-right-color", CSS_PROP_BORDER_RIGHT_COLOR}, {"scrollbar-track-color", CSS_PROP_SCROLLBAR_TRACK_COLOR}, {"-khtml-user-select", CSS_PROP__KHTML_USER_SELECT}, {"top", CSS_PROP_TOP}, {"clip", CSS_PROP_CLIP}, {"border-top", CSS_PROP_BORDER_TOP}, {"scrollbar-3dlight-color", CSS_PROP_SCROLLBAR_3DLIGHT_COLOR}, {"border-top-color", CSS_PROP_BORDER_TOP_COLOR}, {"-khtml-user-drag", CSS_PROP__KHTML_USER_DRAG}, {"quotes", CSS_PROP_QUOTES}, {"border-collapse", CSS_PROP_BORDER_COLLAPSE}, {"page", CSS_PROP_PAGE}, {"-khtml-marquee", CSS_PROP__KHTML_MARQUEE}, {"scrollbar-highlight-color", CSS_PROP_SCROLLBAR_HIGHLIGHT_COLOR}, {"left", CSS_PROP_LEFT}, {"float", CSS_PROP_FLOAT}, {"border-left", CSS_PROP_BORDER_LEFT}, {"border-left-color", CSS_PROP_BORDER_LEFT_COLOR}, {"width", CSS_PROP_WIDTH}, {"border-width", CSS_PROP_BORDER_WIDTH}, {"scrollbar-face-color", CSS_PROP_SCROLLBAR_FACE_COLOR}, {"border-bottom-width", CSS_PROP_BORDER_BOTTOM_WIDTH}, {"border-right-width", CSS_PROP_BORDER_RIGHT_WIDTH}, {"-khtml-marquee-speed", CSS_PROP__KHTML_MARQUEE_SPEED}, {"scrollbar-arrow-color", CSS_PROP_SCROLLBAR_ARROW_COLOR}, {"max-height", CSS_PROP_MAX_HEIGHT}, {"scrollbar-shadow-color", CSS_PROP_SCROLLBAR_SHADOW_COLOR}, {"border-top-width", CSS_PROP_BORDER_TOP_WIDTH}, {"scrollbar-darkshadow-color", CSS_PROP_SCROLLBAR_DARKSHADOW_COLOR}, {"direction", CSS_PROP_DIRECTION}, {"white-space", CSS_PROP_WHITE_SPACE}, {"outline", CSS_PROP_OUTLINE}, {"outline-color", CSS_PROP_OUTLINE_COLOR}, {"unicode-bidi", CSS_PROP_UNICODE_BIDI}, {"border-style", CSS_PROP_BORDER_STYLE}, {"counter-reset", CSS_PROP_COUNTER_RESET}, {"page-break-before", CSS_PROP_PAGE_BREAK_BEFORE}, {"list-style", CSS_PROP_LIST_STYLE}, {"page-break-after", CSS_PROP_PAGE_BREAK_AFTER}, {"table-layout", CSS_PROP_TABLE_LAYOUT}, {"-khtml-box-pack", CSS_PROP__KHTML_BOX_PACK}, {"line-height", CSS_PROP_LINE_HEIGHT}, {"visibility", CSS_PROP_VISIBILITY}, {"border-bottom-style", CSS_PROP_BORDER_BOTTOM_STYLE}, {"min-height", CSS_PROP_MIN_HEIGHT}, {"border-left-width", CSS_PROP_BORDER_LEFT_WIDTH}, {"margin", CSS_PROP_MARGIN}, {"overflow", CSS_PROP_OVERFLOW}, {"-khtml-flow-mode", CSS_PROP__KHTML_FLOW_MODE}, {"border-right-style", CSS_PROP_BORDER_RIGHT_STYLE}, {"background", CSS_PROP_BACKGROUND}, {"margin-bottom", CSS_PROP_MARGIN_BOTTOM}, {"background-color", CSS_PROP_BACKGROUND_COLOR}, {"opacity", CSS_PROP_OPACITY}, {"vertical-align", CSS_PROP_VERTICAL_ALIGN}, {"widows", CSS_PROP_WIDOWS}, {"position", CSS_PROP_POSITION}, {"list-style-image", CSS_PROP_LIST_STYLE_IMAGE}, {"margin-right", CSS_PROP_MARGIN_RIGHT}, {"empty-cells", CSS_PROP_EMPTY_CELLS}, {"display", CSS_PROP_DISPLAY}, {"border-top-style", CSS_PROP_BORDER_TOP_STYLE}, {"orphans", CSS_PROP_ORPHANS}, {"max-width", CSS_PROP_MAX_WIDTH}, {"caption-side", CSS_PROP_CAPTION_SIDE}, {"text-shadow", CSS_PROP_TEXT_SHADOW}, {"padding", CSS_PROP_PADDING}, {"-khtml-marquee-direction", CSS_PROP__KHTML_MARQUEE_DIRECTION}, {"margin-top", CSS_PROP_MARGIN_TOP}, {"background-image", CSS_PROP_BACKGROUND_IMAGE}, {"font", CSS_PROP_FONT}, {"padding-bottom", CSS_PROP_PADDING_BOTTOM}, {"-khtml-marquee-style", CSS_PROP__KHTML_MARQUEE_STYLE}, {"letter-spacing", CSS_PROP_LETTER_SPACING}, {"-apple-text-size-adjust", CSS_PROP__APPLE_TEXT_SIZE_ADJUST}, {"border-spacing", CSS_PROP_BORDER_SPACING}, {"font-stretch", CSS_PROP_FONT_STRETCH}, {"font-size", CSS_PROP_FONT_SIZE}, {"background-repeat", CSS_PROP_BACKGROUND_REPEAT}, {"padding-right", CSS_PROP_PADDING_RIGHT}, {"border-left-style", CSS_PROP_BORDER_LEFT_STYLE}, {"page-break-inside", CSS_PROP_PAGE_BREAK_INSIDE}, {"min-width", CSS_PROP_MIN_WIDTH}, {"outline-width", CSS_PROP_OUTLINE_WIDTH}, {"z-index", CSS_PROP_Z_INDEX}, {"-khtml-user-modify", CSS_PROP__KHTML_USER_MODIFY}, {"margin-left", CSS_PROP_MARGIN_LEFT}, {"padding-top", CSS_PROP_PADDING_TOP}, {"text-decoration", CSS_PROP_TEXT_DECORATION}, {"font-size-adjust", CSS_PROP_FONT_SIZE_ADJUST}, {"-khtml-marquee-repetition", CSS_PROP__KHTML_MARQUEE_REPETITION}, {"text-decoration-color", CSS_PROP_TEXT_DECORATION_COLOR}, {"-khtml-border-vertical-spacing", CSS_PROP__KHTML_BORDER_VERTICAL_SPACING}, {"-khtml-box-orient", CSS_PROP__KHTML_BOX_ORIENT}, {"-khtml-box-direction", CSS_PROP__KHTML_BOX_DIRECTION}, {"-khtml-box-lines", CSS_PROP__KHTML_BOX_LINES}, {"text-align", CSS_PROP_TEXT_ALIGN}, {"text-overflow", CSS_PROP_TEXT_OVERFLOW}, {"-apple-line-clamp", CSS_PROP__APPLE_LINE_CLAMP}, {"-khtml-box-align", CSS_PROP__KHTML_BOX_ALIGN}, {"padding-left", CSS_PROP_PADDING_LEFT}, {"content", CSS_PROP_CONTENT}, {"-khtml-box-flex", CSS_PROP__KHTML_BOX_FLEX}, {"outline-style", CSS_PROP_OUTLINE_STYLE}, {"outline-offset", CSS_PROP_OUTLINE_OFFSET}, {"word-spacing", CSS_PROP_WORD_SPACING}, {"-khtml-binding", CSS_PROP__KHTML_BINDING}, {"font-weight", CSS_PROP_FONT_WEIGHT}, {"-khtml-box-ordinal-group", CSS_PROP__KHTML_BOX_ORDINAL_GROUP}, {"text-transform", CSS_PROP_TEXT_TRANSFORM}, {"list-style-type", CSS_PROP_LIST_STYLE_TYPE}, {"background-attachment", CSS_PROP_BACKGROUND_ATTACHMENT}, {"-khtml-box-flex-group", CSS_PROP__KHTML_BOX_FLEX_GROUP}, {"list-style-position", CSS_PROP_LIST_STYLE_POSITION}, {"-khtml-marquee-increment", CSS_PROP__KHTML_MARQUEE_INCREMENT}, {"font-style", CSS_PROP_FONT_STYLE}, {"background-position", CSS_PROP_BACKGROUND_POSITION}, {"font-variant", CSS_PROP_FONT_VARIANT}, {"text-indent", CSS_PROP_TEXT_INDENT}, {"-khtml-border-horizontal-spacing", CSS_PROP__KHTML_BORDER_HORIZONTAL_SPACING}, {"counter-increment", CSS_PROP_COUNTER_INCREMENT}, {"font-family", CSS_PROP_FONT_FAMILY}, {"background-position-x", CSS_PROP_BACKGROUND_POSITION_X}, {"background-position-y", CSS_PROP_BACKGROUND_POSITION_Y} }; static const short lookup[] = { -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, 2, -1, 3, -1, -1, -1, 4, -1, -1, -1, -1, -1, -1, -1, 5, -1, -1, -1, -1, -1, -1, 6, -1, 7, -1, -1, -1, -1, -1, 8, -1, -1, -1, -1, -1, 9, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 11, -1, -1, -1, -1, -1, 12, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 13, -1, 14, -1, -1, -1, -1, 15, 16, -1, -1, -1, -1, -1,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -