Lines Matching defs:path
136 /* path */
137 uc->path = cur;
152 static int is_fq_dos_path(const char *path)
154 if ((path[0] >= 'a' && path[0] <= 'z' || path[0] >= 'A' && path[0] <= 'Z') &&
155 path[1] == ':' &&
156 (path[2] == '/' || path[2] == '\\'))
158 if ((path[0] == '/' || path[0] == '\\') &&
159 (path[1] == '/' || path[1] == '\\'))
197 char *out, *out_end, *path;
230 if (is_fq_dos_path(base) || av_strstart(base, "file:", NULL) || ub.path == ub.url) {
250 KEEP(path,);
264 COPY(uc.url, uc.path);
266 use_base_path = URL_COMPONENT_HAVE(ub, path) && keep <= ub.path;
267 if (uc.path > uc.url)
269 if (URL_COMPONENT_HAVE(uc, path) && uc.path[0] == '/')
273 if (URL_COMPONENT_HAVE(uc, path))
274 while (base_path_end > ub.path && !strchr(base_separators, base_path_end[-1]))
277 if (keep > ub.path)
283 /* No path at all, leave it */
284 if (!use_base_path && !URL_COMPONENT_HAVE(uc, path))
290 path = out;
292 ret = append_path(path, out_end, &out, ub.path, base_path_end);
296 if (URL_COMPONENT_HAVE(uc, path)) {
297 ret = append_path(path, out_end, &out, uc.path, uc.url_component_end_path);
303 COPY(ub.path, base_path_end);
304 COPY(uc.path, uc.url_component_end_path);