Lines Matching refs:bas

1885     xmlURIPtr bas = NULL;  in xmlBuildURI()  local
1920 bas = xmlCreateURI(); in xmlBuildURI()
1921 if (bas == NULL) in xmlBuildURI()
1923 ret = xmlParseURIReference(bas, (const char *) base); in xmlBuildURI()
1934 if (bas->fragment != NULL) { in xmlBuildURI()
1935 xmlFree(bas->fragment); in xmlBuildURI()
1936 bas->fragment = NULL; in xmlBuildURI()
1938 val = xmlSaveUri(bas); in xmlBuildURI()
1959 if (bas->scheme != NULL) in xmlBuildURI()
1960 res->scheme = xmlMemStrdup(bas->scheme); in xmlBuildURI()
1961 if (bas->authority != NULL) in xmlBuildURI()
1962 res->authority = xmlMemStrdup(bas->authority); in xmlBuildURI()
1963 else if (bas->server != NULL) { in xmlBuildURI()
1964 res->server = xmlMemStrdup(bas->server); in xmlBuildURI()
1965 if (bas->user != NULL) in xmlBuildURI()
1966 res->user = xmlMemStrdup(bas->user); in xmlBuildURI()
1967 res->port = bas->port; in xmlBuildURI()
1969 if (bas->path != NULL) in xmlBuildURI()
1970 res->path = xmlMemStrdup(bas->path); in xmlBuildURI()
1975 else if (bas->query_raw != NULL) in xmlBuildURI()
1976 res->query_raw = xmlMemStrdup(bas->query_raw); in xmlBuildURI()
1977 else if (bas->query != NULL) in xmlBuildURI()
1978 res->query = xmlMemStrdup(bas->query); in xmlBuildURI()
1994 if (bas->scheme != NULL) in xmlBuildURI()
1995 res->scheme = xmlMemStrdup(bas->scheme); in xmlBuildURI()
2024 if (bas->authority != NULL) in xmlBuildURI()
2025 res->authority = xmlMemStrdup(bas->authority); in xmlBuildURI()
2026 else if (bas->server != NULL) { in xmlBuildURI()
2027 res->server = xmlMemStrdup(bas->server); in xmlBuildURI()
2028 if (bas->user != NULL) in xmlBuildURI()
2029 res->user = xmlMemStrdup(bas->user); in xmlBuildURI()
2030 res->port = bas->port; in xmlBuildURI()
2054 if (bas->path != NULL) in xmlBuildURI()
2055 len += strlen(bas->path); in xmlBuildURI()
2070 if (bas->path != NULL) { in xmlBuildURI()
2071 while (bas->path[cur] != 0) { in xmlBuildURI()
2072 while ((bas->path[cur] != 0) && (bas->path[cur] != '/')) in xmlBuildURI()
2074 if (bas->path[cur] == 0) in xmlBuildURI()
2079 res->path[out] = bas->path[out]; in xmlBuildURI()
2095 if ((out == 0) && (bas->server != NULL)) in xmlBuildURI()
2120 if (bas != NULL) in xmlBuildURI()
2121 xmlFreeURI(bas); in xmlBuildURI()
2169 xmlURIPtr bas = NULL; in xmlBuildRelativeURI() local
2197 bas = xmlCreateURI (); in xmlBuildRelativeURI()
2198 if (bas == NULL) in xmlBuildRelativeURI()
2201 ret = xmlParseURIReference (bas, (const char *) base); in xmlBuildRelativeURI()
2205 bas->path = (char *)xmlStrdup(base); in xmlBuildRelativeURI()
2212 ((bas->scheme == NULL) || in xmlBuildRelativeURI()
2213 (xmlStrcmp ((xmlChar *)bas->scheme, (xmlChar *)ref->scheme)) || in xmlBuildRelativeURI()
2214 (xmlStrcmp ((xmlChar *)bas->server, (xmlChar *)ref->server)))) { in xmlBuildRelativeURI()
2218 if (xmlStrEqual((xmlChar *)bas->path, (xmlChar *)ref->path)) { in xmlBuildRelativeURI()
2222 if (bas->path == NULL) { in xmlBuildRelativeURI()
2237 if (bas->path == NULL) { in xmlBuildRelativeURI()
2247 bptr = (xmlChar *)bas->path; in xmlBuildRelativeURI()
2361 if (bas != NULL) in xmlBuildRelativeURI()
2362 xmlFreeURI (bas); in xmlBuildRelativeURI()