/[pcre]/code/trunk/pcrecpp.h
ViewVC logotype

Diff of /code/trunk/pcrecpp.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 256 by ph10, Wed Sep 19 08:57:53 2007 UTC revision 308 by ph10, Mon Jan 21 14:57:19 2008 UTC
# Line 346  namespace pcrecpp { Line 346  namespace pcrecpp {
346  #define PCRE_IS_SET(o)  \  #define PCRE_IS_SET(o)  \
347          (all_options_ & o) == o          (all_options_ & o) == o
348    
 // We convert user-passed pointers into special Arg objects  
 PCRECPP_EXP_DECL Arg no_arg;  
   
349  /***** Compiling regular expressions: the RE class *****/  /***** Compiling regular expressions: the RE class *****/
350    
351  // RE_Options allow you to set options to be passed along to pcre,  // RE_Options allow you to set options to be passed along to pcre,
# Line 403  class PCRECPP_EXP_DEFN RE_Options { Line 400  class PCRECPP_EXP_DEFN RE_Options {
400      return PCRE_IS_SET(PCRE_DOTALL);      return PCRE_IS_SET(PCRE_DOTALL);
401    }    }
402    RE_Options &set_dotall(bool x) {    RE_Options &set_dotall(bool x) {
403      PCRE_SET_OR_CLEAR(x,PCRE_DOTALL);      PCRE_SET_OR_CLEAR(x, PCRE_DOTALL);
404    }    }
405    
406    bool extended() const {    bool extended() const {
407      return PCRE_IS_SET(PCRE_EXTENDED);      return PCRE_IS_SET(PCRE_EXTENDED);
408    }    }
409    RE_Options &set_extended(bool x) {    RE_Options &set_extended(bool x) {
410      PCRE_SET_OR_CLEAR(x,PCRE_EXTENDED);      PCRE_SET_OR_CLEAR(x, PCRE_EXTENDED);
411    }    }
412    
413    bool dollar_endonly() const {    bool dollar_endonly() const {
414      return PCRE_IS_SET(PCRE_DOLLAR_ENDONLY);      return PCRE_IS_SET(PCRE_DOLLAR_ENDONLY);
415    }    }
416    RE_Options &set_dollar_endonly(bool x) {    RE_Options &set_dollar_endonly(bool x) {
417      PCRE_SET_OR_CLEAR(x,PCRE_DOLLAR_ENDONLY);      PCRE_SET_OR_CLEAR(x, PCRE_DOLLAR_ENDONLY);
418    }    }
419    
420    bool extra() const {    bool extra() const {
421      return PCRE_IS_SET( PCRE_EXTRA);      return PCRE_IS_SET(PCRE_EXTRA);
422    }    }
423    RE_Options &set_extra(bool x) {    RE_Options &set_extra(bool x) {
424      PCRE_SET_OR_CLEAR(x, PCRE_EXTRA);      PCRE_SET_OR_CLEAR(x, PCRE_EXTRA);
# Line 646  class PCRECPP_EXP_DEFN RE { Line 643  class PCRECPP_EXP_DEFN RE {
643    // regexp wasn't valid on construction.    // regexp wasn't valid on construction.
644    int NumberOfCapturingGroups() const;    int NumberOfCapturingGroups() const;
645    
646      // The default value for an argument, to indicate no arg was passed in
647      static Arg no_arg;
648    
649   private:   private:
650    
651    void Init(const string& pattern, const RE_Options* options);    void Init(const string& pattern, const RE_Options* options);

Legend:
Removed from v.256  
changed lines
  Added in v.308

  ViewVC Help
Powered by ViewVC 1.1.5