Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "util/quote"

Index

Variables

Const escapable

escapable: RegExp = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g

Const singleEscapable

singleEscapable: RegExp = /[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g

Functions

_quote

  • _quote(string: any, char?: string, reg?: RegExp, meta: any): string
  • Parameters

    • string: any
    • Default value char: string = """
    • Default value reg: RegExp = escapable
    • meta: any

    Returns string

double

  • double(string: any): string
  • Uses double quote to wrap string.

    Parameters

    • string: any

    Returns string

single

  • single(string: any): string
  • Uses single quote to wrap string.

    Parameters

    • string: any

    Returns string

Object literals

Const commonMeta

commonMeta: object



: string = "\b"

: string = "\t"

: string = "\n"

: string = "\f"

: string = "\r"

\

\: string = "\\"

Const doubleMeta

doubleMeta: object

"

": string = "\""

Const singleMeta

singleMeta: object

'

': string = "\'"

Generated using TypeDoc