diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2009-03-17 10:58:16 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2009-03-17 10:58:16 +0000 |
commit | 8d719b57aa95b8a2baebd8fd13c6b80c2da84680 (patch) | |
tree | 13e4d5bd8f5ec8685c3764bbcb071bf99b576c75 /pcrecpp.h | |
parent | 546f82145e04a8f8f35c4a2a4e31787f53016fe4 (diff) | |
download | pcre-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.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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); |