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

📄 parameterhash.cxx

📁 一个著名的SIP协议栈
💻 CXX
📖 第 1 页 / 共 2 页
字号:
      {"charset", ParameterTypes::charset},
#line 26 "ParameterHash.gperf"
      {"+sip.instance", ParameterTypes::Instance},
#line 80 "ParameterHash.gperf"
      {"mode", ParameterTypes::mode},
#line 86 "ParameterHash.gperf"
      {"model", ParameterTypes::model},
#line 18 "ParameterHash.gperf"
      {"application", ParameterTypes::application},
#line 63 "ParameterHash.gperf"
      {"uri", ParameterTypes::uri},
#line 76 "ParameterHash.gperf"
      {"size", ParameterTypes::size},
#line 55 "ParameterHash.gperf"
      {"opaque", ParameterTypes::opaque},
#line 93 "ParameterHash.gperf"
      {"addTransport", ParameterTypes::addTransport},
#line 24 "ParameterHash.gperf"
      {"text", ParameterTypes::text},
#line 34 "ParameterHash.gperf"
      {"maddr", ParameterTypes::maddr},
#line 13 "ParameterHash.gperf"
      {"description", ParameterTypes::description},
#line 37 "ParameterHash.gperf"
      {"purpose", ParameterTypes::purpose},
#line 20 "ParameterHash.gperf"
      {"language", ParameterTypes::language},
#line 51 "ParameterHash.gperf"
      {"domain", ParameterTypes::domain},
#line 70 "ParameterHash.gperf"
      {"filename", ParameterTypes::filename},
#line 61 "ParameterHash.gperf"
      {"refresher", ParameterTypes::refresher},
#line 77 "ParameterHash.gperf"
      {"permission", ParameterTypes::permission},
#line 38 "ParameterHash.gperf"
      {"to-tag", ParameterTypes::toTag},
#line 17 "ParameterHash.gperf"
      {"schemes", ParameterTypes::schemes},
#line 81 "ParameterHash.gperf"
      {"server", ParameterTypes::server},
#line 41 "ParameterHash.gperf"
      {"expires", ParameterTypes::expires},
#line 59 "ParameterHash.gperf"
      {"username", ParameterTypes::username},
#line 21 "ParameterHash.gperf"
      {"type", ParameterTypes::type},
#line 66 "ParameterHash.gperf"
      {"d-alg", ParameterTypes::dAlg},
#line 14 "ParameterHash.gperf"
      {"events", ParameterTypes::events},
#line 22 "ParameterHash.gperf"
      {"isfocus", ParameterTypes::isFocus},
#line 40 "ParameterHash.gperf"
      {"duration", ParameterTypes::duration},
#line 67 "ParameterHash.gperf"
      {"d-qop", ParameterTypes::dQop},
#line 44 "ParameterHash.gperf"
      {"branch", ParameterTypes::branch},
#line 42 "ParameterHash.gperf"
      {"handling", ParameterTypes::handling},
#line 28 "ParameterHash.gperf"
      {"gruu", ParameterTypes::gruu},
#line 25 "ParameterHash.gperf"
      {"extensions", ParameterTypes::extensions},
#line 32 "ParameterHash.gperf"
      {"method", ParameterTypes::method},
#line 16 "ParameterHash.gperf"
      {"methods", ParameterTypes::methods},
#line 49 "ParameterHash.gperf"
      {"algorithm", ParameterTypes::algorithm},
#line 90 "ParameterHash.gperf"
      {"app-id", ParameterTypes::appId},
#line 87 "ParameterHash.gperf"
      {"version", ParameterTypes::version},
#line 89 "ParameterHash.gperf"
      {"document", ParameterTypes::document},
#line 75 "ParameterHash.gperf"
      {"expiration", ParameterTypes::expiration},
#line 85 "ParameterHash.gperf"
      {"vendor", ParameterTypes::vendor},
#line 45 "ParameterHash.gperf"
      {"received", ParameterTypes::received},
#line 19 "ParameterHash.gperf"
      {"video", ParameterTypes::video},
#line 27 "ParameterHash.gperf"
      {"+sip.flowid", ParameterTypes::FlowId},
#line 15 "ParameterHash.gperf"
      {"priority", ParameterTypes::priority},
#line 79 "ParameterHash.gperf"
      {"directory", ParameterTypes::directory},
#line 39 "ParameterHash.gperf"
      {"from-tag", ParameterTypes::fromTag},
#line 94 "ParameterHash.gperf"
      {"sigcomp-id", ParameterTypes::sigcompId},
#line 83 "ParameterHash.gperf"
      {"access-type", ParameterTypes::accessType},
#line 68 "ParameterHash.gperf"
      {"d-ver", ParameterTypes::dVer},
#line 91 "ParameterHash.gperf"
      {"network-user", ParameterTypes::networkUser},
#line 64 "ParameterHash.gperf"
      {"retry-after", ParameterTypes::retryAfter},
#line 12 "ParameterHash.gperf"
      {"mobility", ParameterTypes::mobility},
#line 73 "ParameterHash.gperf"
      {"boundary", ParameterTypes::boundary},
#line 84 "ParameterHash.gperf"
      {"profile-type", ParameterTypes::profileType},
#line 69 "ParameterHash.gperf"
      {"smime-type", ParameterTypes::smimeType},
#line 60 "ParameterHash.gperf"
      {"early-only", ParameterTypes::earlyOnly},
#line 88 "ParameterHash.gperf"
      {"effective-by", ParameterTypes::effectiveBy}
    };

  static signed char lookup[] =
    {
        -1,    0,    1,    2,   -1,    3,   -1,    4,
         5,   -1,    6,   -1,   -1,    7,    8,    9,
        10,   -1,   -1,   11,   12,   13,   14,   15,
        16,   -1,   -1,   17,   18,   19,   20,   -1,
        -1,   -1, -121,  -64,   -2,   -1,   -1,   23,
        -1,   -1,   -1,   24,   25,   -1,   26,   27,
        28,   29,   30,   31,   -1,   32,   33,   -1,
        34,   35,   -1,   36,   37,   38,   39,   40,
        -1,   -1,   41,   -1,   42,   43,   44,   45,
        46,   -1,   -1,   -1,   47,   48,   49,   50,
        51,   52,   53,   54,   -1,   55,   56,   -1,
        57,   58,   59,   60,   61,   -1,   62,   -1,
        63,   64,   65,   -1,   66,   67,   -1,   68,
        -1,   69,   70,   -1,   71,   72,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   73,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   74,   75,   -1,   -1,
        -1,   76,   -1,   77,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   78,   -1,   -1,   -1,
        -1,   -1,   -1,   79,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   80,   -1,   -1,   -1,   81,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        82,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
        -1,   -1,   -1,   -1,   -1,   -1,   -1,   83,
        -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,   84
    };

  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 (tolower(*str) == *s && !strncasecmp (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 struct params *wordptr = &wordlist[TOTAL_KEYWORDS + lookup[offset]];
              register struct params *wordendptr = wordptr + -lookup[offset + 1];

              while (wordptr < wordendptr)
                {
                  register const char *s = wordptr->name;

                  if (tolower(*str) == *s && !strncasecmp (str + 1, s + 1, len - 1) && s[len] == '\0')
                    return wordptr;
                  wordptr++;
                }
            }
        }
    }
  return 0;
}
#line 95 "ParameterHash.gperf"

}

⌨️ 快捷键说明

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