Lines Matching +full:check +full:- +full:whitespace
21 * SPDX-License-Identifier: curl AND ISC
47 Curl_urldecode(data->state.up.path, 0, &working_path, in Curl_getworkingpath()
55 /* Check for /~/, indicating relative to the user's home directory */ in Curl_getworkingpath()
56 if((data->conn->handler->protocol & CURLPROTO_SCP) && in Curl_getworkingpath()
59 if(Curl_dyn_addn(&npath, &working_path[3], working_path_len - 3)) { in Curl_getworkingpath()
64 else if((data->conn->handler->protocol & CURLPROTO_SFTP) && in Curl_getworkingpath()
78 if(len && (p[len-1] != '/')) in Curl_getworkingpath()
82 &working_path[copyfrom], working_path_len - copyfrom)) { in Curl_getworkingpath()
104 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
126 static const char WHITESPACE[] = " \t\r\n"; in Curl_get_pathname() local
138 /* Ignore leading whitespace */ in Curl_get_pathname()
139 cp += strspn(cp, WHITESPACE); in Curl_get_pathname()
141 /* Check for quoted filenames */ in Curl_get_pathname()
170 *cpp = &cp[i] + strspn(&cp[i], WHITESPACE); in Curl_get_pathname()
173 /* Read to end of filename - either to whitespace or terminator */ in Curl_get_pathname()
174 end = strpbrk(cp, WHITESPACE); in Curl_get_pathname()
179 *cpp = end + strspn(end, WHITESPACE); in Curl_get_pathname()
181 /* Handling for relative path - prepend home directory */ in Curl_get_pathname()
190 /* Copy path name up until first "whitespace" */ in Curl_get_pathname()
191 result = Curl_dyn_addn(&out, cp, (end - cp)); in Curl_get_pathname()