⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kentities.c

📁 khtml在gtk上的移植版本
💻 C
📖 第 1 页 / 共 2 页
字号:
    {"amp", 38},    {"ouml", 0x00f6},    {"hellip", 0x2026},    {"hearts", 0x2665},    {"sdot", 0x22c5},    {"prime", 0x2032},    {"sim", 0x223c},    {"Alpha", 0x0391},    {"permil", 0x2030},    {"ordm", 0x00ba},    {"shy", 0x00ad},    {"fnof", 0x0192},    {"rsquo", 0x2019},    {"rsaquo", 0x203a},    {"Euml", 0x00cb},    {"lsquo", 0x2018},    {"lsaquo", 0x2039},    {"times", 0x00d7},    {"Scaron", 0x0160},    {"sup", 0x2283},    {"sup1", 0x00b9},    {"Gamma", 0x0393},    {"supe", 0x2287},    {"supl", 0x00b9},    {"sup2", 0x00b2},    {"sup3", 0x00b3},    {"sbquo", 0x201a},    {"empty", 0x2205},    {"isin", 0x2208},    {"prop", 0x221d},    {"sum", 0x2211},    {"apos", 0x0027},    {"sigma", 0x03c3},    {"alefsym", 0x2135},    {"cong", 0x2245},    {"gamma", 0x03b3},    {"sigmaf", 0x03c2},    {"diams", 0x2666},    {"percnt", 0x0025},    {"otimes", 0x2297},    {"nsub", 0x2284},    {"middot", 0x00b7},    {"oplus", 0x2295},    {"infin", 0x221e},    {"thorn", 0x00fe},    {"emsp", 0x2003},    {"scaron", 0x0161},    {"asymp", 0x2248},    {"ensp", 0x2002},    {"upsih", 0x03d2},    {"Oslash", 0x00d8},    {"notin", 0x2209},    {"nbsp", 0x00a0},    {"spades", 0x2660},    {"oslash", 0x00f8},    {"thetasym", 0x03d1},    {"mdash", 0x2014},    {"pound", 0x00a3},    {"Omicron", 0x039f},    {"ndash", 0x2013},    {"minus", 0x2212},    {"epsilon", 0x03b5},    {"omicron", 0x03bf},    {"Upsilon", 0x03a5},    {"upsilon", 0x03c5},    {"thinsp", 0x2009},    {"Epsilon", 0x0395},    {"plusmn", 0x00b1}  };static const short lookup[] =  {      -1,   -1,    0,   -1,    1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,    2,    3,    4,   -1,      -1,    5,   -1,    6,   -1,   -1,    7,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,       8,   -1,   -1,   -1,   -1,   -1,    9,   10,      -1,   -1,   11,   -1,   12,   -1,   -1,   13,      -1,   14,   15,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   16,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   17,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   18,   -1,   -1,   -1,      19,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   20,   -1,   -1,   -1,      -1,   -1,   -1,   21,   22,   -1,   -1,   -1,      23,   24,   25,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   26,   -1,   -1,   27,   -1,   -1,      -1,   -1,   28,   -1,   29,   -1,   30,   31,      -1,   -1,   -1,   -1,   32,   -1,   -1,   33,      -1,   34,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   35,   -1,   -1,   36,      -1,   37,   -1,   -1,   38,   -1,   -1,   -1,      -1,   39,   -1,   -1,   40,   -1,   -1,   -1,      41,   -1,   -1,   42,   -1,   -1,   -1,   43,      -1,   -1,   44,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   45,   -1,   -1,   -1,   -1,      -1,   46,   -1,   -1,   -1,   47,   48,   -1,      -1,   49,   50,   51,   -1,   -1,   52,   53,      54,   -1,   -1,   55,   56,   57,   -1,   -1,      -1,   58,   59,   -1,   60,   -1,   -1,   61,      -1,   -1,   -1,   62,   -1,   -1,   -1,   -1,      -1,   63,   -1,   64,   -1,   65,   66,   -1,      -1,   -1,   -1,   67,   -1,   -1,   -1,   -1,      68,   -1,   69,   -1,   -1,   70,   -1,   71,      -1,   72,   73,   -1,   -1,   -1,   74,   75,      -1,   -1,   -1,   -1,   76,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   77,   -1,   -1,      -1,   78,   -1,   79,   -1,   -1,   80,   -1,      -1,   -1,   -1,   -1,   -1,   81,   -1,   -1,      -1,   82,   83,   84,   -1,   85,   -1,   86,      -1,   -1,   -1,   87,   88,   -1,   -1,   -1,      89,   -1,   -1,   -1,   90,   91,   92,   -1,      93,   -1,   -1,   94,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   95,   -1,   96,      97,   98,   -1,   -1,   99,   -1,  100,  101,      -1,  102,   -1,   -1,  103,   -1, -624,   -1,     106,  107, -157,   -2,  108,   -1,  109,   -1,      -1,   -1,  110,  111,   -1,   -1,  112,  113,      -1,   -1,   -1,   -1,  114,  115,   -1,   -1,      -1,  116,  117,   -1,  118,   -1,   -1,  119,      -1,   -1,   -1,  120,   -1,   -1,  121,   -1,     122,  123,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,  124,  125,   -1,   -1,  126,   -1,     127,   -1,  128,   -1,   -1,   -1,  129,   -1,      -1,   -1,  130,   -1,   -1,  131,  132,   -1,     133,   -1,  134,  135,   -1,   -1,   -1,   -1,      -1,  136,   -1,   -1,  137,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,  138,  139,   -1,  140,   -1,   -1,  141,     142,   -1,   -1,   -1,  143,  144,  145,  146,      -1,   -1,  147,  148,   -1,   -1,  149,   -1,     150,   -1,   -1,  151,  152,   -1,   -1,   -1,      -1,  153,   -1,   -1,   -1,  154,  155,   -1,      -1,   -1,  156,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,  157,  158,      -1,   -1,   -1,   -1,  159,   -1,  160,  161,      -1,  162,   -1,   -1,   -1,   -1,   -1,  163,      -1,   -1,   -1,  164,  165,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,  166,  167,  168,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,     169,  170,   -1,   -1,   -1,  171,  172,   -1,      -1,   -1,   -1,   -1,   -1,  173,  174,   -1,      -1,   -1,   -1,  175,   -1,   -1,   -1,   -1,      -1,  176,   -1,   -1,   -1,  177,  178,   -1,      -1,   -1,   -1,  179,   -1,   -1,   -1,   -1,     180,   -1,   -1,   -1,   -1,   -1,   -1,   -1,     181,  182,  183,   -1,   -1,  184,   -1,   -1,      -1,   -1,  185,  186,  187,   -1,   -1,   -1,      -1,  188,   -1,   -1,   -1,  189,  190,  191,      -1,   -1,   -1,   -1,  192,   -1,  193,  194,      -1,  195,   -1,   -1,   -1,   -1,  196,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,  197,  198,   -1,   -1,  199,      -1,  200,   -1,   -1,   -1,   -1,   -1,  201,      -1,   -1,  202,   -1,   -1,   -1,  203,  204,      -1,   -1,   -1,   -1,   -1,  205,  206,   -1,      -1,   -1,   -1,   -1,   -1,   -1,  207,  208,     209,   -1,   -1,   -1,  210,  211,   -1,  212,     213,  214,   -1,   -1,   -1,  215,   -1,   -1,      -1,   -1,  216,   -1,   -1,   -1,   -1,  217,      -1,   -1,   -1,   -1,  218,   -1,   -1,   -1,      -1,   -1,  219,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,  220,   -1,   -1,   -1,  221,   -1,   -1,      -1,   -1,  222,   -1,   -1,   -1,  223,   -1,      -1,   -1,   -1,   -1,  224,  225,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,  226,   -1,     227,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,  228,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,  229,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,  230,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,  231,   -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,  232,      -1,   -1,  233,   -1,  234,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,  235,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,  236,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,  237,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,     238,   -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,  239,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,  240,   -1,   -1,   -1,  241,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,  242,  243,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,  244,   -1,   -1,   -1,  245,   -1,     246,   -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,  247,   -1,  248,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,  249,   -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,  250,   -1,   -1,   -1,   -1,   -1,   -1,     251,   -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,  252,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,  253,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,  254,   -1,   -1,   -1,      -1,  255,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,     256,   -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,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,      -1,   -1,   -1,   -1,   -1,  257,   -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,  258,   -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,   -1,      -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,     259,   -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,  260  };#ifdef __GNUC____inline#endifconst struct entity *findEntity (register const char *str, register unsigned int len){  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)    {      register int key = hash (str, len);      if (key <= MAX_HASH_VALUE && key >= 0)        {          register int index = lookup[key];          if (index >= 0)            {              register const char *s = wordlist[index].name;              if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')                return &wordlist[index];            }          else if (index < -TOTAL_KEYWORDS)            {              register int offset = - 1 - TOTAL_KEYWORDS - index;              register const struct entity *wordptr = &wordlist[TOTAL_KEYWORDS + lookup[offset]];              register const struct entity *wordendptr = wordptr + -lookup[offset + 1];              while (wordptr < wordendptr)                {                  register const char *s = wordptr->name;                  if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')                    return wordptr;                  wordptr++;                }            }        }    }  return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -