/[pcre]/code/trunk/pcrecpparg.h.in
ViewVC logotype

Diff of /code/trunk/pcrecpparg.h.in

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

revision 93 by nigel, Sat Feb 24 21:41:42 2007 UTC revision 263 by ph10, Mon Nov 12 16:53:25 2007 UTC
# Line 35  Line 35 
35  #include <stdlib.h>    // for NULL  #include <stdlib.h>    // for NULL
36  #include <string>  #include <string>
37    
38    #include <pcre.h>
39    
40  namespace pcrecpp {  namespace pcrecpp {
41    
42  class StringPiece;  class StringPiece;
# Line 46  template <class T> Line 48  template <class T>
48  class _RE_MatchObject {  class _RE_MatchObject {
49   public:   public:
50    static inline bool Parse(const char* str, int n, void* dest) {    static inline bool Parse(const char* str, int n, void* dest) {
51        if (dest == NULL) return true;
52      T* object = reinterpret_cast<T*>(dest);      T* object = reinterpret_cast<T*>(dest);
53      return object->ParseFrom(str, n);      return object->ParseFrom(str, n);
54    }    }
55  };  };
56    
57  class Arg {  class PCRECPP_EXP_DEFN Arg {
58   public:   public:
59    // Empty constructor so we can declare arrays of Arg    // Empty constructor so we can declare arrays of Arg
60    Arg();    Arg();

Legend:
Removed from v.93  
changed lines
  Added in v.263

  ViewVC Help
Powered by ViewVC 1.1.5