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