summaryrefslogtreecommitdiff
path: root/pcrecpp.cc
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-13 21:45:51 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-13 21:49:38 +0100
commite7469a3846baf3cc443943106404d90473d5a77a (patch)
tree90172062a643ec18261611b5c9e269f28c66704e /pcrecpp.cc
parentae7f22768e13f01eb337330332bf18780b8104c0 (diff)
Reapply patches
* dpkg-source --before-build .
Diffstat (limited to 'pcrecpp.cc')
-rw-r--r--pcrecpp.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/pcrecpp.cc b/pcrecpp.cc
index d09c9ab..728b074 100644
--- a/pcrecpp.cc
+++ b/pcrecpp.cc
@@ -80,6 +80,12 @@ static const string empty_string;
// If the user doesn't ask for any options, we just use this one
static RE_Options default_options;
+// PCRE6.x compatible API
+void RE::Init(const char *c_pat, const RE_Options* options) {
+ const string cxx_pat(c_pat);
+ Init(cxx_pat, options);
+}
+
void RE::Init(const string& pat, const RE_Options* options) {
pattern_ = pat;
if (options == NULL) {