Lines Matching refs:ref
793 * relative-ref = relative-part [ "?" query ] [ "#" fragment ]
892 * URI-reference = URI / relative-ref
956 * URI-reference = URI / relative-ref
972 * URI-reference = URI / relative-ref
1884 xmlURIPtr ref = NULL;
1900 ref = xmlCreateURI();
1901 if (ref == NULL)
1903 ret = xmlParseURIReference(ref, (const char *) URI);
1910 if ((ref != NULL) && (ref->scheme != NULL)) {
1926 if (ref)
1927 val = xmlSaveUri(ref);
1930 ref == NULL) {
1957 if ((ref->scheme == NULL) && (ref->path == NULL) &&
1958 ((ref->authority == NULL) && (ref->server == NULL))) {
1971 if (ref->query_raw != NULL)
1972 res->query_raw = xmlMemStrdup (ref->query_raw);
1973 else if (ref->query != NULL)
1974 res->query = xmlMemStrdup(ref->query);
1979 if (ref->fragment != NULL)
1980 res->fragment = xmlMemStrdup(ref->fragment);
1990 if (ref->scheme != NULL) {
1991 val = xmlSaveUri(ref);
1997 if (ref->query_raw != NULL)
1998 res->query_raw = xmlMemStrdup(ref->query_raw);
1999 else if (ref->query != NULL)
2000 res->query = xmlMemStrdup(ref->query);
2001 if (ref->fragment != NULL)
2002 res->fragment = xmlMemStrdup(ref->fragment);
2011 if ((ref->authority != NULL) || (ref->server != NULL)) {
2012 if (ref->authority != NULL)
2013 res->authority = xmlMemStrdup(ref->authority);
2015 res->server = xmlMemStrdup(ref->server);
2016 if (ref->user != NULL)
2017 res->user = xmlMemStrdup(ref->user);
2018 res->port = ref->port;
2020 if (ref->path != NULL)
2021 res->path = xmlMemStrdup(ref->path);
2037 if ((ref->path != NULL) && (ref->path[0] == '/')) {
2038 res->path = xmlMemStrdup(ref->path);
2052 if (ref->path != NULL)
2053 len += strlen(ref->path);
2090 if (ref->path != NULL && ref->path[0] != 0) {
2097 while (ref->path[indx] != 0) {
2098 res->path[out++] = ref->path[indx++];
2118 if (ref != NULL)
2119 xmlFreeURI(ref);
2168 xmlURIPtr ref = NULL;
2179 ref = xmlCreateURI ();
2180 if (ref == NULL)
2184 ret = xmlParseURIReference (ref, (const char *) URI);
2188 ref->path = (char *)xmlStrdup(URI);
2211 if ((ref->scheme != NULL) &&
2213 (xmlStrcmp ((xmlChar *)bas->scheme, (xmlChar *)ref->scheme)) ||
2214 (xmlStrcmp ((xmlChar *)bas->server, (xmlChar *)ref->server)))) {
2218 if (xmlStrEqual((xmlChar *)bas->path, (xmlChar *)ref->path)) {
2223 val = xmlStrdup((xmlChar *)ref->path);
2226 if (ref->path == NULL) {
2227 ref->path = (char *) "/";
2238 if (ref->path != NULL) {
2239 uptr = (xmlChar *) ref->path;
2248 if (ref->path == NULL) {
2259 if ((ref->path[pos] == '.') && (ref->path[pos+1] == '/'))
2263 else if ((*bptr == '/') && (ref->path[pos] != '/'))
2265 while ((bptr[pos] == ref->path[pos]) && (bptr[pos] != 0))
2268 if (bptr[pos] == ref->path[pos]) {
2278 if ((ref->path[ix] == '/') && (ix > 0))
2280 else if ((ref->path[ix] == 0) && (ix > 1) && (ref->path[ix - 1] == '/'))
2283 if (ref->path[ix] == '/')
2287 uptr = (xmlChar *)ref->path;
2290 uptr = (xmlChar *)&ref->path[ix];
2296 if (bptr[pos] != ref->path[pos]) {/* check for trivial URI == base */
2358 ref->path = NULL;
2359 if (ref != NULL)
2360 xmlFreeURI (ref);