#include <regex-component-matcher.hpp>
|
void | compile () override |
| Compile the regular expression to generate the more matchers when necessary. More...
|
|
Definition at line 35 of file regex-component-matcher.hpp.
Enumerator |
---|
EXPR_TOP |
|
EXPR_PATTERN_LIST |
|
EXPR_REPEAT_PATTERN |
|
EXPR_BACKREF |
|
EXPR_COMPONENT_SET |
|
EXPR_COMPONENT |
|
EXPR_PSEUDO |
|
Definition at line 45 of file regex-matcher.hpp.
ndn::RegexComponentMatcher::RegexComponentMatcher |
( |
const std::string & |
expr, |
|
|
shared_ptr< RegexBackrefManager > |
backrefManager, |
|
|
bool |
isExactMatch = true |
|
) |
| |
Create a RegexComponent matcher from expr.
- Parameters
-
expr | The standard regular expression to match a component |
backrefManager | The back reference manager |
isExactMatch | The flag to provide exact match |
Definition at line 42 of file regex-component-matcher.cpp.
void ndn::RegexComponentMatcher::compile |
( |
| ) |
|
|
overrideprotectedvirtual |
const std::string& ndn::RegexMatcher::getExpr |
( |
| ) |
const |
|
inlineinherited |
const std::vector<name::Component>& ndn::RegexMatcher::getMatchResult |
( |
| ) |
const |
|
inlineinherited |
get the matched name components
- Returns
- the matched name components
Definition at line 69 of file regex-matcher.hpp.
bool ndn::RegexComponentMatcher::match |
( |
const Name & |
name, |
|
|
size_t |
offset, |
|
|
size_t |
len = 1 |
|
) |
| |
|
overridevirtual |
const std::string ndn::RegexMatcher::m_expr |
|
protectedinherited |
std::vector<shared_ptr<RegexMatcher> > ndn::RegexMatcher::m_matchers |
|
protectedinherited |