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

📄 kentities.c

📁 将konqueror浏览器移植到ARM9 2410中
💻 C
📖 第 1 页 / 共 2 页
字号:
/* ANSI-C code produced by gperf version 2.7.2 *//* Command-line: gperf -a -L ANSI-C -E -C -c -o -t -k '*' -NfindEntity -Hhash_Entity -Wwordlist_Entity -D -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.    ----------------------------------------------------------------------------      kentities.gperf: input file to generate a hash table for entities    kentities.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 > entities.c"       from kentities.gperf     $Id: kentities.c,v 1.8 2001/03/13 04:26:19 charles Exp $     */  #include <string.h>struct entity {    const char *name;    int code;};/* maximum key range = 1735, duplicates = 1 */#ifdef __GNUC____inline#else#ifdef __cplusplusinline#endif#endifstatic unsigned inthash_Entity (register const char *str, register unsigned int len){  static const unsigned short asso_values[] =    {      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,    0,        15,   10,    0, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737,  165,    5,    0,    5,   35,      1737,    5,    0,   75, 1737,    5,    0,    0,    5,   45,         5,    0,    5,    0,    0,   25, 1737, 1737,   20,   40,         0, 1737, 1737, 1737, 1737, 1737, 1737,    0,  305,  115,       460,    5,    0,  410,  315,   15,    5,    0,   20,  380,       150,  380,  105,   75,    0,  205,   35,   10,   15,   20,        15,  105,   25, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737, 1737,      1737, 1737, 1737, 1737, 1737, 1737    };  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;}#ifdef __GNUC____inline#endifconst struct entity *findEntity (register const char *str, register unsigned int len){  enum    {      TOTAL_KEYWORDS = 258,      MIN_WORD_LENGTH = 2,      MAX_WORD_LENGTH = 8,      MIN_HASH_VALUE = 2,      MAX_HASH_VALUE = 1736    };  static const struct entity wordlist_Entity[] =    {      {"LT", 60},      {"rarr", 0x2192},      {"GT", 62},      {"Mu", 0x039c},      {"Tau", 0x03a4},      {"uarr", 0x2191},      {"Nu", 0x039d},      {"Pi", 0x03a0},      {"larr", 0x2190},      {"le", 0x2264},      {"real", 0x211c},      {"xi", 0x03be},      {"Xi", 0x039e},      {"ETH", 0x00d0},      {"eta", 0x03b7},      {"Zeta", 0x0396},      {"tau", 0x03c4},      {"Beta", 0x0392},      {"zwj", 0x200d},      {"lt", 60},      {"THORN", 0x00de},      {"zeta", 0x03b6},      {"Delta", 0x0394},      {"Eta", 0x0397},      {"QUOT", 34},      {"para", 0x00b6},      {"crarr", 0x21b5},      {"frac14", 0x00bc},      {"pi", 0x03c0},      {"equiv", 0x2261},      {"frac34", 0x00be},      {"frac12", 0x00bd},      {"piv", 0x03d6},      {"part", 0x2202},      {"weierp", 0x2118},      {"ne", 0x2260},      {"rceil", 0x2309},      {"nu", 0x03bd},      {"ni", 0x220b},      {"rArr", 0x21d2},      {"acute", 0x00b4},      {"aacute", 0x00e1},      {"AMP", 38},      {"iexcl", 0x00a1},      {"eacute", 0x00e9},      {"uArr", 0x21d1},      {"lceil", 0x2308},      {"uacute", 0x00fa},      {"iacute", 0x00ed},      {"lArr", 0x21d0},      {"Uacute", 0x00da},      {"int", 0x222b},      {"zwnj", 0x200c},      {"Eacute", 0x00c9},      {"Yacute", 0x00dd},      {"kappa", 0x03ba},      {"Oacute", 0x00d3},      {"perp", 0x22a5},      {"Kappa", 0x039a},      {"cap", 0x2229},      {"Psi", 0x03a8},      {"frasl", 0x2044},      {"cup", 0x222a},      {"Iacute", 0x00cd},      {"circ", 0x02c6},      {"acirc", 0x00e2},      {"ecirc", 0x00ea},      {"ucirc", 0x00fb},      {"yen", 0x00a5},      {"icirc", 0x00ee},      {"Ucirc", 0x00db},      {"yacute", 0x00fd},      {"exist", 0x2203},      {"Ecirc", 0x00ca},      {"curren", 0x00a4},      {"Ocirc", 0x00d4},      {"cent", 0x00a2},      {"harr", 0x2194},      {"sup", 0x2283},      {"sup1", 0x00b9},      {"Icirc", 0x00ce},      {"psi", 0x03c8},      {"supe", 0x2287},      {"Chi", 0x03a7},      {"sup3", 0x00b3},      {"infin", 0x221e},      {"Aacute", 0x00c1},      {"Phi", 0x03a6},      {"sup2", 0x00b2},      {"beta", 0x03b2},      {"iquest", 0x00bf},      {"eth", 0x00f0},      {"bull", 0x2022},      {"Theta", 0x0398},      {"sect", 0x00a7},      {"there4", 0x2234},      {"or", 0x22a6},      {"isin", 0x2208},      {"mu", 0x03bc},      {"theta", 0x03b8},      {"euro", 0x20ac},      {"lrm", 0x200e},      {"rlm", 0x200f},      {"Prime", 0x2033},      {"uml", 0x00a8},      {"auml", 0x00e4},      {"Acirc", 0x00c2},      {"percnt", 0x0025},      {"ge", 0x2265},      {"reg", 0x00ae},      {"euml", 0x00eb},      {"uuml", 0x00fc},      {"forall", 0x2200},      {"loz", 0x25ca},      {"iuml", 0x00ef},      {"iota", 0x03b9},      {"agrave", 0x00e0},      {"phi", 0x03c6},      {"Uuml", 0x00dc},      {"egrave", 0x00e8},      {"alpha", 0x03b1},      {"ugrave", 0x00f9},      {"gt", 62},      {"chi", 0x03c7},      {"Euml", 0x00cb},      {"igrave", 0x00ec},      {"Yuml", 0x0178},      {"aelig", 0x00e6},      {"Ouml", 0x00d6},      {"Ugrave", 0x00d9},      {"darr", 0x2193},      {"ensp", 0x2002},      {"raquo", 0x00bb},      {"Egrave", 0x00c8},      {"nabla", 0x2207},      {"Ograve", 0x00d2},      {"hArr", 0x21d4},      {"hellip", 0x2026},      {"amp", 38},      {"Iuml", 0x00cf},      {"laquo", 0x00ab},      {"Iota", 0x0399},      {"macr", 0x00af},      {"quot", 34},      {"trade", 0x2122},      {"prime", 0x2032},      {"Igrave", 0x00cc},      {"yuml", 0x00ff},      {"sub", 0x2282},      {"delta", 0x03b4},      {"sube", 0x2286},      {"OElig", 0x0152},      {"permil", 0x2030},      {"fnof", 0x0192},      {"tilde", 0x02dc},      {"atilde", 0x00e3},      {"Ntilde", 0x00d1},      {"oacute", 0x00f3},      {"ang", 0x2220},      {"rang", 0x232a},      {"hearts", 0x2665},      {"not", 0x00ac},      {"oline", 0x203e},      {"Auml", 0x00c4},      {"aring", 0x00e5},      {"lang", 0x2329},      {"Otilde", 0x00d5},      {"prop", 0x221d},      {"radic", 0x221a},      {"sum", 0x2211},      {"Agrave", 0x00c0},      {"sim", 0x223c},      {"Alpha", 0x0391},      {"and", 0x22a5},      {"cedil", 0x00b8},      {"Ccedil", 0x00c7},      {"shy", 0x00ad},      {"dArr", 0x21d3},      {"ocirc", 0x00f4},      {"brvbar", 0x00a6},      {"empty", 0x2205},      {"times", 0x00d7},      {"AElig", 0x00c6},      {"Scaron", 0x0160},      {"upsih", 0x03d2},      {"clubs", 0x2663},      {"lowast", 0x2217},      {"nsub", 0x2284},      {"rsquo", 0x2019},      {"rsaquo", 0x203a},      {"szlig", 0x00df},      {"ntilde", 0x00f1},      {"apos", 0x0027},      {"lsquo", 0x2018},      {"lsaquo", 0x2039},      {"rho", 0x03c1},      {"emsp", 0x2003},      {"Rho", 0x03a1},      {"Atilde", 0x00c3},

⌨️ 快捷键说明

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