24 #ifndef NDN_CXX_UTIL_REGEX_REGEX_MATCHER_HPP
25 #define NDN_CXX_UTIL_REGEX_REGEX_MATCHER_HPP
35 class Error :
public std::runtime_error
38 using std::runtime_error::runtime_error;
55 match(
const Name& name,
size_t offset,
size_t len);
66 const std::vector<name::Component>&
74 shared_ptr<RegexBackrefManager> backrefManager =
nullptr);
78 recursiveMatch(
size_t matcherNo,
const Name& name,
size_t offset,
size_t len);
Represents an absolute name.
std::vector< name::Component > m_matchResult
const std::vector< name::Component > & getMatchResult() const
Return the matched name components.
RegexMatcher(const std::string &expr, RegexExprType type, shared_ptr< RegexBackrefManager > backrefManager=nullptr)
virtual bool match(const Name &name, size_t offset, size_t len)
const std::string & getExpr() const
shared_ptr< RegexBackrefManager > m_backrefManager
const RegexExprType m_type
std::vector< shared_ptr< RegexMatcher > > m_matchers
std::ostream & operator<<(std::ostream &os, const Data &data)