24 #ifndef NDN_UTIL_REGEX_REGEX_COMPONENT_SET_MATCHER_HPP 25 #define NDN_UTIL_REGEX_REGEX_COMPONENT_SET_MATCHER_HPP 33 class RegexComponentMatcher;
46 match(
const Name& name,
size_t offset,
size_t len = 1)
override;
57 compileSingleComponent();
60 compileMultipleComponents(
size_t start,
size_t lastIndex);
63 extractComponent(
size_t index)
const;
66 std::vector<shared_ptr<RegexComponentMatcher>> m_components;
72 #endif // NDN_UTIL_REGEX_REGEX_COMPONENT_SET_MATCHER_HPP
bool match(const Name &name, size_t offset, size_t len=1) override
void compile() override
Compile the regular expression to generate the more matchers when necessary.
Represents an absolute name.
RegexComponentSetMatcher(const std::string &expr, shared_ptr< RegexBackrefManager > backrefManager)
Create a RegexComponentSetMatcher matcher from expr.