/[pcre]/code/trunk/pcrecpp.cc
ViewVC logotype

Diff of /code/trunk/pcrecpp.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 330 by ph10, Sat Apr 5 15:31:38 2008 UTC revision 331 by ph10, Sat Apr 5 15:38:53 2008 UTC
# Line 605  bool RE::Rewrite(string *out, const Stri Line 605  bool RE::Rewrite(string *out, const Stri
605          if (start >= 0)          if (start >= 0)
606            out->append(text.data() + start, vec[2 * n + 1] - start);            out->append(text.data() + start, vec[2 * n + 1] - start);
607        } else if (c == '\\') {        } else if (c == '\\') {
608          out->push_back('\\');          *out += '\\';
609        } else {        } else {
610          //fprintf(stderr, "invalid rewrite pattern: %.*s\n",          //fprintf(stderr, "invalid rewrite pattern: %.*s\n",
611          //        rewrite.size(), rewrite.data());          //        rewrite.size(), rewrite.data());
612          return false;          return false;
613        }        }
614      } else {      } else {
615        out->push_back(c);        *out += c;
616      }      }
617    }    }
618    return true;    return true;

Legend:
Removed from v.330  
changed lines
  Added in v.331

  ViewVC Help
Powered by ViewVC 1.1.5