/[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 308 by ph10, Mon Jan 21 14:57:19 2008 UTC revision 390 by ph10, Tue Mar 17 10:58:16 2009 UTC
# Line 620  class PCRECPP_EXP_DEFN RE { Line 620  class PCRECPP_EXP_DEFN RE {
620    //           1.5-2.0?    //           1.5-2.0?
621    // may become:    // may become:
622    //           1\.5\-2\.0\?    //           1\.5\-2\.0\?
623      // Note QuoteMeta behaves the same as perl's QuoteMeta function,
624      // *except* that it escapes the NUL character (\0) as backslash + 0,
625      // rather than backslash + NUL.
626    static string QuoteMeta(const StringPiece& unquoted);    static string QuoteMeta(const StringPiece& unquoted);
627    
628    
# Line 643  class PCRECPP_EXP_DEFN RE { Line 646  class PCRECPP_EXP_DEFN RE {
646    // regexp wasn't valid on construction.    // regexp wasn't valid on construction.
647    int NumberOfCapturingGroups() const;    int NumberOfCapturingGroups() const;
648    
649    // 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
650      // list. This must be used only in optional argument defaults. It should NOT
651      // be passed explicitly. Some people have tried to use it like this:
652      //
653      //   FullMatch(x, y, &z, no_arg, &w);
654      //
655      // This is a mistake, and will not work.
656    static Arg no_arg;    static Arg no_arg;
657    
658   private:   private:
659    
660    void Init(const string& pattern, const RE_Options* options);    void Init(const string& pattern, const RE_Options* options);

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

  ViewVC Help
Powered by ViewVC 1.1.5