#include <regex-component-matcher.hpp>
|
| virtual void | compile () |
| | Compile the regular expression to generate the more matchers when necessary. More...
|
| |
Definition at line 19 of file regex-component-matcher.hpp.
| Enumerator |
|---|
| EXPR_TOP |
|
| EXPR_PATTERNLIST |
|
| EXPR_REPEAT_PATTERN |
|
| EXPR_BACKREF |
|
| EXPR_COMPONENT_SET |
|
| EXPR_COMPONENT |
|
| EXPR_PSEUDO |
|
Definition at line 31 of file regex-matcher.hpp.
| ndn::RegexComponentMatcher::RegexComponentMatcher |
( |
const std::string & |
expr, |
|
|
ptr_lib::shared_ptr< RegexBackrefManager > |
backRefManager, |
|
|
bool |
exact = true |
|
) |
| |
|
inline |
Create a RegexComponent matcher from expr.
- Parameters
-
| expr | The standard regular expression to match a component |
| backRefManager | The back reference manager |
| exact | The flag to provide exact match |
Definition at line 54 of file regex-component-matcher.hpp.
| virtual ndn::RegexComponentMatcher::~RegexComponentMatcher |
( |
| ) |
|
|
inlinevirtual |
| void ndn::RegexComponentMatcher::compile |
( |
| ) |
|
|
inlineprotectedvirtual |
| 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 60 of file regex-matcher.hpp.
| bool ndn::RegexComponentMatcher::match |
( |
const Name & |
name, |
|
|
const int & |
offset, |
|
|
const int & |
len = 1 |
|
) |
| |
|
inlinevirtual |
| const std::string ndn::RegexMatcher::m_expr |
|
protectedinherited |
| std::vector<shared_ptr<RegexMatcher> > ndn::RegexMatcher::m_matcherList |
|
protectedinherited |