Lines Matching refs:Matches
86 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches, in match() argument
96 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; in match()
118 if (Matches) { // match position requested in match()
119 Matches->clear(); in match()
124 Matches->push_back(StringRef()); in match()
128 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match()
138 SmallVector<StringRef, 8> Matches; in sub() local
141 if (!match(String, &Matches, Error)) in sub()
146 std::string Res(String.begin(), Matches[0].begin()); in sub()
194 RefValue < Matches.size()) in sub()
195 Res += Matches[RefValue]; in sub()
204 Res += StringRef(Matches[0].end(), String.end() - Matches[0].end()); in sub()