Apply the given pattern to this Format object. A pattern is a short-hand specification for the various formatting properties. These properties can also be changed individually through the various setter methods.
There is no limit to integer digits are set by this routine, since that is the typical end-user desire; use setMaximumInteger if you want to set a real value. For negative numbers, use a second pattern, separated by a semicolon
. Example "#,#00.0#" -> 1,234.56
This means a minimum of 2 integer digits, 1 fraction digit, and a maximum of 2 fraction digits.
. Example: "#,#00.0#;(#,#00.0#)" for negatives in parantheses.
In negative patterns, the minimum and maximum counts are ignored; these are presumed to be set in the positive pattern.
Referenced by applyLocalizedPattern(), applyPattern(), setCurrency(), NumberFormatRegressionTest::Test4145457(), NumberFormatRegressionTest::Test4147295(), NumberFormatRegressionTest::Test4179818(), NumberFormatRegressionTest::Test4212072(), IntlTestDecimalFormatAPI::testAPI(), NumberFormatTest::TestPatterns2(), NumberFormatTest::TestSecondaryGrouping(), and unum_applyPattern().
Here is the caller graph for this function: