# | 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); } |
# | Line 0 | Line 1 | |
---|---|---|
1 | + | native |
# | Line 0 | Line 1 | |
---|---|---|
1 | + | Id |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |