Methods
is Single Use Parser()
Allows parsers that should only run a single time, and that should not repeatedly re-parse their own output.
This method is optional. Parsers that don't implement it are not considered to be single-use parsers by default.
- Implements:
parse(vValue, mAttributes)
Parses an amount, strips any thousands separators and changes the local radix (decimal point) char into a ".".
Attribute Options:
Option | Description |
---|---|
separator | the token representing thousands (defaults to a comma in en_GB locale) |
Parameters:
Name | Type | Description |
---|---|---|
vValue |
Variant | the amount. |
mAttributes |
Map | the map of attributes. |
- Implements:
Returns:
the amount, with any number grouping separators removed