Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "until"

Index

Functions

Functions

Const until

  • Generic array version of untilStr.

    Type parameters

    • T

    • C

    • R

    Parameters

    • str: T[]

      termination sequence

    • Optional callback: LitCallback<T[], C, R>

      result callback

    Returns Matcher<T, C, R>

Const untilStr

  • String version of until. Returns a matcher which consumes input until the given string could be matched.

    remarks

    If successful, calls callback with string recorded so far (excluding the matched terminator string) and returns Match.FULL result. Else Match.PARTIAL.

    Type parameters

    • C

    • R

    Parameters

    • str: string

      termination string

    • Optional callback: LitCallback<string, C, R>

      result callback

    Returns Matcher<string, C, R>

Generated using TypeDoc