Lines Matching refs:Matches
57 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){ in match() argument
58 unsigned nmatch = Matches ? preg->re_nsub+1 : 0; in match()
78 if (Matches) { // match position requested in match()
79 Matches->clear(); in match()
84 Matches->push_back(StringRef()); in match()
88 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match()
98 SmallVector<StringRef, 8> Matches; in sub() local
104 if (!match(String, &Matches)) in sub()
109 std::string Res(String.begin(), Matches[0].begin()); in sub()
157 RefValue < Matches.size()) in sub()
158 Res += Matches[RefValue]; in sub()
167 Res += StringRef(Matches[0].end(), String.end() - Matches[0].end()); in sub()