Lines Matching refs:name
40 entry_new(const char *name, size_t namelen, in entry_new() argument
46 DEBUGASSERT(name); in entry_new()
51 e->name = p = ((char *)e) + sizeof(*e); in entry_new()
52 memcpy(p, name, namelen); in entry_new()
58 Curl_strntolower(e->name, e->name, e->namelen); in entry_new()
74 e2->name = p = ((char *)e2) + sizeof(*e2); in entry_append()
75 memcpy(p, e->name, e->namelen); in entry_append()
147 struct dynhds_entry *Curl_dynhds_get(struct dynhds *dynhds, const char *name, in Curl_dynhds_get() argument
153 strncasecompare(dynhds->hds[i]->name, name, namelen)) { in Curl_dynhds_get()
160 struct dynhds_entry *Curl_dynhds_cget(struct dynhds *dynhds, const char *name) in Curl_dynhds_cget() argument
162 return Curl_dynhds_get(dynhds, name, strlen(name)); in Curl_dynhds_cget()
166 const char *name, size_t namelen, in Curl_dynhds_add() argument
178 entry = entry_new(name, namelen, value, valuelen, dynhds->opts); in Curl_dynhds_add()
212 const char *name, const char *value) in Curl_dynhds_cadd() argument
214 return Curl_dynhds_add(dynhds, name, strlen(name), value, strlen(value)); in Curl_dynhds_cadd()
221 const char *name; in Curl_dynhds_h1_add_line() local
253 name = line; in Curl_dynhds_h1_add_line()
269 return Curl_dynhds_add(dynhds, name, namelen, value, valuelen); in Curl_dynhds_h1_add_line()
282 const char *name, size_t namelen) in Curl_dynhds_contains() argument
284 return !!Curl_dynhds_get(dynhds, name, namelen); in Curl_dynhds_contains()
287 bool Curl_dynhds_ccontains(struct dynhds *dynhds, const char *name) in Curl_dynhds_ccontains() argument
289 return Curl_dynhds_contains(dynhds, name, strlen(name)); in Curl_dynhds_ccontains()
293 const char *name, size_t namelen) in Curl_dynhds_count_name() argument
300 strncasecompare(name, dynhds->hds[i]->name, namelen)) in Curl_dynhds_count_name()
307 size_t Curl_dynhds_ccount_name(struct dynhds *dynhds, const char *name) in Curl_dynhds_ccount_name() argument
309 return Curl_dynhds_count_name(dynhds, name, strlen(name)); in Curl_dynhds_ccount_name()
313 const char *name, size_t namelen, in Curl_dynhds_set() argument
316 Curl_dynhds_remove(dynhds, name, namelen); in Curl_dynhds_set()
317 return Curl_dynhds_add(dynhds, name, namelen, value, valuelen); in Curl_dynhds_set()
321 const char *name, size_t namelen) in Curl_dynhds_remove() argument
328 strncasecompare(name, dynhds->hds[i]->name, namelen)) { in Curl_dynhds_remove()
346 size_t Curl_dynhds_cremove(struct dynhds *dynhds, const char *name) in Curl_dynhds_cremove() argument
348 return Curl_dynhds_remove(dynhds, name, strlen(name)); in Curl_dynhds_cremove()
363 (int)dynhds->hds[i]->namelen, dynhds->hds[i]->name, in Curl_dynhds_h1_dprint()
386 nva[i].name = (unsigned char *)e->name; in Curl_dynhds_to_nva()