summaryrefslogtreecommitdiff
path: root/pcrecpparg.h.in
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-11-12 16:53:25 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-11-12 16:53:25 +0000
commit68565d28dbbdfa6d073328347815306dd96b37a6 (patch)
tree47ec4db1f1fdd0e9eebc99e80e964421556d7991 /pcrecpparg.h.in
parent9c74abda0f1247b4d108930b1a396161cf7a9cb6 (diff)
downloadpcre-68565d28dbbdfa6d073328347815306dd96b37a6.tar.gz
Apply Craig's patch, which makes it possible to "ignore" values in parens
when parsing an RE using the c++ wrapper. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@263 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcrecpparg.h.in')
-rw-r--r--pcrecpparg.h.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/pcrecpparg.h.in b/pcrecpparg.h.in
index 83cc44b..61bcab5 100644
--- a/pcrecpparg.h.in
+++ b/pcrecpparg.h.in
@@ -48,6 +48,7 @@ template <class T>
class _RE_MatchObject {
public:
static inline bool Parse(const char* str, int n, void* dest) {
+ if (dest == NULL) return true;
T* object = reinterpret_cast<T*>(dest);
return object->ParseFrom(str, n);
}