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>
125 static const char WHITESPACE[] = " \t\r\n"; in Curl_get_pathname() local
133 /* Ignore leading whitespace */ in Curl_get_pathname()
134 cp += strspn(cp, WHITESPACE); in Curl_get_pathname()
141 /* Check for quoted filenames */ in Curl_get_pathname()
168 *cpp = cp + i + strspn(cp + i, WHITESPACE); in Curl_get_pathname()
171 /* Read to end of filename - either to whitespace or terminator */ in Curl_get_pathname()
172 end = strpbrk(cp, WHITESPACE); in Curl_get_pathname()
176 *cpp = end + strspn(end, WHITESPACE); in Curl_get_pathname()
179 /* Handling for relative path - prepend home directory */ in Curl_get_pathname()
187 /* Copy path name up until first "whitespace" */ in Curl_get_pathname()
188 memcpy(&(*path)[pathLength], cp, (int)(end - cp)); in Curl_get_pathname()
189 pathLength += (int)(end - cp); in Curl_get_pathname()