Lines Matching refs:util
29 #include "util.h"
246 return util::make_string_ref_uint(balloc, status_code);
251 buf->append(util::upcase(s[0]));
254 buf->append(util::upcase(s[i]));
641 if (!util::starts_with(std::begin(match_host), std::end(match_host),
672 p = util::copy_lit(p, "://");
728 if (util::streq_l("t", name, 1)) {
737 if (util::streq_l("vi", name, 2)) {
746 if (util::streq_l("dat", name, 3)) {
751 if (util::streq_l("lin", name, 3)) {
756 if (util::streq_l("hos", name, 3)) {
765 if (util::streq_l(":pat", name, 4)) {
770 if (util::streq_l(":hos", name, 4)) {
779 if (util::streq_l("cooki", name, 5)) {
784 if (util::streq_l("serve", name, 5)) {
789 if (util::streq_l("expec", name, 5)) {
798 if (util::streq_l("alt-sv", name, 6)) {
803 if (util::streq_l(":metho", name, 6)) {
808 if (util::streq_l(":schem", name, 6)) {
811 if (util::streq_l("upgrad", name, 6)) {
816 if (util::streq_l("traile", name, 6)) {
821 if (util::streq_l(":statu", name, 6)) {
830 if (util::streq_l("locatio", name, 7)) {
839 if (util::streq_l("forwarde", name, 8)) {
844 if (util::streq_l(":protoco", name, 8)) {
853 if (util::streq_l("early-dat", name, 9)) {
858 if (util::streq_l("keep-aliv", name, 9)) {
863 if (util::streq_l("connectio", name, 9)) {
868 if (util::streq_l("user-agen", name, 9)) {
873 if (util::streq_l(":authorit", name, 9)) {
882 if (util::streq_l("content-typ", name, 11)) {
891 if (util::streq_l("cache-contro", name, 12)) {
900 if (util::streq_l("content-lengt", name, 13)) {
905 if (util::streq_l("http2-setting", name, 13)) {
914 if (util::streq_l("accept-languag", name, 14)) {
919 if (util::streq_l("accept-encodin", name, 14)) {
924 if (util::streq_l("x-forwarded-fo", name, 14)) {
933 if (util::streq_l("proxy-connectio", name, 15)) {
942 if (util::streq_l("if-modified-sinc", name, 16)) {
947 if (util::streq_l("transfer-encodin", name, 16)) {
952 if (util::streq_l("x-forwarded-prot", name, 16)) {
957 if (util::streq_l("sec-websocket-ke", name, 16)) {
966 if (util::streq_l("sec-websocket-accep", name, 19)) {
1094 if (std::equal(pat, pat + patlen, first, util::CaseCmp())) {
1121 return std::equal(pat, pat + patlen, first, util::CaseCmp());
1127 return std::equal(pat, pat + patlen, first, util::CaseCmp());
1179 std::equal(PLP, PLP + PLPLEN, first, util::CaseCmp())) {
1195 std::equal(PLT, PLT + PLTLEN, start, util::CaseCmp())) {
1226 if (std::equal(PL, PL + PLLEN, first, util::CaseCmp())) {
1234 if (!std::equal(PL, PL + PLLEN, first, util::CaseCmp())) {
1242 if (!std::equal(PL, PL + PLLEN, first, util::CaseCmp())) {
1279 if (util::in_attr_char(*first)) {
1408 if (util::streq_l("AC", name, 2)) {
1413 if (util::streq_l("GE", name, 2)) {
1416 if (util::streq_l("PU", name, 2)) {
1425 if (util::streq_l("BIN", name, 3)) {
1428 if (util::streq_l("HEA", name, 3)) {
1433 if (util::streq_l("MOV", name, 3)) {
1438 if (util::streq_l("LIN", name, 3)) {
1441 if (util::streq_l("LOC", name, 3)) {
1446 if (util::streq_l("POS", name, 3)) {
1451 if (util::streq_l("COP", name, 3)) {
1460 if (util::streq_l("MERG", name, 4)) {
1463 if (util::streq_l("PURG", name, 4)) {
1466 if (util::streq_l("TRAC", name, 4)) {
1471 if (util::streq_l("PATC", name, 4)) {
1476 if (util::streq_l("MKCO", name, 4)) {
1485 if (util::streq_l("REBIN", name, 5)) {
1488 if (util::streq_l("UNBIN", name, 5)) {
1493 if (util::streq_l("DELET", name, 5)) {
1496 if (util::streq_l("SOURC", name, 5)) {
1501 if (util::streq_l("SEARC", name, 5)) {
1506 if (util::streq_l("UNLIN", name, 5)) {
1509 if (util::streq_l("UNLOC", name, 5)) {
1514 if (util::streq_l("REPOR", name, 5)) {
1519 if (util::streq_l("NOTIF", name, 5)) {
1528 if (util::streq_l("MSEARC", name, 6)) {
1533 if (util::streq_l("OPTION", name, 6)) {
1538 if (util::streq_l("CONNEC", name, 6)) {
1547 if (util::streq_l("PROPFIN", name, 7)) {
1552 if (util::streq_l("CHECKOU", name, 7)) {
1561 if (util::streq_l("SUBSCRIB", name, 8)) {
1566 if (util::streq_l("PROPPATC", name, 8)) {
1575 if (util::streq_l("MKCALENDA", name, 9)) {
1580 if (util::streq_l("MKACTIVIT", name, 9)) {
1589 if (util::streq_l("UNSUBSCRIB", name, 10)) {
1651 scheme = util::get_uri_field(uri.c_str(), u, UF_SCHEMA);
1655 auto auth = util::get_uri_field(uri.c_str(), u, UF_HOST);
1666 p = util::utos(p, u.port);
1837 if (util::is_hex_digit(*(it + 1)) && util::is_hex_digit(*(it + 2))) {
1839 (util::hex_to_uint(*(it + 1)) << 4) + util::hex_to_uint(*(it + 2));
1840 if (util::in_rfc3986_unreserved_chars(c)) {
1848 *p++ = util::upcase(*(it + 1));
1849 *p++ = util::upcase(*(it + 2));
1884 if (util::is_hex_digit(*(it + 1)) && util::is_hex_digit(*(it + 2))) {
1886 (util::hex_to_uint(*(it + 1)) << 4) + util::hex_to_uint(*(it + 2));
1887 if (util::in_rfc3986_unreserved_chars(c) || c == ':') {
1895 *p++ = util::upcase(*(it + 1));
1896 *p++ = util::upcase(*(it + 2));
1939 util::inp_strlower(iov.base, p);
1951 if (util::strieq(trailers, StringRef{p, p + trailers.size()})) {
1975 if (util::sha1(h.data(), StringRef{std::begin(s), std::end(s)}) != 0) {
1996 if (!util::in_token(*it)) {
2002 for (; it != std::end(s) && util::in_token(*it); ++it)
2042 if (!util::in_token(*it)) {
2048 for (; it != std::end(s) && util::in_token(*it); ++it)
2062 if (util::in_token(*it)) {
2066 for (; it != std::end(s) && util::in_token(*it); ++it)