diff options
Diffstat (limited to 'src/mask.h')
-rw-r--r-- | src/mask.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -72,10 +72,18 @@ public: mask_t& operator=(const string& other); + bool operator==(const mask_t& other) const { + return expr == other.expr; + } + bool match(const string& str) const { return boost::regex_search(str, expr); } + bool empty() const { + return expr.empty(); + } + void read(const char *& data); void write(std::ostream& out) const; }; |