Singleton
caplin.element.formatter

TrimFormatter

Trims whitespace from boths ends of the string.

Constructor Summary

Attributes Name and Description
caplin.element.formatter.TrimFormatter()

Method Summary

Attributes Name and Description
String format(Variant vValue, Map mAttributes)

Trims whitespace from boths ends of the string.

Constructor Detail

caplin.element.formatter.TrimFormatter()

Method Detail

String format(Variant vValue, Map mAttributes)

Trims whitespace from boths ends of the string.

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

caplin.element.formatter.TrimFormatter.format(" Buy USD ", {})

Parameters
Variant vValue the string to trim.
Map mAttributes the map of attributes.
Returns
the trimmed string.