Class: NdnRegexTopMatcher

NdnRegexTopMatcher(expr, expand)

new NdnRegexTopMatcher(expr, expand)

Create an NdnRegexTopMatcher.
Parameters:
Name Type Description
expr string The expression.
expand string (optional) If omitted, use "".
Source:

Methods

(static) convertSpecialChar_(str) → {string}

Parameters:
Name Type Description
str string
Source:
Returns:
Type
string

(static) fromName(name, hasAnchor) → {NdnRegexTopMatcher}

Parameters:
Name Type Description
name Name
hasAnchor boolean (optional) If omitted, use false.
Source:
Returns:
Type
NdnRegexTopMatcher

(static) getItemFromExpand_(expand, offset)

Parameters:
Name Type Description
expand string
offset Array.<number> This updates offset[0]. #return {string}
Source:

expand(expandStr)

Parameters:
Name Type Description
expandStr string (optional) If omitted, use "".
Source:

match(name, offset, len) → {boolean}

Parameters:
Name Type Description
name Name
offset number (optinal) Ignored.
len number (optinal) Ignored.
Source:
Returns:
Type
boolean