Optional
emptyValue to return if the text was only an empty string (after trimming) Defaults to ''. Can be any string or null
The character for the decimal point. If you don't support decimal values in the desired data type (like LookupKey.Integer), let the parser still recognize the decimal separator and create a number with it. Then use a validator to reject it. Requires a value
Optional
thousandsThe character for the thousands separator or null if the culture lacks a thousands separator.
The character for the culture's negative symbol. Note that some number formats allow two symbols: minus and parenthesis. Parenthesis are automatically recognized as negative for all cultures and do not need to be here. If you have a ValueHost with data type=LookupKey.Integer, still set this up and leg If you don't support negative values in the desired data type (like LookupKey.PositiveNumber), let the parser still recognize the negative separator and create a number with it. Then use a validator to reject it.
The currency symbol for the culture. It will only be used on specific subclasses that transfer its value into the NumberParserBase.stripTheseStrings.
The percent symbol for the culture. It will only be used on specific subclasses that transfer its value into the NumberParserBase.stripTheseStrings.
Optional
parenthesisWhen true, the user can input parenthesis to indicate a negative value. Typically true for currency.
Generated using TypeDoc v0.25.12
Effectively a template for the culture's rules of parsing numbers. The template includes more options than needed by some of the subclasses, such as currencySymbol and percentSymbol. This allows for a single definition per culture to be used in all parsers that inherit NumberParserBase. This template should not have options that are expected to be set by an inherited class. For example, stripTheseStrings property is a parameter of the constructor, not an option.