summaryrefslogtreecommitdiff
path: root/project2/regexCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/regexCheck.cpp')
-rw-r--r--project2/regexCheck.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/project2/regexCheck.cpp b/project2/regexCheck.cpp
index b8504c8..b88a44c 100644
--- a/project2/regexCheck.cpp
+++ b/project2/regexCheck.cpp
@@ -1,7 +1,7 @@
#include "regexCheck.h"
#include "xmlObjectLoader.h"
#include "commonObjects.h"
-#include <boost/regex.hpp>
+#include <glibmm/regex.h>
DECLARE_LOADER("regexcheck", RegexCheck);
@@ -24,12 +24,7 @@ RegexCheck::loadComplete(const CommonObjects *)
bool
RegexCheck::performCheck() const
{
- return checkString(applyTo());
-}
-
-bool
-RegexCheck::checkString(const Glib::ustring & str) const
-{
- return boost::regex_match(str.begin(), str.end(), boost::regex(regex()));
+ Glib::RefPtr<Glib::Regex> reg = Glib::Regex::create(regex());
+ return reg->match(applyTo());
}