Lines Matching refs:string
44 char *curl_escape(const char *string, int inlength) in curl_escape() argument
46 return curl_easy_escape(NULL, string, inlength); in curl_escape()
50 char *curl_unescape(const char *string, int length) in curl_unescape() argument
52 return curl_easy_unescape(NULL, string, length, NULL); in curl_unescape()
58 char *curl_easy_escape(CURL *data, const char *string, in curl_easy_escape() argument
65 if(!string || (inlength < 0)) in curl_easy_escape()
68 length = (inlength ? (size_t)inlength : strlen(string)); in curl_easy_escape()
76 unsigned char in = (unsigned char)*string++; in curl_easy_escape()
123 CURLcode Curl_urldecode(const char *string, size_t length, in Curl_urldecode() argument
130 DEBUGASSERT(string); in Curl_urldecode()
133 alloc = (length ? length : strlen(string)); in Curl_urldecode()
143 unsigned char in = (unsigned char)*string; in Curl_urldecode()
145 ISXDIGIT(string[1]) && ISXDIGIT(string[2])) { in Curl_urldecode()
147 in = (unsigned char)(onehex2dec(string[1]) << 4) | onehex2dec(string[2]); in Curl_urldecode()
149 string += 3; in Curl_urldecode()
153 string++; in Curl_urldecode()
181 char *curl_easy_unescape(CURL *data, const char *string, in curl_easy_unescape() argument
186 if(string && (length >= 0)) { in curl_easy_unescape()
189 CURLcode res = Curl_urldecode(string, inputlen, &str, &outputlen, in curl_easy_unescape()