Lines Matching defs:length
48 char *curl_unescape(const char *string, int length)
50 return curl_easy_unescape(NULL, string, length, NULL);
53 /* Escapes for URL the given unescaped string of given length.
59 size_t length;
68 length = (inlength?(size_t)inlength:strlen(string));
69 if(!length)
72 while(length--) {
107 * Returns a pointer to a malloced string in *ostring with length given in
108 * *olen. If length == 0, the length is assumed to be strlen(string).
120 CURLcode Curl_urldecode(const char *string, size_t length,
130 alloc = (length?length:strlen(string));
172 * Unescapes the given URL escaped string of given length. Returns a
173 * pointer to a malloced string with length given in *olen.
174 * If length == 0, the length is assumed to be strlen(string).
175 * If olen == NULL, no output length is stored.
179 int length, int *olen)
183 if(length >= 0) {
184 size_t inputlen = (size_t)length;
216 void Curl_hexencode(const unsigned char *src, size_t len, /* input length */