Lines Matching refs:Regex
1 //===-- Regex.cpp - Regular Expression matcher implementation -------------===//
13 #include "llvm/Support/Regex.h"
24 Regex::Regex() : preg(nullptr), error(REG_BADPAT) {}
26 Regex::Regex(StringRef regex, RegexFlags Flags) {
39 Regex::Regex(StringRef regex, unsigned Flags)
40 : Regex(regex, static_cast<RegexFlags>(Flags)) {}
42 Regex::Regex(Regex &®ex) {
49 Regex::~Regex() {
69 bool Regex::isValid(std::string &Error) const {
79 unsigned Regex::getNumMatches() const {
83 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches,
137 std::string Regex::sub(StringRef Repl, StringRef String,
232 bool Regex::isLiteralERE(StringRef Str) {
239 std::string Regex::escape(StringRef String) {