LLVM: lib/Support/LSP/Protocol.cpp File Reference (original) (raw)
Go to the source code of this file.
| Functions | |
|---|---|
| template<typename T> | |
| static bool | mapOptOrNull (const llvm::json::Value &Params, llvm::StringLiteral Prop, T &Out, llvm::json::Path Path) |
| static bool | isWindowsPath (StringRef Path) |
| static bool | isNetworkPath (StringRef Path) |
| static bool | shouldEscapeInURI (unsigned char C) |
| static void | percentEncode (StringRef Content, std::string &Out) |
| Encodes a string according to percent-encoding. | |
| static std::string | percentDecode (StringRef Content) |
| Decodes a string according to percent-encoding. | |
| static StringSet & | getSupportedSchemes () |
| Return the set containing the supported URI schemes. | |
| static bool | isStructurallyValidScheme (StringRef Scheme) |
| Returns true if the given scheme is structurally valid, i.e. | |
| static llvm::Expected< std::string > | uriFromAbsolutePath (StringRef AbsolutePath, StringRef Scheme) |
| static llvm::Expected< std::string > | getAbsolutePath (StringRef Authority, StringRef Body) |
| static llvm::Expected< std::string > | parseFilePathFromURI (StringRef OrigUri) |
| static llvm::StringRef | toTextKind (MarkupKind Kind) |
◆ getAbsolutePath()
◆ getSupportedSchemes()
◆ isNetworkPath()
◆ isStructurallyValidScheme()
◆ isWindowsPath()
◆ mapOptOrNull()
◆ parseFilePathFromURI()
Definition at line 179 of file Protocol.cpp.
References llvm::StringRef::consume_front(), contains(), llvm::createStringError(), llvm::StringRef::find(), getAbsolutePath(), getSupportedSchemes(), llvm::inconvertibleErrorCode(), isStructurallyValidScheme(), llvm::StringRef::npos, percentDecode(), and llvm::StringRef::substr().
Referenced by llvm::lsp::URIForFile::fromURI().