X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fcore%2Futil%2FRegularExpression.cpp;h=62ef4cacf5ae0b5087b513d404cdea875c6a1829;hb=e14f6ba5183403d7bbf589ef87b0643b12a0f72c;hp=8dcae5647f9dd0b67954167abb9ae93b515150e3;hpb=93366a0bda79e6fd6e7dad6316bfcf8cc82f5731;p=anna.git diff --git a/source/core/util/RegularExpression.cpp b/source/core/util/RegularExpression.cpp index 8dcae56..62ef4ca 100644 --- a/source/core/util/RegularExpression.cpp +++ b/source/core/util/RegularExpression.cpp @@ -17,14 +17,14 @@ // private -void anna::RegularExpression::freeRegex() throw() { +void anna::RegularExpression::freeRegex() { if(a_compiled) { regfree(&a_preg); a_compiled = false; } } -void anna::RegularExpression::compile() throw(anna::RuntimeException) { +void anna::RegularExpression::compile() noexcept(false) { if(a_compiled) return; int ret; @@ -52,7 +52,7 @@ void anna::RegularExpression::compile() throw(anna::RuntimeException) { //------------------------------------------------------------------------------ //---------------------------------------------- RegularExpression::setPattern() //------------------------------------------------------------------------------ -void anna::RegularExpression::setPattern(const std::string & pattern) throw() { +void anna::RegularExpression::setPattern(const std::string & pattern) { if(pattern == a_pattern) return; freeRegex(); @@ -63,7 +63,7 @@ void anna::RegularExpression::setPattern(const std::string & pattern) throw() { //------------------------------------------------------------------------------ //-------------------------------------------------- RegularExpression::isLike() //------------------------------------------------------------------------------ -bool anna::RegularExpression::isLike(const std::string & value) throw() { +bool anna::RegularExpression::isLike(const std::string & value) { compile(); const bool result = (regexec(&a_preg, value.c_str(), 0, NULL, 0) == 0) ? true : false; return result;