NDNts

    Match or construct a variable name portion.

    When matching a name, this pattern extracts a number of name components, and saves the sub-name in variables object in VariablePattern.match return value.

    When building a name, this pattern succeeds if the variable is present in VariablePattern.build function argument.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    id: string

    Variable name.

    inner?: Pattern
    maxComps: number
    minComps: number

    Accessors

    • get matchLengthRange(): [min: number, max: number]

      Determine minimum and maximum match length.

      Returns [min: number, max: number]

      This optimization is used in match for early rejection of input names that are either too short or too long.

    Methods

    • Recognize part of the input name.

      Parameters

      • state: MatchState

      Returns Iterable<MatchState>

      Iterable of potential matches.

    • Build part of an output name.

      Parameters

      Returns Iterable<BuildState>

      Iterable of potential constructions.

    MMNEPVFCICPMFPCPTTAAATR