Go to the documentation of this file.
16 #ifndef LLVM_SUPPORT_REGEX_H
17 #define LLVM_SUPPORT_REGEX_H
26 template<
typename T>
class SmallVectorImpl;
85 std::string *
Error =
nullptr)
const;
98 std::string *
Error =
nullptr)
const;
113 #endif // LLVM_SUPPORT_REGEX_H
This is an optimization pass for GlobalISel generic memory operations.
#define LLVM_MARK_AS_BITMASK_ENUM(LargestValue)
LLVM_MARK_AS_BITMASK_ENUM lets you opt in an individual enum type so you can perform bitwise operatio...
Regex & operator=(Regex regex)
bool match(StringRef String, SmallVectorImpl< StringRef > *Matches=nullptr, std::string *Error=nullptr) const
matches - Match the regex against a given String.
unsigned getNumMatches() const
getNumMatches - In a valid regex, return the number of parenthesized matches it contains.
@ BasicRegex
By default, the POSIX extended regular expression (ERE) syntax is assumed.
static bool isLiteralERE(StringRef Str)
If this function returns true, ^Str$ is an extended regular expression that matches Str and only Str.
std::string sub(StringRef Repl, StringRef String, std::string *Error=nullptr) const
sub - Return the result of replacing the first match of the regex in String with the Repl string.
void swap(llvm::BitVector &LHS, llvm::BitVector &RHS)
Implement std::swap in terms of BitVector swap.
StringRef - Represent a constant reference to a string, i.e.
@ IgnoreCase
Compile for matching that ignores upper/lower case distinctions.
@ Newline
Compile for newline-sensitive matching.
Lightweight error class with error context and mandatory checking.
static std::string escape(StringRef String)
Turn String into a regex by escaping its special characters.