summaryrefslogtreecommitdiff
path: root/src
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 /src
parentbf8f22b1f5b990c82993a9466f1da7c5226b1f8e (diff)
Consts are good.
Diffstat (limited to 'src')
-rw-r--r--src/BRegex.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/BRegex.cc b/src/BRegex.cc
index d3a36f7..c235de6 100644
--- a/src/BRegex.cc
+++ b/src/BRegex.cc
@@ -6,7 +6,7 @@ Balau::Regex::Regex(const char * regex, bool icase) throw (GeneralException) {
throw GeneralException(getError(r));
}
-Balau::Regex::Captures Balau::Regex::match(const char * str) throw (GeneralException) {
+Balau::Regex::Captures Balau::Regex::match(const char * str) const throw (GeneralException) {
Captures ret;
regmatch_t * matches = (regmatch_t *) alloca((m_regex.re_nsub + 1) * sizeof(regmatch_t));
@@ -34,7 +34,7 @@ Balau::Regex::~Regex() {
regfree(&m_regex);
}
-Balau::String Balau::Regex::getError(int err) {
+Balau::String Balau::Regex::getError(int err) const {
size_t s;
char * t;
@@ -47,5 +47,5 @@ Balau::String Balau::Regex::getError(int err) {
return r;
}
-Balau::Regex Balau::Regexes::any(".*");
-Balau::Regex Balau::Regexes::empty("^$");
+Balau::Regex const Balau::Regexes::any(".*");
+Balau::Regex const Balau::Regexes::empty("^$");