new NdnRegexMatcherBase(expr, type, backrefManager)
Create an instance of the abstract class NdnRegexMatcherBase.
Parameters:
Name | Type | Description |
---|---|---|
expr |
string | The expression. |
type |
number | The type as an int from the NdnRegexMatcherBase.NdnRegexExprType enum. |
backrefManager |
NdnRegexBackrefManager | (optional) The NdnRegexBackrefManager to use. If omitted, use a new NdnRegexBackrefManager(). |
Classes
Methods
compile_()
Compile the regular expression to generate more matchers when necessary.
getExpr() → {string}
Returns:
- Type
- string
getMatchResult() → {Array.<Name.Component>}
Get the list of matched name components.
Returns:
The matched name components. You must not
modify this list.
- Type
- Array.<Name.Component>
match(name, offset, len) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
name |
Name | |
offset |
number | |
len |
number |
Returns:
- Type
- boolean
recursiveMatch_(matcherNo, name, offset, len) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
matcherNo |
number | |
name |
Name | |
offset |
number | |
len |
number |
Returns:
- Type
- boolean