Lines Matching defs:value
358 /* Returns int value of hex string character |c| */
372 /* Decodes percent-encoded byte string |value| with length |valuelen|
374 value is NULL terminated. The caller must free the returned
376 static char *percent_decode(const uint8_t *value, size_t valuelen) {
383 if (value[i] != '%' || !isxdigit(value[i + 1]) ||
384 !isxdigit(value[i + 2])) {
385 res[j++] = (char)value[i++];
389 (char)((hex_to_uint(value[i + 1]) << 4) + hex_to_uint(value[i + 2]));
392 memcpy(&res[j], &value[i], 2);
395 memcpy(res, value, valuelen);
480 single header name/value pair. */
483 size_t namelen, const uint8_t *value,
502 for (j = 0; j < valuelen && value[j] != '?'; ++j)
504 stream_data->request_path = percent_decode(value, j);