Caplin Trader 4.0.3

Class: module:caplin/element/formatter/UpperCaseFormatter

module:caplin/element/formatter/UpperCaseFormatter

Constructor

new module:caplin/element/formatter/UpperCaseFormatter()

Converts a string to upper case.

UpperCaseFormatter is typically used in the XML Renderer Framework, but can be invoked programmatically as in the following example which evaluate to 'hello, world!':

caplin.element.formatter.UpperCaseFormatter.format('Hello, World!', {})
Implements:

Methods

format(value) → {String}

Converts a string to upper case.
Parameters:
Name Type Description
value String the string.
Returns:
the string, converted to upper case.
Type
String