ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Matcher/STL/Matcher.hpp
(Generate patch)

Comparing Matcher/STL/Matcher.hpp (file contents):
Revision 324 by douglas, 2004-12-13T19:40:34-08:00 vs.
Revision 325 by douglas, 2004-12-13T19:52:35-08:00

# Line 22 | Line 22 | class Matcher
22   {
23   private:
24          ::pcre* expression;
25 +        int options;
26          std::vector<std::string> substrings;
27   public:
28 <        Matcher() : expression(NULL) {}
29 <        Matcher(const std::string& expression) : expression(NULL) { (*this)(expression); }
28 >        static int defaults;
29 >        Matcher(int options = defaults) : expression(NULL), options(options) {}
30 >        Matcher(const std::string& expression, int options = defaults) : expression(NULL), options(options) { (*this)(expression); }
31          ~Matcher() { if (expression != NULL) ::pcre_free(expression); }
32          bool match(const std::string& stuff);
33          std::vector<std::string>::size_type size() const { return substrings.size(); }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines