Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Format

Text format utility functions.

Hierarchy

  • Format

Index

Methods

Static debug

  • Writes the code points of the developer-readable Debug string for the given object to output. Assumes output is a Unicode Output writer with sufficient capacity. Delegates to Debug.debug, if object implements Debug; writes a JavaScript string literal, if object is a string, and writes a JavaScript number literal, if object is a number; otherwise writes the result of Object.toString.

    throws

    OutputException if the output exits the cont state before the full debug string has been written.

    Parameters

    • object: unknown
    • output: Output

    Returns void

  • Returns the developer-readable Debug string for the givem object, output using the given settings. Delegates to Debug.debug, if object implements Debug; returns a JavaScript string literal, if object is a string, and returns a JavaScript number literal, if object is a number; otherwise returns the result of Object.toString.

    Parameters

    Returns string

Static debugChar

  • debugChar(character: number, output: Output): void

Static debugNumber

  • debugNumber(value: number, output: Output): void

Static debugString

  • debugString(string: string, output: Output): void

Static display

  • Writes the code points of the human-readable Display string for the given object to output. Assumes output is a Unicode Output writer with sufficient capacity. Delegates to Display.display, if object implements Display; otherwise writes the result of Object.toString.

    throws

    OutputException if the output exits the cont state before the full display string has been written.

    Parameters

    • object: unknown
    • output: Output

    Returns void

  • Returns the human-readable Display string for the givem object, output using the given settings. Delegates to [[Display.displa]], if object implements Display; otherwise returns the result of Object.toString.

    Parameters

    Returns string

Static displayNumber

  • displayNumber(value: number, output: Output): void

Static lineSeparator

  • lineSeparator(): string