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

Comparing Bender/Matcher.hpp (file contents):
Revision 114 by Douglas Thrift, 2004-03-16T14:33:08-08:00 vs.
Revision 115 by Douglas Thrift, 2004-03-16T22:53:38-08:00

# Line 15 | Line 15 | class Matcher
15   {
16   private:
17          pcre* expression;
18 +        vector<string> substrings;
19   public:
20 <        Matcher() {}
20 >        Matcher() { expression = NULL; }
21 >        Matcher(const string& expression);
22          ~Matcher();
23          bool match(const string& stuff);
24          Matcher& operator()(const string& expression);
25 +        string& operator[](unsigned index) { return substrings[index]; }
26          bool operator==(const string& stuff) { return match(stuff); }
27          bool operator!=(const string& stuff) { return !match(stuff); }
28   // friends:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines