Caplin Trader 4.8.0

Class: module:br/formatting/TrimFormatter

module:br/formatting/TrimFormatter

Trims whitespace from boths ends of the string.

Constructor

new module:br/formatting/TrimFormatter()

Implements:

Methods

format(vValue, mAttributes)

Trims whitespace from boths ends of the string.

TrimFormatter is typically used with Presenter, but can be invoked programmatically as in the following example which evaluates to "Buy USD":

br.formatting.TrimFormatter.format(" Buy USD ", {})
Parameters:
Name Type Description
vValue Variant the string to trim.
mAttributes Map the map of attributes.
Implements:
Returns:
the trimmed string.