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

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

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

revision 199 by ph10, Tue Jul 31 14:39:09 2007 UTC revision 256 by ph10, Wed Sep 19 08:57:53 2007 UTC
# Line 68  class PCRECPP_EXP_DEFN StringPiece { Line 68  class PCRECPP_EXP_DEFN StringPiece {
68    StringPiece()    StringPiece()
69      : ptr_(NULL), length_(0) { }      : ptr_(NULL), length_(0) { }
70    StringPiece(const char* str)    StringPiece(const char* str)
71      : ptr_(str), length_(static_cast<int>(strlen(str))) { }      : ptr_(str), length_(static_cast<int>(strlen(ptr_))) { }
72      StringPiece(const unsigned char* str)
73        : ptr_(reinterpret_cast<const char*>(str)),
74          length_(static_cast<int>(strlen(ptr_))) { }
75    StringPiece(const string& str)    StringPiece(const string& str)
76      : ptr_(str.data()), length_(static_cast<int>(str.size())) { }      : ptr_(str.data()), length_(static_cast<int>(str.size())) { }
77    StringPiece(const char* offset, int len)    StringPiece(const char* offset, int len)

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

  ViewVC Help
Powered by ViewVC 1.1.5