Function getLongestPrefix

  • Returns the longest knowable prefix guaranteed to always be accepted by the given alternative (ignoring assertions).

    All character sets except the last one are guaranteed to be non-empty. The last character set is only guaranteed to be non-empty if includeAfter: false.

    Parameters

    Returns readonly CharSet[]