📄 doctypes.cpp
字号:
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 PubIDInfo *findDoctypeEntry (register const char *str, register unsigned int len){ enum { TOTAL_KEYWORDS = 77, MIN_WORD_LENGTH = 4, MAX_WORD_LENGTH = 80, MIN_HASH_VALUE = 4, MAX_HASH_VALUE = 569 }; static const struct PubIDInfo wordlist[] = { {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"html", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html 3//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html 3.0//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"-//ietf//dtd html//en//3.0", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"-//ietf//dtd html 3.0//en//", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html 2.0//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"-//ietf//dtd html//en//2.0", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//webtechs//dtd mozilla html//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html 3.2//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html strict//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html 3.2 final//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//webtechs//dtd mozilla html 2.0//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html strict//en//3.0", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//w3c//dtd w3 html//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html 2.0 strict//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"-//ietf//dtd html strict//en//2.0", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"-//w3c//dtd html 3.2//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html 2.1e//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//w3c//dtd html 3.2 final//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//o'reilly and associates//dtd html 2.0//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//w3o//dtd w3 html 3.0//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//w3o//dtd w3 html 3.0//en//", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html level 0//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//w30//dtd w3 html 2.0//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html level 3//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html level 2//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"-//w3c//dtd html 3.2 draft//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"-//w3c//dtd html 3.2s draft//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html level 0//en//2.0", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html level 3//en//3.0", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//netscape comm. corp.//dtd html//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"-//w3c//dtd html 4.0 frameset//en", PubIDInfo::eQuirks, PubIDInfo::eQuirks}, {"-/w3c/dtd html 4.0 transitional/en", PubIDInfo::eQuirks, PubIDInfo::eQuirks}, {"-//sq//dtd html 2.0 hotmetal + extensions//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"-//w3o//dtd w3 html strict 3.0//en//", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"-//w3c//dtd html 4.0 transitional//en", PubIDInfo::eQuirks, PubIDInfo::eQuirks}, {"-//spyglass//dtd html 2.0 extended//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"-//as//dtd html 3.0 aswedit + extensions//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html strict level 0//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"-//ietf//dtd html level 1//en", PubIDInfo::eQuirks3, PubIDInfo::eQuirks3}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards}, {"",PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards},
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -