Home | History | Annotate | Download | only in Support

Lines Matching refs:StringRef

22 Regex::Regex(StringRef regex, unsigned Flags) {
59 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){
86 Matches->push_back(StringRef());
90 Matches->push_back(StringRef(String.data()+pm[i].rm_so,
98 std::string Regex::sub(StringRef Repl, StringRef String,
100 SmallVector<StringRef, 8> Matches;
116 std::pair<StringRef, StringRef> Split = Repl.split('\\');
154 StringRef Ref = Repl.slice(0, Repl.find_first_not_of("0123456789"));
169 Res += StringRef(Matches[0].end(), String.end() - Matches[0].end());
177 bool Regex::isLiteralERE(StringRef Str) {
181 return Str.find_first_of(RegexMetachars) == StringRef::npos;
184 std::string Regex::escape(StringRef String) {