summaryrefslogtreecommitdiff
path: root/pcrecpp.h
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-03-17 10:58:16 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-03-17 10:58:16 +0000
commit8d719b57aa95b8a2baebd8fd13c6b80c2da84680 (patch)
tree13e4d5bd8f5ec8685c3764bbcb071bf99b576c75 /pcrecpp.h
parent546f82145e04a8f8f35c4a2a4e31787f53016fe4 (diff)
downloadpcre-8d719b57aa95b8a2baebd8fd13c6b80c2da84680.tar.gz
Comments about no_arg in the C++ wrapper.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@390 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcrecpp.h')
-rw-r--r--pcrecpp.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/pcrecpp.h b/pcrecpp.h
index a87a816..7e79703 100644
--- a/pcrecpp.h
+++ b/pcrecpp.h
@@ -646,9 +646,15 @@ class PCRECPP_EXP_DEFN RE {
// regexp wasn't valid on construction.
int NumberOfCapturingGroups() const;
- // The default value for an argument, to indicate no arg was passed in
+ // The default value for an argument, to indicate the end of the argument
+ // list. This must be used only in optional argument defaults. It should NOT
+ // be passed explicitly. Some people have tried to use it like this:
+ //
+ // FullMatch(x, y, &z, no_arg, &w);
+ //
+ // This is a mistake, and will not work.
static Arg no_arg;
-
+
private:
void Init(const string& pattern, const RE_Options* options);