Lines Matching refs:Body
41 getAbsolutePath(llvm::StringRef Authority, llvm::StringRef Body, in getAbsolutePath() argument
43 if (!Body.startswith("/")) in getAbsolutePath()
46 Body); in getAbsolutePath()
51 } else if (isWindowsPath(Body.substr(1))) { in getAbsolutePath()
53 Body.consume_front("/"); in getAbsolutePath()
55 Path.append(Body); in getAbsolutePath()
62 std::string Body; in uriFromAbsolutePath() local
71 Body = "/"; in uriFromAbsolutePath()
73 Body += llvm::sys::path::convert_to_slash(AbsolutePath); in uriFromAbsolutePath()
74 return URI("file", Authority, Body); in uriFromAbsolutePath()
155 llvm::StringRef Body) in URI() argument
156 : Scheme(Scheme), Authority(Authority), Body(Body) { in URI()
158 assert((Authority.empty() || Body.startswith("/")) && in URI()
166 if (Authority.empty() && Body.empty()) in toString()
170 if (!Authority.empty() || llvm::StringRef(Body).startswith("/")) in toString()
175 percentEncode(Body, Result); in toString()
196 U.Body = percentDecode(Uri); in parse()
252 return S->get()->getAbsolutePath(Uri.Authority, Uri.Body, HintPath); in resolve()
269 return S->getAbsolutePath(U->Authority, U->Body, HintPath); in resolvePath()