Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "range"

Index

Functions

Const alpha

  • Matcher for single A-Z or a-z characters.

    Type parameters

    • C

    • R

    Parameters

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

      success callback

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

      failure callback

    Returns Matcher<string, C, R>

Const alphaNum

Const digit

  • Matcher for single digit characters (0-9).

    Type parameters

    • C

    • R

    Parameters

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

      success callback

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

      failure callback

    Returns Matcher<string, C, R>

Const range

  • Returns a single input matcher which returns Match.FULL if the input is within the closed interval given by [min,max].

    Type parameters

    • T: number | string

    • C

    • R

    Parameters

    • min: T

      min repetitions

    • max: T

      max repetitions

    • Optional success: LitCallback<T, C, R>

      success callback

    • Optional fail: LitCallback<T, C, R>

      failure callback

    Returns Matcher<T, C, R>

Const whitespace

  • Matcher for single whitespace characters.

    Type parameters

    • C

    • R

    Parameters

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

      success callback

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

      failure callback

    Returns Matcher<string, C, R>

Generated using TypeDoc