|
LLDB mainline
|
#include <TildeExpressionResolver.h>
Public Member Functions | |
| virtual | ~TildeExpressionResolver () |
| virtual bool | ResolveExact (llvm::StringRef Expr, llvm::SmallVectorImpl< char > &Output)=0 |
| Resolve a Tilde Expression contained according to bash rules. | |
| virtual bool | ResolvePartial (llvm::StringRef Expr, llvm::StringSet<> &Output)=0 |
| Auto-complete a tilde expression with all matching values. | |
| bool | ResolveFullPath (llvm::StringRef Expr, llvm::SmallVectorImpl< char > &Output) |
| Resolve an entire path that begins with a tilde expression, replacing the username portion with the matched result. | |
Definition at line 20 of file TildeExpressionResolver.h.
|
virtualdefault |
|
pure virtual |
Resolve a Tilde Expression contained according to bash rules.
| Expr | Contains the tilde expression to resolve. A valid tilde expression must begin with a tilde and contain only non separator characters. |
| Output | Contains the resolved tilde expression, or the original input if the tilde expression could not be resolved. |
Expr was successfully resolved, false otherwise. Implemented in lldb_private::StandardTildeExpressionResolver.
Referenced by DiskFilesOrDirectories(), and ResolveFullPath().
| bool TildeExpressionResolver::ResolveFullPath | ( | llvm::StringRef | Expr, |
| llvm::SmallVectorImpl< char > & | Output ) |
Resolve an entire path that begins with a tilde expression, replacing the username portion with the matched result.
Definition at line 76 of file TildeExpressionResolver.cpp.
References ResolveExact().
|
pure virtual |
Auto-complete a tilde expression with all matching values.
| Expr | Contains the tilde expression prefix to resolve. See ResolveExact() for validity rules. |
| Output | Contains all matching home directories, each one itself unresolved (i.e. you need to call ResolveExact on each item to turn it into a real path). |
Implemented in lldb_private::StandardTildeExpressionResolver.
Referenced by DiskFilesOrDirectories().