Class CharacterClassifier<T>

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

Type Parameters

  • T extends number

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