Home | History | Annotate | Download | only in Support

Lines Matching refs:Matches

50 /// matches it contains.
55 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){
56 unsigned nmatch = Matches ? preg->re_nsub+1 : 0;
76 if (Matches) { // match position requested
77 Matches->clear();
82 Matches->push_back(StringRef());
86 Matches->push_back(StringRef(String.data()+pm[i].rm_so,
96 SmallVector<StringRef, 8> Matches;
102 if (!match(String, &Matches))
107 std::string Res(String.begin(), Matches[0].begin());
155 RefValue < Matches.size())
156 Res += Matches[RefValue];
165 Res += StringRef(Matches[0].end(), String.end() - Matches[0].end());