Lines Matching refs:rewrite
333 const StringPiece& rewrite) {
340 if (!pattern.Rewrite(&s, rewrite, *str, vec, matches))
351 const StringPiece& rewrite) {
390 pattern.Rewrite(&out, rewrite, *str, vec, matches);
407 const StringPiece &rewrite,
414 return pattern.Rewriterewrite, text, vec, matches);
611 bool PCRE::Rewrite(string *out, const StringPiece &rewrite,
614 for (const char *s = rewrite.data(), *end = s + rewrite.size();
627 << " in regexp " << rewrite.data();
637 PCREPORT(ERROR) << "invalid rewrite pattern: " << rewrite.data();
647 bool PCRE::CheckRewriteString(const StringPiece& rewrite, string* error) const {
649 for (const char *s = rewrite.data(), *end = s + rewrite.size();
656 *error = "Rewrite schema error: '\\' not allowed at end.";
664 *error = "Rewrite schema error: "
675 SStringPrintf(error, "Rewrite schema requests %d matches, "