/[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 200 by ph10, Wed Aug 1 09:10:40 2007 UTC revision 256 by ph10, Wed Sep 19 08:57:53 2007 UTC
# Line 491  class PCRECPP_EXP_DEFN RE { Line 491  class PCRECPP_EXP_DEFN RE {
491   public:   public:
492    // We provide implicit conversions from strings so that users can    // We provide implicit conversions from strings so that users can
493    // pass in a string or a "const char*" wherever an "RE" is expected.    // pass in a string or a "const char*" wherever an "RE" is expected.
   RE(const char* pat) { Init(pat, NULL); }  
   RE(const char *pat, const RE_Options& option) { Init(pat, &option); }  
494    RE(const string& pat) { Init(pat, NULL); }    RE(const string& pat) { Init(pat, NULL); }
495    RE(const string& pat, const RE_Options& option) { Init(pat, &option); }    RE(const string& pat, const RE_Options& option) { Init(pat, &option); }
496      RE(const char* pat) { Init(pat, NULL); }
497      RE(const char* pat, const RE_Options& option) { Init(pat, &option); }
498      RE(const unsigned char* pat) {
499        Init(reinterpret_cast<const char*>(pat), NULL);
500      }
501      RE(const unsigned char* pat, const RE_Options& option) {
502        Init(reinterpret_cast<const char*>(pat), &option);
503      }
504    
505    // Copy constructor & assignment - note that these are expensive    // Copy constructor & assignment - note that these are expensive
506    // because they recompile the expression.    // because they recompile the expression.

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12