net+util: remove dependency on Boost.Regex
Use std::regex instead.
Change-Id: I6c53edf177b7861d47a1f256aa975e4100e00d45
diff --git a/src/util/regex/regex-component-matcher.cpp b/src/util/regex/regex-component-matcher.cpp
index aca35c1..2c6da84 100644
--- a/src/util/regex/regex-component-matcher.cpp
+++ b/src/util/regex/regex-component-matcher.cpp
@@ -38,7 +38,7 @@
void
RegexComponentMatcher::compile()
{
- m_componentRegex = boost::regex(m_expr);
+ m_componentRegex.assign(m_expr);
m_pseudoMatchers.clear();
m_pseudoMatchers.push_back(make_shared<RegexPseudoMatcher>());
@@ -62,9 +62,9 @@
if (!m_isExactMatch)
BOOST_THROW_EXCEPTION(Error("Non-exact component search is not supported yet"));
- boost::smatch subResult;
+ std::smatch subResult;
std::string targetStr = name.get(offset).toUri();
- if (boost::regex_match(targetStr, subResult, m_componentRegex)) {
+ if (std::regex_match(targetStr, subResult, m_componentRegex)) {
for (size_t i = 1; i <= m_componentRegex.mark_count(); i++) {
m_pseudoMatchers[i]->resetMatchResult();
m_pseudoMatchers[i]->setMatchResult(subResult[i]);