Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Unicode

Unicode utilities, see [[Screen#fullUnicode]]. Wide, Surrogates, and Combining.

Hierarchy

  • Unicode

Index

Properties

chars

chars: object

Regexps

Type declaration

  • all: RegExp

    All wide chars including surrogate pairs.

  • combining: RegExp

    Regex to find combining characters.

  • surrogate: RegExp

    Regex to detect a surrogate pair.

  • wide: RegExp

    All surrogate pair wide chars.

combiningTable

combiningTable: number[][]

Methods

charWidth

  • charWidth(str: string, i?: number): string
  • Parameters

    • str: string
    • Optional i: number

    Returns string

fromCodePoint

  • fromCodePoint(unicode: number): string

isSurrogate

  • isSurrogate(str: string, i?: number): boolean
  • Parameters

    • str: string
    • Optional i: number

    Returns boolean

strWidth

  • strWidth(str: string): number

Generated using TypeDoc