summaryrefslogtreecommitdiff
path: root/includes/BRegex.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-25 00:04:05 -0800
committerPixel <pixel@nobis-crew.org>2011-11-25 00:04:14 -0800
commit9329e059b2e560cb3222cee8f8fcf0906de2cf73 (patch)
tree58a3c61528d373e321c7b5b0a3c6605cd2e853b0 /includes/BRegex.h
parentbf8f22b1f5b990c82993a9466f1da7c5226b1f8e (diff)
Consts are good.
Diffstat (limited to 'includes/BRegex.h')
-rw-r--r--includes/BRegex.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/BRegex.h b/includes/BRegex.h
index d7957bd..4a2f207 100644
--- a/includes/BRegex.h
+++ b/includes/BRegex.h
@@ -13,16 +13,16 @@ class Regex {
typedef std::vector<String> Captures;
Regex(const char * regex, bool icase = false) throw (GeneralException);
~Regex();
- Captures match(const char * str) throw (GeneralException);
+ Captures match(const char * str) const throw (GeneralException);
private:
- String getError(int err);
+ String getError(int err) const;
regex_t m_regex;
};
class Regexes {
public:
- static Regex any;
- static Regex empty;
+ static const Regex any;
+ static const Regex empty;
};
};