Lines Matching refs:q
450 static CURLcode canon_string(const char *q, size_t len, in canon_string() argument
455 for(; len && !result; q++, len--) { in canon_string()
456 if(ISALNUM(*q)) in canon_string()
457 result = Curl_dyn_addn(dq, q, 1); in canon_string()
459 switch(*q) { in canon_string()
465 result = Curl_dyn_addn(dq, q, 1); in canon_string()
469 if(ISXDIGIT(q[1]) && ISXDIGIT(q[2])) { in canon_string()
471 tmp[1] = Curl_raw_toupper(q[1]); in canon_string()
472 tmp[2] = Curl_raw_toupper(q[2]); in canon_string()
474 q += 2; in canon_string()
487 if(*q == '/') { in canon_string()
489 result = Curl_dyn_addn(dq, q, 1); in canon_string()
495 if(*q == '=') { in canon_string()
496 result = Curl_dyn_addn(dq, q, 1); in canon_string()
502 out[1] = hex[((unsigned char)*q) >> 4]; in canon_string()
503 out[2] = hex[*q & 0xf]; in canon_string()
551 const char *q = ap->p; in canon_query() local
555 result = canon_string(q, ap->len, dq, &found_equals); in canon_query()