Substituting values in a message

A substitution value is a value that is substituted into the message at format time to replace a specific placeholder.

The following is an example of a message in a resource file that contains a substitution value. The {0} represents the placeholder.
Write of ''{0}'' failed.

The supported types of substitution values are based on the International Components for Unicode (ICU) supported types, as ICU provides the underlying formatting support. Teracloud® Streams supports the following ICU supported types: the argType values (none) and number. All the argStyle values of number are supported. For more details, see the table in the MessageFormat Class Reference and find the (none) and number table rows.

When a message is formatted from C++ code, substitution values of type string (const char *), int, long, float, and double are supported, as well as an ICU Unicode String.