diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-03 14:10:23 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2022-07-03 14:10:23 +0000 |
| commit | 145449b1e420787bb99721a429341fa6be3adfb6 (patch) | |
| tree | 1d56ae694a6de602e348dd80165cf881a36600ed /lldb/source/Commands/CommandObjectRegexCommand.h | |
| parent | ecbca9f5fb7d7613d2b94982c4825eb0d33d6842 (diff) | |
Diffstat (limited to 'lldb/source/Commands/CommandObjectRegexCommand.h')
| -rw-r--r-- | lldb/source/Commands/CommandObjectRegexCommand.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectRegexCommand.h b/lldb/source/Commands/CommandObjectRegexCommand.h index 2f65c2cd815d..b2a375c63a76 100644 --- a/lldb/source/Commands/CommandObjectRegexCommand.h +++ b/lldb/source/Commands/CommandObjectRegexCommand.h @@ -39,6 +39,11 @@ public: protected: bool DoExecute(llvm::StringRef command, CommandReturnObject &result) override; + /// Substitute variables of the format %\d+ in the input string. + static llvm::Expected<std::string> SubstituteVariables( + llvm::StringRef input, + const llvm::SmallVectorImpl<llvm::StringRef> &replacements); + struct Entry { RegularExpression regex; std::string command; |
