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

📄 kentities.c

📁 monqueror一个很具有参考价值的源玛
💻 C
📖 第 1 页 / 共 2 页
字号:
/* ANSI-C code produced by gperf version 2.7.1 (19981006 egcs) *//* Command-line: gperf -a -L ANSI-C -C -G -c -o -t -k * -NfindEntity -D -Hhash_Entity -Wwordlist_Entity -s 2 kentities.gperf  *//*   This file is part of the KDE libraries       Copyright (C) 1999 Lars Knoll (knoll@mpi-hd.mpg.de)       This library is free software; you can redistribute it and/or     modify it under the terms of the GNU Library General Public     License as published by the Free Software Foundation; either     version 2 of the License, or (at your option) any later version.       This library is distributed in the hope that it will be useful,     but WITHOUT ANY WARRANTY; without even the implied warranty of     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     Library General Public License for more details.       You should have received a copy of the GNU Library General Public License     along with this library; see the file COPYING.LIB.  If not, write to     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,     Boston, MA 02111-1307, USA.    ----------------------------------------------------------------------------      khtmlentities.gperf: input file to generate a hash table for entities    khtmlentities.c: DO NOT EDIT! generated by the command    "gperf -a -L "ANSI-C" -C -G -c -o -t -k '*' -NfindEntity -D -s 2 khtmlentities.gperf > khtmlentities.c"       from khtmlentities.gperf     $Id: kentities.c,v 1.1.1.1 2002/01/16 10:39:56 ymwei Exp $     */  struct entity {    const char *name;    int code;};#define TOTAL_KEYWORDS 257#define MIN_WORD_LENGTH 2#define MAX_WORD_LENGTH 8#define MIN_HASH_VALUE 2#define MAX_HASH_VALUE 1428/* maximum key range = 1427, duplicates = 1 */#ifdef __GNUC____inline#endifstatic unsigned inthash_Entity (register const char *str, register unsigned int len){  static const unsigned short asso_values[] =    {      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,   10,        20,   15,    0, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429,   95,   10,    5,   35,   20,      1429,    5,    5,   65, 1429,   10,    0,    0,   15,   60,         0,    0,    5,    0,    0,   25, 1429, 1429,   20,   45,         0, 1429, 1429, 1429, 1429, 1429, 1429,    0,   40,   65,       290,    5,   35,  295,  370,   15,    0,    0,   25,  215,       453,  335,  335,  145,    0,  125,  110,   10,   20,    5,         5,   80,   15, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429, 1429,      1429, 1429, 1429, 1429, 1429, 1429    };  register int hval = len;  switch (hval)    {      default:      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;}static const struct entity wordlist_Entity[] =  {    {"LT", 60},    {"rarr", 0x2192},    {"GT", 62},    {"Mu", 0x039c},    {"Tau", 0x03a4},    {"uarr", 0x2191},    {"Pi", 0x03a0},    {"xi", 0x03be},    {"zwj", 0x200d},    {"Nu", 0x039d},    {"ETH", 0x00d0},    {"larr", 0x2190},    {"le", 0x2264},    {"real", 0x211c},    {"Xi", 0x039e},    {"crarr", 0x21b5},    {"QUOT", 34},    {"THORN", 0x00de},    {"AMP", 38},    {"rArr", 0x21d2},    {"bull", 0x2022},    {"brvbar", 0x00a6},    {"uArr", 0x21d1},    {"rceil", 0x2309},    {"frac14", 0x00bc},    {"eta", 0x03b7},    {"Zeta", 0x0396},    {"iexcl", 0x00a1},    {"frac34", 0x00be},    {"tau", 0x03c4},    {"lArr", 0x21d0},    {"Beta", 0x0392},    {"Eta", 0x0397},    {"zeta", 0x03b6},    {"frac12", 0x00bd},    {"lt", 60},    {"lceil", 0x2308},    {"Psi", 0x03a8},    {"circ", 0x02c6},    {"acirc", 0x00e2},    {"ecirc", 0x00ea},    {"beta", 0x03b2},    {"ucirc", 0x00fb},    {"icirc", 0x00ee},    {"Ecirc", 0x00ca},    {"Ucirc", 0x00db},    {"sub", 0x2282},    {"Delta", 0x0394},    {"sube", 0x2286},    {"frasl", 0x2044},    {"acute", 0x00b4},    {"aacute", 0x00e1},    {"equiv", 0x2261},    {"eacute", 0x00e9},    {"uacute", 0x00fa},    {"Ocirc", 0x00d4},    {"iacute", 0x00ed},    {"Icirc", 0x00ce},    {"Eacute", 0x00c9},    {"Uacute", 0x00da},    {"mu", 0x03bc},    {"Prime", 0x2033},    {"Yacute", 0x00dd},    {"lrm", 0x200e},    {"rlm", 0x200f},    {"Acirc", 0x00c2},    {"uml", 0x00a8},    {"auml", 0x00e4},    {"Oacute", 0x00d3},    {"euml", 0x00eb},    {"Iacute", 0x00cd},    {"uuml", 0x00fc},    {"exist", 0x2203},    {"iuml", 0x00ef},    {"clubs", 0x2663},    {"Euml", 0x00cb},    {"yacute", 0x00fd},    {"Uuml", 0x00dc},    {"macr", 0x00af},    {"Aacute", 0x00c1},    {"darr", 0x2193},    {"Yuml", 0x0178},    {"ge", 0x2265},    {"reg", 0x00ae},    {"sect", 0x00a7},    {"Ouml", 0x00d6},    {"Iuml", 0x00cf},    {"agrave", 0x00e0},    {"egrave", 0x00e8},    {"yuml", 0x00ff},    {"ugrave", 0x00f9},    {"or", 0x22a6},    {"para", 0x00b6},    {"igrave", 0x00ec},    {"aelig", 0x00e6},    {"Egrave", 0x00c8},    {"Auml", 0x00c4},    {"Ugrave", 0x00d9},    {"pi", 0x03c0},    {"sum", 0x2211},    {"euro", 0x20ac},    {"sim", 0x223c},    {"weierp", 0x2118},    {"piv", 0x03d6},    {"harr", 0x2194},    {"radic", 0x221a},    {"loz", 0x25ca},    {"Ograve", 0x00d2},    {"Phi", 0x03a6},    {"dArr", 0x21d3},    {"Igrave", 0x00cc},    {"Chi", 0x03a7},    {"cap", 0x2229},    {"cedil", 0x00b8},    {"gt", 62},    {"trade", 0x2122},    {"Ccedil", 0x00c7},    {"cup", 0x222a},    {"iquest", 0x00bf},    {"OElig", 0x0152},    {"Agrave", 0x00c0},    {"forall", 0x2200},    {"delta", 0x03b4},    {"Gamma", 0x0393},    {"part", 0x2202},    {"tilde", 0x02dc},    {"atilde", 0x00e3},    {"chi", 0x03c7},    {"AElig", 0x00c6},    {"ne", 0x2260},    {"iota", 0x03b9},    {"nu", 0x03bd},    {"Ntilde", 0x00d1},    {"hArr", 0x21d4},    {"ni", 0x220b},    {"ccedil", 0x00e7},    {"sup", 0x2283},    {"times", 0x00d7},    {"zwnj", 0x200c},    {"psi", 0x03c8},    {"supe", 0x2287},    {"szlig", 0x00df},    {"sup1", 0x00b9},    {"ocirc", 0x00f4},    {"eth", 0x00f0},    {"sup3", 0x00b3},    {"Theta", 0x0398},    {"alefsym", 0x2135},    {"sup2", 0x00b2},    {"raquo", 0x00bb},    {"there4", 0x2234},    {"Otilde", 0x00d5},    {"Iota", 0x0399},    {"laquo", 0x00ab},    {"nabla", 0x2207},    {"Sigma", 0x03a3},    {"oacute", 0x00f3},    {"image", 0x2111},    {"curren", 0x00a4},    {"yen", 0x00a5},    {"Atilde", 0x00c3},    {"Lambda", 0x039b},    {"amp", 38},    {"prime", 0x2032},    {"lambda", 0x03bb},    {"shy", 0x00ad},    {"Omega", 0x03a9},    {"int", 0x222b},    {"ouml", 0x00f6},    {"deg", 0x00b0},    {"theta", 0x03b8},    {"permil", 0x2030},    {"quot", 34},    {"lowast", 0x2217},    {"isin", 0x2208},    {"hearts", 0x2665},    {"rsquo", 0x2019},    {"rsaquo", 0x203a},    {"nsub", 0x2284},    {"micro", 0x00b5},    {"Dagger", 0x2021},    {"cent", 0x00a2},    {"divide", 0x00f7},    {"lsquo", 0x2018},    {"lsaquo", 0x2039},    {"diams", 0x2666},    {"sigma", 0x03c3},    {"sbquo", 0x201a},    {"ograve", 0x00f2},    {"ordf", 0x00aa},

⌨️ 快捷键说明

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