Lines Matching defs:Regex
1 //===-- Regex.cpp - Regular Expression matcher implementation -------------===//
13 #include "llvm/Support/Regex.h"
26 Regex::Regex() : preg(nullptr), error(REG_BADPAT) {}
28 Regex::Regex(StringRef regex, unsigned Flags) {
41 Regex::Regex(Regex &®ex) {
48 Regex::~Regex() {
68 bool Regex::isValid(std::string &Error) const {
78 unsigned Regex::getNumMatches() const {
82 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches,
132 std::string Regex::sub(StringRef Repl, StringRef String,
208 bool Regex::isLiteralERE(StringRef Str) {
215 std::string Regex::escape(StringRef String) {