Lines Matching defs:flags
392 static CURLUcode junkscan(const char *url, size_t *urllen, unsigned int flags)
410 (!(flags & CURLU_ALLOW_SPACE) && strchr(url, ' ')))
427 unsigned int flags,
466 (h && (h->flags & PROTOPT_URLOPTIONS)) ?
474 if(flags & CURLU_DISALLOW_USER) {
797 unsigned int flags,
808 uc = parse_hostname_login(u, auth, authlen, flags, &offset);
850 unsigned int flags)
858 result = parse_authority(u, authority, strlen(authority), flags,
1000 static CURLUcode parseurl(const char *url, CURLU *u, unsigned int flags)
1017 result = junkscan(url, &urllen, flags);
1022 flags & (CURLU_GUESS_SCHEME|
1156 !(flags & CURLU_NON_SUPPORT_SCHEME)) {
1171 if(!(flags & (CURLU_DEFAULT_SCHEME|CURLU_GUESS_SCHEME))) {
1175 if(flags & CURLU_DEFAULT_SCHEME)
1200 result = parse_authority(u, hostp, hostlen, flags, &host, schemelen);
1204 if((flags & CURLU_GUESS_SCHEME) && !schemep) {
1229 else if(flags & CURLU_NO_AUTHORITY) {
1247 if(flags & CURLU_URLENCODE) {
1273 if(flags & CURLU_URLENCODE) {
1300 if(pathlen && (flags & CURLU_URLENCODE)) {
1323 else if(flags & CURLU_URLENCODE)
1327 if(!(flags & CURLU_PATH_AS_IS)) {
1355 unsigned int flags)
1360 result = parseurl(url, &tmpurl, flags);
1415 char **part, unsigned int flags)
1420 bool urldecode = (flags & CURLU_URLDECODE)?1:0;
1421 bool urlencode = (flags & CURLU_URLENCODE)?1:0;
1425 (void)flags;
1453 punycode = (flags & CURLU_PUNYCODE)?1:0;
1454 depunyfy = (flags & CURLU_PUNY2IDN)?1:0;
1464 if(!ptr && (flags & CURLU_DEFAULT_PORT) && u->scheme) {
1478 (flags & CURLU_NO_DEFAULT_PORT))
1502 punycode = (flags & CURLU_PUNYCODE)?1:0;
1503 depunyfy = (flags & CURLU_PUNY2IDN)?1:0;
1516 else if(flags & CURLU_DEFAULT_SCHEME)
1522 if(!port && (flags & CURLU_DEFAULT_PORT)) {
1534 (flags & CURLU_NO_DEFAULT_PORT))
1538 if(h && !(h->flags & PROTOPT_URLOPTIONS))
1687 const char *part, unsigned int flags)
1691 bool urlencode = (flags & CURLU_URLENCODE)? 1 : 0;
1763 if(!(flags & CURLU_NON_SUPPORT_SCHEME) && !Curl_get_scheme_handler(part))
1816 appendquery = (flags & CURLU_APPENDQUERY)?1:0;
1843 flags & (CURLU_GUESS_SCHEME|
1845 || curl_url_get(u, CURLUPART_URL, &oldurl, flags)) {
1846 return parseurl_and_replace(part, u, flags);
1856 uc = parseurl_and_replace(redired_url, u, flags);
1955 if(!n && (flags & CURLU_NO_AUTHORITY)) {