Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CharacterClassifier<T>

A fast character classifier that uses a compact array for ASCII values.

Type Parameters

  • T extends number

Hierarchy

  • CharacterClassifier

Index

Constructors

Properties

_asciiMap: Uint8Array

Maintain a compact (fully initialized ASCII map for quickly classifying ASCII characters - used more often in code).

_defaultValue: number
_map: Map<number, number>

The entire map (sparse array).

Methods

  • get(charCode: number): T
  • set(charCode: number, _value: T): void
  • _createAsciiMap(defaultValue: number): Uint8Array