24 #ifndef NDN_UTIL_REGEX_REGEX_COMPONENT_MATCHER_HPP 25 #define NDN_UTIL_REGEX_REGEX_COMPONENT_MATCHER_HPP 33 class RegexPseudoMatcher;
45 shared_ptr<RegexBackrefManager> backrefManager,
46 bool isExactMatch =
true);
49 match(
const Name& name,
size_t offset,
size_t len = 1)
override;
57 std::regex m_componentRegex;
58 std::vector<shared_ptr<RegexPseudoMatcher>> m_pseudoMatchers;
63 #endif // NDN_UTIL_REGEX_REGEX_COMPONENT_MATCHER_HPP
bool match(const Name &name, size_t offset, size_t len=1) override
RegexComponentMatcher(const std::string &expr, shared_ptr< RegexBackrefManager > backrefManager, bool isExactMatch=true)
Create a RegexComponent matcher from expr.
Represents an absolute name.
void compile() override
Compile the regular expression to generate the more matchers when necessary.