Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "strings/index"

Index

Type aliases

StringFormatProvider

StringFormatProvider: (val: any, match: string) => any

A string format provider function.

param

The input value.

param

The original match value.

returns

The output value.

Type declaration

    • (val: any, match: string): any
    • Parameters

      • val: any
      • match: string

      Returns any

StringFormatProviderList

StringFormatProviderList: {}

A list of string format providers.

Type declaration

Variables

Let knownFormatProviders

knownFormatProviders: StringFormatProviderList

Functions

format

  • format(formatStr: any, ...args: any[]): string
  • Formats a string.

    Parameters

    • formatStr: any

      The value that represents the format string.

    • Rest ...args: any[]

    Returns string

    The formated string.

formatArray

  • formatArray(formatStr: any, args: Enumerable.Sequence<any>): string
  • Formats a string.

    Parameters

    • formatStr: any

      The value that represents the format string.

    • args: Enumerable.Sequence<any>

    Returns string

    The formated string.

getDefaultStringFormatProviders

registerStringFormatProviders

Generated using TypeDoc