23 #ifndef NDN_NDN_REGEX_COMPONENT_MATCHER_HPP
24 #define NDN_NDN_REGEX_COMPONENT_MATCHER_HPP
26 #include "ndn-regex-pseudo-matcher.hpp"
27 #include "ndn-regex-matcher-base.hpp"
40 (
const std::string& expr,
41 ptr_lib::shared_ptr<NdnRegexBackrefManager> backrefManager,
42 bool isExactMatch =
true)
43 : NdnRegexMatcherBase(expr, NDN_REGEX_EXPR_COMPONENT, backrefManager),
44 isExactMatch_(isExactMatch)
53 match(
const Name& name,
size_t offset,
size_t len);
64 regex_lib::regex componentRegex_;
65 std::vector<ptr_lib::shared_ptr<NdnRegexPseudoMatcher> > pseudoMatchers_;
A Name holds an array of Name::Component and represents an NDN name.
Definition: name.hpp:40
virtual void compile()
Compile the regular expression to generate more matchers when necessary.
NdnRegexComponentMatcher(const std::string &expr, ptr_lib::shared_ptr< NdnRegexBackrefManager > backrefManager, bool isExactMatch=true)
Create a RegexComponent matcher from expr.
Definition: ndn-regex-component-matcher.hpp:40
Definition: ndn-regex-component-matcher.hpp:31