diff options
author | nigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-02-24 21:40:59 +0000 |
---|---|---|
committer | nigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-02-24 21:40:59 +0000 |
commit | f82b62380bd773b22a4a5d28d1a403ffd54c5392 (patch) | |
tree | d8fd1e5c25d0e781ca46b6b570beedaa15a81019 /pcrecpp.cc | |
parent | 477806cfbeb607865593eb63f0216d854a2bbf6f (diff) | |
download | pcre-f82b62380bd773b22a4a5d28d1a403ffd54c5392.tar.gz |
Load pcre-6.2 into code/trunk.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@81 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcrecpp.cc')
-rw-r--r-- | pcrecpp.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -36,6 +36,7 @@ #include <assert.h> #include <errno.h> #include <string> +#include <algorithm> #include "config.h" // We need this to compile the proper dll on windows/msys. This is copied // from pcre_internal.h. It would probably be better just to include that. @@ -97,8 +98,7 @@ RE::~RE() { pcre* RE::Compile(Anchor anchor) { // First, convert RE_Options into pcre options int pcre_options = 0; - if (options_.utf8()) - pcre_options |= PCRE_UTF8; + pcre_options = options_.all_options(); // Special treatment for anchoring. This is needed because at // runtime pcre only provides an option for anchoring at the @@ -378,7 +378,7 @@ bool RE::Extract(const StringPiece& rewrite, int matches = TryMatch(text, 0, UNANCHORED, vec, kVecSize); if (matches == 0) return false; - out->clear(); + out->erase(); return Rewrite(out, rewrite, text, vec, matches); } |