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.
privateconstructor()
Fields
Static methods
isEof
Checks if a character is an EOF.
public staticisEof(value: number): boolean
- value: number - value to check
- returns: boolean - validation result
isEol
Checks if a character is an EOL.
public staticisEol(value: number): boolean
- value: number - value to check
- returns: boolean - validation result
isDigit
Checks if a character is a digit.
public staticisDigit(value: number): boolean
- value: number - value to check
- returns: boolean - validation result