Class UtfErrorModeAbstract

Unicode transformation format error handling mode.

Hierarchy

  • UtfErrorMode

Implements

Constructors

Properties

replacementChar: number

The Unicode code point of the replacement character used to substitute for invalid code unit sequences.

Methods

  • Returns a UtfErrorMode that, if isNonZero is true, aborts when Unicode decoding encounters a NUL byte.

    Parameters

    • isNonZero: boolean

    Returns UtfErrorMode

  • Writes a developer readable, debug-formatted string representation of this object to output.

    Type Parameters

    • T

    Parameters

    Returns Output<T>

    the continuation of the output.

    Throws

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

  • Parameters

    • that: unknown

    Returns boolean

  • Returns number

  • Returns true if a Unicode decoding should abort with an error when an invalid code unit sequence is encountered.

    Returns boolean

  • Returns true if Unicode decoding should abort with an error when a NUL byte is encountered.

    Returns boolean

  • Returns true if a Unicode decoding should substitute invalid code unit sequences with a replacement character.

    Returns boolean

  • Returns string

  • Returns a UtfErrorMode that aborts Unicode decoding with an error when invalid code unit sequences are encountered.

    Returns UtfErrorMode

  • Returns a UtfErrorMode that aborts Unicode decoding with an error when invalid code unit sequences, and NUL bytes, are encountered.

    Returns UtfErrorMode

  • Returns a UtfErrorMode that substitutes invalid code unit sequences with the replacement character (U+FFFD).

    Returns UtfErrorMode

  • Returns a UtfErrorMode that substitutes invalid code unit sequences with the replacement character (U+FFFD), and aborts decoding with an error when NUL bytes are encountered.

    Returns UtfErrorMode

Generated using TypeDoc