class StringSubstitution
Declaration
class StringSubstitution : public Substitution { /* full declaration omitted */ };
Description
Class representing a substitution to perform in the RegExStr string.
Declared at: llvm/lib/Support/FileCheckImpl.h:206
Inherits from: Substitution
Member Variables
Inherited from Substitution:
Method Overview
- public StringSubstitution(llvm::FileCheckPatternContext * Context, llvm::StringRef VarName, size_t InsertIdx)
- public Expected<std::string> getResult() const
Inherited from Substitution:
Methods
¶StringSubstitution(
llvm::FileCheckPatternContext* Context,
llvm::StringRef VarName,
size_t InsertIdx)
StringSubstitution(
llvm::FileCheckPatternContext* Context,
llvm::StringRef VarName,
size_t InsertIdx)
Declared at: llvm/lib/Support/FileCheckImpl.h:208
Parameters
- llvm::FileCheckPatternContext* Context
- llvm::StringRef VarName
- size_t InsertIdx
¶Expected<std::string> getResult() const
Expected<std::string> getResult() const
Declared at: llvm/lib/Support/FileCheckImpl.h:214
Returns
the text that the string variable in this substitution matched when defined, or an error if the variable is undefined.