Lines Matching refs:StringRef
22 Regex::Regex(StringRef regex, unsigned Flags) {
55 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){
82 Matches->push_back(StringRef());
86 Matches->push_back(StringRef(String.data()+pm[i].rm_so,
94 std::string Regex::sub(StringRef Repl, StringRef String,
96 SmallVector<StringRef, 8> Matches;
112 std::pair<StringRef, StringRef> Split = Repl.split('\\');
150 StringRef Ref = Repl.slice(0, Repl.find_first_not_of("0123456789"));
165 Res += StringRef(Matches[0].end(), String.end() - Matches[0].end());