Gjsify LogoGjsify Logo

Index

Functions

  • format(fmt: string, ...args: any[]): string
  • This function is intended to extend the String object and provide an String.format API for string formatting. It has to be set up using String.prototype.format = Format.format; Usage: "somestring %s %d".format('hello', 5); It supports %s, %d, %x and %f, for %f it also support precisions like "%.2f".format(1.526). All specifiers can be prefixed with a minimum field width, e.g. "%5s".format("foo"). Unless the width is prefixed with '0', the formatted string will be padded with spaces.

    Parameters

    • fmt: string
    • Rest ...args: any[]

    Returns string

  • printf(fmt: string, ...args: any[]): void
  • vprintf(str: string, args: string[]): string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method