Lines Matching refs:Matches
83 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches, in match() argument
93 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; in match()
119 if (Matches) { // match position requested in match()
120 Matches->clear(); in match()
125 Matches->push_back(StringRef()); in match()
129 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match()
139 SmallVector<StringRef, 8> Matches; in sub() local
142 if (!match(String, &Matches, Error)) in sub()
147 std::string Res(String.begin(), Matches[0].begin()); in sub()
179 if (RefValue < Matches.size()) in sub()
180 Res += Matches[RefValue]; in sub()
214 RefValue < Matches.size()) in sub()
215 Res += Matches[RefValue]; in sub()
224 Res += StringRef(Matches[0].end(), String.end() - Matches[0].end()); in sub()