@blockchaincommons/dcbor-pattern - v1.0.0-beta.2
    Preparing search index...

    Class Quantifier

    How many times a pattern may or must match, with an interval and a reluctance.

    Quantifier.zeroOrMore();                   // *
    Quantifier.oneOrMore(Reluctance.Lazy); // +?
    Quantifier.exactly(3); // {3}
    Quantifier.between(2, 5, Reluctance.Possessive); // {2,5}+
    Index
    • get min(): number

      The least number of repetitions.

      Returns number

    • get max(): number | undefined

      The most repetitions, or undefined when unbounded.

      Returns number | undefined

    • get isUnbounded(): boolean

      Whether there is no maximum.

      Returns boolean

    • Whether count repetitions are allowed.

      Parameters

      • count: number

      Returns boolean

    • The shorthand notation with the reluctance suffix: *, +?, {1,5}+.

      Returns string