BracketsParser
is typically used in the XML Renderer Framework, but can be invoked programmatically
as in the following example which evaluates to "-123":
caplin.element.parser.BracketsParser.parse("(123)", {})
See caplin.element.formatter.BracketsFormatter for the complementary formatter.
Attributes | Name and Description |
---|---|
|
caplin.element.parser.BracketsParser()
|
Attributes | Name and Description |
---|---|
|
String
parse(Variant vValue, Map mAttributes)
Converts amounts with brackets and converts it to a negative number. |
►
caplin.element.parser.BracketsParser()
►
String
parse(Variant vValue, Map mAttributes)
Converts amounts with brackets and converts it to a negative number.
Variant | vValue | the amount. |
Map | mAttributes | (unused) |