Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "tools/str"

Index

Functions

applyEscape

  • applyEscape(data: string): string
  • Transforms the given string into one where some characters have been properly replaced with their escape versions.

    Parameters

    • data: string

    Returns string

replace

  • replace(format: string, params: object): string
  • Replaces the placeholders a given format with the given parameters.

    Parameters

    • format: string
    • params: object
      • [key: string]: any

    Returns string

reverseEscape

  • reverseEscape(data: string): string
  • Undo the work by applyEscape. It replaces the escape characters with their unescaped ones.

    Parameters

    • data: string

    Returns string

Generated using TypeDoc