📄 kentities.c
字号:
/* ANSI-C code produced by gperf version 2.7.2 *//* Command-line: gperf -a -L ANSI-C -C -G -c -o -t -k '*' -NfindEntity -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 */ struct entity { const char *name; int code;};#define TOTAL_KEYWORDS 261#define MIN_WORD_LENGTH 2#define MAX_WORD_LENGTH 8#define MIN_HASH_VALUE 2#define MAX_HASH_VALUE 1476/* maximum key range = 1475, duplicates = 1 */#ifdef __GNUC____inline#else#ifdef __cplusplusinline#endif#endifstatic unsigned inthash (register const char *str, register unsigned int len){ static const unsigned short asso_values[] = { 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 0, 15, 20, 10, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 55, 5, 5, 0, 225, 1477, 10, 0, 140, 1477, 15, 0, 0, 10, 105, 30, 0, 5, 15, 0, 25, 1477, 1477, 5, 20, 10, 1477, 1477, 1477, 1477, 1477, 1477, 0, 45, 95, 155, 5, 45, 100, 305, 15, 0, 10, 10, 345, 415, 170, 290, 100, 0, 300, 30, 110, 90, 10, 15, 70, 0, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477, 1477 }; 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[] = { {"LT", 60}, {"rarr", 0x2192}, {"GT", 62}, {"zwj", 0x200d}, {"larr", 0x2190}, {"le", 0x2264}, {"real", 0x211c}, {"Xi", 0x039e}, {"xi", 0x03be}, {"eta", 0x03b7}, {"zeta", 0x03b6}, {"lt", 60}, {"Beta", 0x0392}, {"Pi", 0x03a0}, {"Zeta", 0x0396}, {"Delta", 0x0394}, {"rArr", 0x21d2}, {"lArr", 0x21d0}, {"beta", 0x03b2}, {"AMP", 38}, {"crarr", 0x21b5}, {"ge", 0x2265}, {"reg", 0x00ae}, {"Mu", 0x039c}, {"Tau", 0x03a4}, {"uarr", 0x2191}, {"Nu", 0x039d}, {"THORN", 0x00de}, {"rceil", 0x2309}, {"gt", 62}, {"QUOT", 34}, {"aelig", 0x00e6}, {"lceil", 0x2308}, {"tau", 0x03c4}, {"iexcl", 0x00a1}, {"frac14", 0x00bc}, {"darr", 0x2193}, {"frac12", 0x00bd}, {"COPY", 0x00a9}, {"uArr", 0x21d1}, {"or", 0x2228}, {"frac34", 0x00be}, {"bull", 0x2022}, {"loz", 0x25ca}, {"brvbar", 0x00a6}, {"trade", 0x2122}, {"agrave", 0x00e0}, {"delta", 0x03b4}, {"egrave", 0x00e8}, {"circ", 0x02c6}, {"acirc", 0x00e2}, {"Dagger", 0x2021}, {"dArr", 0x21d3}, {"ecirc", 0x00ea}, {"igrave", 0x00ec}, {"iota", 0x03b9}, {"tilde", 0x02dc}, {"atilde", 0x00e3}, {"icirc", 0x00ee}, {"Ugrave", 0x00d9}, {"ETH", 0x00d0}, {"Ntilde", 0x00d1}, {"Ucirc", 0x00db}, {"forall", 0x2200}, {"REG", 0x00ae}, {"acute", 0x00b4}, {"aacute", 0x00e1}, {"eacute", 0x00e9}, {"Agrave", 0x00c0}, {"Eta", 0x0397}, {"iacute", 0x00ed}, {"deg", 0x00b0}, {"Acirc", 0x00c2}, {"Yacute", 0x00dd}, {"radic", 0x221a}, {"Uacute", 0x00da}, {"Atilde", 0x00c3}, {"cedil", 0x00b8}, {"euro", 0x20ac}, {"Ccedil", 0x00c7}, {"para", 0x00b6}, {"Aacute", 0x00c1}, {"oelig", 0x0153}, {"Ograve", 0x00d2}, {"pi", 0x03c0}, {"harr", 0x2194}, {"ugrave", 0x00f9}, {"Ocirc", 0x00d4}, {"yacute", 0x00fd}, {"ucirc", 0x00fb}, {"part", 0x2202}, {"equiv", 0x2261}, {"Otilde", 0x00d5}, {"Chi", 0x03a7}, {"weierp", 0x2118}, {"Igrave", 0x00cc}, {"eth", 0x00f0}, {"Iota", 0x0399}, {"Theta", 0x0398}, {"Psi", 0x03a8}, {"Icirc", 0x00ce}, {"Oacute", 0x00d3}, {"Phi", 0x03a6}, {"uacute", 0x00fa}, {"lrm", 0x200e}, {"rlm", 0x200f}, {"frasl", 0x2044}, {"there4", 0x2234}, {"hArr", 0x21d4}, {"dagger", 0x2020}, {"exist", 0x2203}, {"ograve", 0x00f2}, {"ordf", 0x00aa}, {"theta", 0x03b8}, {"ocirc", 0x00f4}, {"ccedil", 0x00e7}, {"raquo", 0x00bb}, {"Iacute", 0x00cd}, {"cap", 0x2229}, {"otilde", 0x00f5}, {"laquo", 0x00ab}, {"piv", 0x03d6}, {"Prime", 0x2033}, {"rfloor", 0x230b}, {"AElig", 0x00c6}, {"lfloor", 0x230a}, {"quot", 34}, {"oacute", 0x00f3}, {"chi", 0x03c7}, {"ne", 0x2260}, {"Egrave", 0x00c8}, {"zwnj", 0x200c}, {"szlig", 0x00df}, {"ni", 0x220b}, {"sect", 0x00a7}, {"Ecirc", 0x00ca}, {"divide", 0x00f7}, {"macr", 0x00af}, {"mu", 0x03bc}, {"sub", 0x2282}, {"OElig", 0x0152}, {"int", 0x222b}, {"sube", 0x2286}, {"uml", 0x00a8}, {"auml", 0x00e4}, {"image", 0x2111}, {"Eacute", 0x00c9}, {"euml", 0x00eb}, {"nabla", 0x2207}, {"rho", 0x03c1}, {"Sigma", 0x03a3}, {"Rho", 0x03a1}, {"iuml", 0x00ef}, {"Yuml", 0x0178}, {"yen", 0x00a5}, {"Uuml", 0x00dc}, {"cup", 0x222a}, {"ang", 0x2220}, {"rang", 0x232a}, {"Auml", 0x00c4}, {"lowast", 0x2217}, {"nu", 0x03bd}, {"lang", 0x2329}, {"aring", 0x00e5}, {"yuml", 0x00ff}, {"rdquo", 0x201d}, {"cent", 0x00a2}, {"ldquo", 0x201c}, {"Lambda", 0x039b}, {"Omega", 0x03a9}, {"lambda", 0x03bb}, {"clubs", 0x2663}, {"iquest", 0x00bf}, {"and", 0x2227}, {"Ouml", 0x00d6}, {"uuml", 0x00fc}, {"bdquo", 0x201e}, {"perp", 0x22a5}, {"Aring", 0x00c5}, {"kappa", 0x03ba}, {"Kappa", 0x039a}, {"psi", 0x03c8}, {"Iuml", 0x00cf}, {"alpha", 0x03b1}, {"phi", 0x03c6}, {"not", 0x00ac}, {"prod", 0x220f}, {"oline", 0x203e}, {"omega", 0x03c9}, {"copy", 0x00a9}, {"micro", 0x00b5}, {"curren", 0x00a4}, {"ntilde", 0x00f1},
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -