Lines Matching refs:flags
395 static CURLUcode junkscan(const char *url, size_t *urllen, unsigned int flags) in junkscan() argument
413 (!(flags & CURLU_ALLOW_SPACE) && strchr(url, ' '))) in junkscan()
430 unsigned int flags, in parse_hostname_login() argument
469 (h && (h->flags & PROTOPT_URLOPTIONS)) ? in parse_hostname_login()
477 if(flags & CURLU_DISALLOW_USER) { in parse_hostname_login()
790 unsigned int flags, in parse_authority() argument
801 uc = parse_hostname_login(u, auth, authlen, flags, &offset); in parse_authority()
992 static CURLUcode parseurl(const char *url, CURLU *u, unsigned int flags) in parseurl() argument
1009 result = junkscan(url, &urllen, flags); in parseurl()
1014 flags & (CURLU_GUESS_SCHEME| in parseurl()
1148 !(flags & CURLU_NON_SUPPORT_SCHEME)) { in parseurl()
1163 if(!(flags & (CURLU_DEFAULT_SCHEME|CURLU_GUESS_SCHEME))) { in parseurl()
1167 if(flags & CURLU_DEFAULT_SCHEME) in parseurl()
1192 result = parse_authority(u, hostp, hostlen, flags, &host, schemelen); in parseurl()
1196 if((flags & CURLU_GUESS_SCHEME) && !schemep) { in parseurl()
1222 else if(flags & CURLU_NO_AUTHORITY) { in parseurl()
1241 if(flags & CURLU_URLENCODE) { in parseurl()
1268 if(flags & CURLU_URLENCODE) { in parseurl()
1295 if(pathlen && (flags & CURLU_URLENCODE)) { in parseurl()
1318 else if(flags & CURLU_URLENCODE) in parseurl()
1322 if(!(flags & CURLU_PATH_AS_IS)) { in parseurl()
1350 unsigned int flags) in parseurl_and_replace() argument
1355 result = parseurl(url, &tmpurl, flags); in parseurl_and_replace()
1412 char **part, unsigned int flags) in curl_url_get() argument
1417 bool urldecode = (flags & CURLU_URLDECODE) ? 1 : 0; in curl_url_get()
1418 bool urlencode = (flags & CURLU_URLENCODE) ? 1 : 0; in curl_url_get()
1422 (void)flags; in curl_url_get()
1434 if((flags & CURLU_NO_GUESS_SCHEME) && u->guessed_scheme) in curl_url_get()
1452 punycode = (flags & CURLU_PUNYCODE) ? 1 : 0; in curl_url_get()
1453 depunyfy = (flags & CURLU_PUNY2IDN) ? 1 : 0; in curl_url_get()
1463 if(!ptr && (flags & CURLU_DEFAULT_PORT) && u->scheme) { in curl_url_get()
1477 (flags & CURLU_NO_DEFAULT_PORT)) in curl_url_get()
1490 if(ptr && !ptr[0] && !(flags & CURLU_GET_EMPTY)) in curl_url_get()
1497 if(!ptr && u->fragment_present && flags & CURLU_GET_EMPTY) in curl_url_get()
1508 u->fragment || (u->fragment_present && flags & CURLU_GET_EMPTY); in curl_url_get()
1511 (u->query_present && flags & CURLU_GET_EMPTY); in curl_url_get()
1512 punycode = (flags & CURLU_PUNYCODE) ? 1 : 0; in curl_url_get()
1513 depunyfy = (flags & CURLU_PUNY2IDN) ? 1 : 0; in curl_url_get()
1527 else if(flags & CURLU_DEFAULT_SCHEME) in curl_url_get()
1533 if(!port && (flags & CURLU_DEFAULT_PORT)) { in curl_url_get()
1545 (flags & CURLU_NO_DEFAULT_PORT)) in curl_url_get()
1549 if(h && !(h->flags & PROTOPT_URLOPTIONS)) in curl_url_get()
1595 if(!(flags & CURLU_NO_GUESS_SCHEME) || !u->guessed_scheme) in curl_url_get()
1703 const char *part, unsigned int flags) in curl_url_set() argument
1706 bool urlencode = (flags & CURLU_URLENCODE) ? 1 : 0; in curl_url_set()
1781 if(!(flags & CURLU_NON_SUPPORT_SCHEME) && !Curl_get_scheme_handler(part)) in curl_url_set()
1843 appendquery = (flags & CURLU_APPENDQUERY) ? 1 : 0; in curl_url_set()
1872 flags & (CURLU_GUESS_SCHEME| in curl_url_set()
1874 || curl_url_get(u, CURLUPART_URL, &oldurl, flags)) { in curl_url_set()
1875 return parseurl_and_replace(part, u, flags); in curl_url_set()
1885 uc = parseurl_and_replace(redired_url, u, flags); in curl_url_set()
1984 if(!n && (flags & CURLU_NO_AUTHORITY)) { in curl_url_set()