Lines Matching refs:String
86 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches, in match() argument
102 pm[0].rm_eo = String.size(); in match()
104 int rc = llvm_regexec(preg, String.data(), nmatch, pm.data(), REG_STARTEND); in match()
128 Matches->push_back(StringRef(String.data()+pm[i].rm_so, in match()
136 std::string Regex::sub(StringRef Repl, StringRef String, in sub() argument
141 if (!match(String, &Matches, Error)) in sub()
142 return std::string(String); in sub()
146 std::string Res(String.begin(), Matches[0].begin()); in sub()
204 Res += StringRef(Matches[0].end(), String.end() - Matches[0].end()); in sub()
219 std::string Regex::escape(StringRef String) { in escape() argument
221 for (char C : String) { in escape()