Static
Readonly
MAXIMUM_Maximum string length supported.
Constructor.
Character set. Each element is a single-character string, unique within the array, that defines the character set.
Rest
...exclusionSupport: readonly Exclusion[]Exclusions supported by the character set. All character sets implicitly support Exclusion.None.
Get the character set.
Get the character set size.
Static
powerCreate a string by mapping a value to the equivalent characters in the character set across the length of the string.
Required string length.
Numeric value of the string.
Optional
exclusion: ExclusionStrings to be excluded from the range of outputs. See Exclusion for possible values and their meaning.
Optional
tweak: number | bigintIf provided, the numerical value of the string is "tweaked" using an encryption transformer.
Optional
creationCallback: CreationCallbackIf provided, called after the string is constructed to create the final value.
String created from the value.
Create multiple strings by mapping each value to the equivalent characters in the character set across the length of the string. Equivalent to calling this method for each individual value.
Required string length.
Numeric values of the strings.
Optional
exclusion: ExclusionStrings to be excluded from the range of outputs. See Exclusion for possible values and their meaning.
Optional
tweak: number | bigintIf provided, the numerical value of the strings are "tweaked" using an encryption transformer.
Optional
creationCallback: CreationCallbackIf provided, called after each string is constructed to create the final value.
Iterable iterator over strings created from the values.
Create a string or multiple strings. This signature exists to allow similar overloaded methods in other classes to call this method correctly.
Optional
exclusion: ExclusionOptional
tweak: number | bigintOptional
creationCallback: CreationCallbackDetermine the value for a string.
String.
Strings excluded from the range of inputs. See Exclusion for possible values and their meaning.
Optional
tweak: number | bigintIf provided, the numerical value of the string was "tweaked" using an encryption transformer.
Numeric value of the string.
Protected
validateValidate that an exclusion is supported. If not, an exception is thrown.
Exclusion.
Validate a string. If the string violates the character set or any of the character set validation parameters, an exception is thrown.
String.
Optional
validation: CharacterSetValidationCharacter set validation parameters.
Character set creator. Maps numeric values to strings using the character set as digits.