X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=pcrecpp.cc;h=728b074f815628bf78038a3d5c905840db6e1cf1;hb=e7469a3846baf3cc443943106404d90473d5a77a;hp=d09c9abc51682aef5cdb66ac839916a48a0f9dd7;hpb=cba4af1b7643b0da036ff78fd152f74a906c4e97;p=pcre3.git 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) {