Lines Matching refs:ref
760 * relative-ref = relative-part [ "?" query ] [ "#" fragment ]
859 * URI-reference = URI / relative-ref
923 * URI-reference = URI / relative-ref
939 * URI-reference = URI / relative-ref
1962 xmlURIPtr ref = NULL;
1978 ref = xmlCreateURI();
1979 if (ref == NULL)
1981 ret = xmlParseURIReference(ref, (const char *) URI);
1988 if ((ref != NULL) && (ref->scheme != NULL)) {
2004 if (ref)
2005 val = xmlSaveUri(ref);
2008 if (ref == NULL) {
2035 if ((ref->scheme == NULL) && (ref->path == NULL) &&
2036 ((ref->authority == NULL) && (ref->server == NULL))) {
2049 if (ref->query_raw != NULL)
2050 res->query_raw = xmlMemStrdup (ref->query_raw);
2051 else if (ref->query != NULL)
2052 res->query = xmlMemStrdup(ref->query);
2057 if (ref->fragment != NULL)
2058 res->fragment = xmlMemStrdup(ref->fragment);
2068 if (ref->scheme != NULL) {
2069 val = xmlSaveUri(ref);
2075 if (ref->query_raw != NULL)
2076 res->query_raw = xmlMemStrdup(ref->query_raw);
2077 else if (ref->query != NULL)
2078 res->query = xmlMemStrdup(ref->query);
2079 if (ref->fragment != NULL)
2080 res->fragment = xmlMemStrdup(ref->fragment);
2089 if ((ref->authority != NULL) || (ref->server != NULL)) {
2090 if (ref->authority != NULL)
2091 res->authority = xmlMemStrdup(ref->authority);
2093 res->server = xmlMemStrdup(ref->server);
2094 if (ref->user != NULL)
2095 res->user = xmlMemStrdup(ref->user);
2096 res->port = ref->port;
2098 if (ref->path != NULL)
2099 res->path = xmlMemStrdup(ref->path);
2115 if ((ref->path != NULL) && (ref->path[0] == '/')) {
2116 res->path = xmlMemStrdup(ref->path);
2130 if (ref->path != NULL)
2131 len += strlen(ref->path);
2169 if (ref->path != NULL && ref->path[0] != 0) {
2176 while (ref->path[indx] != 0) {
2177 res->path[out++] = ref->path[indx++];
2197 if (ref != NULL)
2198 xmlFreeURI(ref);
2247 xmlURIPtr ref = NULL;
2258 ref = xmlCreateURI ();
2259 if (ref == NULL)
2263 ret = xmlParseURIReference (ref, (const char *) URI);
2267 ref->path = (char *)xmlStrdup(URI);
2290 if ((ref->scheme != NULL) &&
2292 (xmlStrcmp ((xmlChar *)bas->scheme, (xmlChar *)ref->scheme)) ||
2293 (xmlStrcmp ((xmlChar *)bas->server, (xmlChar *)ref->server)))) {
2297 if (xmlStrEqual((xmlChar *)bas->path, (xmlChar *)ref->path)) {
2302 val = xmlStrdup((xmlChar *)ref->path);
2305 if (ref->path == NULL) {
2306 ref->path = (char *) "/";
2317 if (ref->path != NULL) {
2318 uptr = (xmlChar *) ref->path;
2327 if (ref->path == NULL) {
2338 if ((ref->path[pos] == '.') && (ref->path[pos+1] == '/'))
2342 else if ((*bptr == '/') && (ref->path[pos] != '/'))
2344 while ((bptr[pos] == ref->path[pos]) && (bptr[pos] != 0))
2347 if (bptr[pos] == ref->path[pos]) {
2357 if ((ref->path[ix] == '/') && (ix > 0))
2359 else if ((ref->path[ix] == 0) && (ix > 1) && (ref->path[ix - 1] == '/'))
2362 if (ref->path[ix] == '/')
2366 uptr = (xmlChar *)ref->path;
2369 uptr = (xmlChar *)&ref->path[ix];
2375 if (bptr[pos] != ref->path[pos]) {/* check for trivial URI == base */
2438 ref->path = NULL;
2439 if (ref != NULL)
2440 xmlFreeURI (ref);