Validates characters that are processed by tokenizers.
Description
The CharValidator class allows you to validate characters that are processed by tokenizers.
Constructors
Default contructor to prevent creation of a class instance.
private
constructor()
Fields
Static methods
isEof
Checks if a character is an EOF.
public static
isEof(value: number): boolean
- value: number - value to check
- returns: boolean - validation result
isEol
Checks if a character is an EOL.
public static
isEol(value: number): boolean
- value: number - value to check
- returns: boolean - validation result
isDigit
Checks if a character is a digit.
public static
isDigit(value: number): boolean
- value: number - value to check
- returns: boolean - validation result