Lines Matching refs:Matches
59 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){ in match() argument
60 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; in match()
80 if (Matches) { // match position requested in match()
81 Matches->clear(); in match()
86 Matches->push_back(StringRef()); in match()
90 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match()
100 SmallVector<StringRef, 8> Matches; in sub() local
106 if (!match(String, &Matches)) in sub()
111 std::string Res(String.begin(), Matches[0].begin()); in sub()
159 RefValue < Matches.size()) in sub()
160 Res += Matches[RefValue]; in sub()
169 Res += StringRef(Matches[0].end(), String.end() - Matches[0].end()); in sub()