Lines Matching refs:slen
98 enum http_header_e http_header_hkey_get(const char * const s, const size_t slen) { in http_header_hkey_get() argument
99 if (__builtin_expect( (slen < sizeof(http_headers_off)), 1)) { in http_header_hkey_get()
100 const int i = http_headers_off[slen]; in http_header_hkey_get()
108 if (buffer_eq_icase_ssn(s+1, kv->value+1, slen-1)) in http_header_hkey_get()
110 } while (slen == (++kv)->vlen); in http_header_hkey_get()
116 enum http_header_e http_header_hkey_get_lc(const char * const s, const size_t slen) { in http_header_hkey_get_lc() argument
120 if (__builtin_expect( (slen < sizeof(http_headers_off)), 1)) { in http_header_hkey_get_lc()
121 const int i = http_headers_off[slen]; in http_header_hkey_get_lc()
128 if (0 == memcmp(s+1, kv->value+1, slen-1)) in http_header_hkey_get_lc()
130 } while (slen == (++kv)->vlen); in http_header_hkey_get_lc()
146 int http_header_str_contains_token (const char * const s, const uint32_t slen, const char * const m… in http_header_str_contains_token() argument
153 while (i < slen && (s[i]==' ' || s[i]=='\t' || s[i]==',')) ++i; in http_header_str_contains_token()
154 if (slen - i < mlen) return 0; in http_header_str_contains_token()
157 if (i == slen || s[i]==' ' || s[i]=='\t' || s[i]==',' || s[i]==';') in http_header_str_contains_token()
160 while (i < slen && s[i]!=',') ++i; in http_header_str_contains_token()
161 } while (i < slen); in http_header_str_contains_token()