src/lib/url/url_canon_relative.cc
// Resolves a relative URL that happens to be an absolute file path. Examples
// include: "//hostname/path", "/c:/foo", and "//hostname/c:/foo".
Resolves a relative URL that happens to be an absolute file path.
Resolves a relative URL that happens to be an absolute file path .
bool DoResolveAbsoluteFile(const char* relative_url, const Component& relative_component,
                           CharsetConverter* query_converter, CanonOutput* output,
                           Parsed* out_parsed) {
  Parsed relative_parsed;
  ParseFileURL(&relative_url[relative_component.begin], relative_component.len(), &relative_parsed);
  return CanonicalizeFileURL(&relative_url[relative_component.begin], relative_component.len(),
                             relative_parsed, query_converter, output, out_parsed);
}
bool DoResolveAbsoluteFile ( const char * relative_url , const Component & relative_component , CharsetConverter * query_converter , CanonOutput * output , Parsed * out_parsed ) { Parsed relative_parsed ; ParseFileURL ( & relative_url [ relative_component . begin ] , relative_component . len ( ) , & relative_parsed ) ; return CanonicalizeFileURL ( & relative_url [ relative_component . begin ] , relative_component . len ( ) , relative_parsed , query_converter , output , out_parsed ) ; }
Resolves a relative URL that happens to be an absolute file path.
Resolves a relative URL that happens to be an absolute file path .
// Parse the file URL. The file URl parsing function uses the same logic // as we do for determining if the file is absolute, in which case it will // not bother to look for a scheme.