Lines Matching refs:Repl
137 std::string Regex::sub(StringRef Repl, StringRef String,
150 while (!Repl.empty()) {
152 std::pair<StringRef, StringRef> Split = Repl.split('\\');
159 if (Repl.size() != Split.first.size() &&
166 Repl = Split.second;
169 switch (Repl[0]) {
173 if (Repl.size() >= 4 && Repl[1] == '<') {
174 size_t End = Repl.find('>');
175 StringRef Ref = Repl.slice(2, End);
178 Repl = Repl.substr(End + 1);
191 Res += Repl[0];
192 Repl = Repl.substr(1);
198 Repl = Repl.substr(1);
202 Repl = Repl.substr(1);
209 StringRef Ref = Repl.slice(0, Repl.find_first_not_of("0123456789"));
210 Repl = Repl.substr(Ref.size());