Searched refs:kv (Results 1 – 5 of 5) sorted by relevance
| /lighttpd1.4/src/ |
| H A D | http_kv.c | 155 while (kv->key != k && kv->key != -1) ++kv; in keyvalue_from_key() 156 return kv; in keyvalue_from_key() 165 while (kv->vlen && (kv->vlen != slen || 0 != memcmp(kv->value, s, slen))) 166 ++kv; 167 return kv->key; 192 while (kv->used && (kv->used-1 != slen || 0 != memcmp(kv->ptr, s, slen))) in get_http_method_key() 193 ++kv; in get_http_method_key() 194 const uint_fast32_t i = kv - http_methods; in get_http_method_key() 211 if (__builtin_expect( (0 != kv->vlen), 1)) in http_status_append() 212 buffer_append_string_len(b, kv->value, kv->vlen); in http_status_append() [all …]
|
| H A D | keyvalue.c | 50 pcre_keyvalue *kv; in pcre_keyvalue_buffer_append() local 53 ck_realloc_u32((void **)&kvb->kv,kvb->used,4,sizeof(*kvb->kv)); in pcre_keyvalue_buffer_append() 55 kv = kvb->kv + kvb->used++; in pcre_keyvalue_buffer_append() 111 kv->match_data = pcre2_match_data_create_from_pattern(kv->code, NULL); in pcre_keyvalue_buffer_append() 159 pcre_keyvalue *kv = kvb->kv; in pcre_keyvalue_buffer_free() local 162 if (kv->code) pcre2_code_free(kv->code); in pcre_keyvalue_buffer_free() 169 if (kv->match_data) pcre2_match_data_free(kv->match_data); in pcre_keyvalue_buffer_free() 172 if (kv->key) pcre_free(kv->key); in pcre_keyvalue_buffer_free() 173 if (kv->key_extra) pcre_free_study(kv->key_extra); in pcre_keyvalue_buffer_free() 179 if (kvb->kv) free(kvb->kv); in pcre_keyvalue_buffer_free() [all …]
|
| H A D | http_header.c | 103 const struct keyvlenvalue * restrict kv = http_headers + i; in http_header_hkey_get() local 106 if (__builtin_expect( (c != kv->value[0]), 1)) in http_header_hkey_get() 108 if (buffer_eq_icase_ssn(s+1, kv->value+1, slen-1)) in http_header_hkey_get() 109 return (enum http_header_e)kv->key; in http_header_hkey_get() 110 } while (slen == (++kv)->vlen); in http_header_hkey_get() 123 const struct keyvlenvalue * restrict kv = http_headers + i; in http_header_hkey_get_lc() local 126 if (__builtin_expect( (c != kv->value[0]), 1)) in http_header_hkey_get_lc() 128 if (0 == memcmp(s+1, kv->value+1, slen-1)) in http_header_hkey_get_lc() 129 return (enum http_header_e)kv->key; in http_header_hkey_get_lc() 130 } while (slen == (++kv)->vlen); in http_header_hkey_get_lc()
|
| H A D | http_kv.h | 100 const buffer * const kv = http_method_buf(method); in http_method_append() local 101 buffer_append_string_len(b, BUF_PTR_LEN(kv)); in http_method_append()
|
| H A D | keyvalue.h | 23 struct pcre_keyvalue *kv; member
|