Lines Matching refs:cp
123 const char *cp = *cpp, *end; in Curl_get_pathname() local
133 if(!*cp || !homedir) in Curl_get_pathname()
139 cp += strspn(cp, WHITESPACE); in Curl_get_pathname()
142 if(*cp == '\"' || *cp == '\'') { in Curl_get_pathname()
143 quot = *cp++; in Curl_get_pathname()
146 for(i = 0; i <= strlen(cp); i++) { in Curl_get_pathname()
147 if(cp[i] == quot) { /* Found quote */ in Curl_get_pathname()
151 if(cp[i] == '\0') { /* End of string */ in Curl_get_pathname()
154 if(cp[i] == '\\') { /* Escaped characters */ in Curl_get_pathname()
156 if(cp[i] != '\'' && cp[i] != '\"' && in Curl_get_pathname()
157 cp[i] != '\\') { in Curl_get_pathname()
161 result = Curl_dyn_addn(&out, &cp[i], 1); in Curl_get_pathname()
170 *cpp = &cp[i] + strspn(&cp[i], WHITESPACE); in Curl_get_pathname()
174 end = strpbrk(cp, WHITESPACE); in Curl_get_pathname()
176 end = strchr(cp, '\0'); in Curl_get_pathname()
182 if(cp[0] == '/' && cp[1] == '~' && cp[2] == '/') { in Curl_get_pathname()
188 cp += 3; in Curl_get_pathname()
191 result = Curl_dyn_addn(&out, cp, (end - cp)); in Curl_get_pathname()