new NdnRegexTopMatcher(expr, expand)
Create an NdnRegexTopMatcher.
Parameters:
Name | Type | Description |
---|---|---|
expr |
string | The expression. |
expand |
string | (optional) If omitted, use "". |
Methods
(static) convertSpecialChar_(str) → {string}
Parameters:
Name | Type | Description |
---|---|---|
str |
string |
Returns:
- Type
- string
(static) fromName(name, hasAnchor) → {NdnRegexTopMatcher}
Parameters:
Name | Type | Description |
---|---|---|
name |
Name | |
hasAnchor |
boolean | (optional) If omitted, use false. |
Returns:
- Type
- NdnRegexTopMatcher
(static) getItemFromExpand_(expand, offset)
Parameters:
Name | Type | Description |
---|---|---|
expand |
string | |
offset |
Array.<number> | This updates offset[0]. #return {string} |
expand(expandStr)
Parameters:
Name | Type | Description |
---|---|---|
expandStr |
string | (optional) If omitted, use "". |
match(name, offset, len) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
name |
Name | |
offset |
number | (optinal) Ignored. |
len |
number | (optinal) Ignored. |
Returns:
- Type
- boolean