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

Comparing SiteMapper/Matcher.hpp (file contents):
Revision 126 by Douglas Thrift, 2004-03-23T19:48:15-08:00 vs.
Revision 200 by Douglas Thrift, 2004-08-30T18:28:29-07:00

# Line 7 | Line 7
7   #ifndef _Matcher_hpp_
8   #define _Matcher_hpp_
9  
10 #include <pcre.h>
11
10   #include "SiteMapper.hpp"
11  
12 + #include <pcre.h>
13 +
14   class Matcher
15   {
16   private:
# Line 21 | Line 21 | public:
21          Matcher(const string& expression);
22          ~Matcher();
23          bool match(const string& stuff);
24 +        int size(void) { return substrings.size(); }
25          Matcher& operator()(const string& expression);
26          string& operator[](unsigned index) { return substrings[index]; }
27          bool operator==(const string& stuff) { return match(stuff); }

Comparing SiteMapper/Matcher.hpp (property svn:eol-style):
Revision 126 by Douglas Thrift, 2004-03-23T19:48:15-08:00 vs.
Revision 200 by Douglas Thrift, 2004-08-30T18:28:29-07:00

# Line 0 | Line 1
1 + native

Comparing SiteMapper/Matcher.hpp (property svn:keywords):
Revision 126 by Douglas Thrift, 2004-03-23T19:48:15-08:00 vs.
Revision 200 by Douglas Thrift, 2004-08-30T18:28:29-07:00

# Line 0 | Line 1
1 + Id

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines