Lines Matching full:numberformat
46 * Sample code for the C++ API to NumberFormat.
53 NumberFormat *fmt = NumberFormat::createInstance(us, status);
54 check(status, "NumberFormat::createInstance");
61 check(status, "NumberFormat::parse");
63 printf("NumberFormat::parse(\""); // Display the result
73 check(status, "NumberFormat::format");
75 printf("NumberFormat::format("); // Display the result
88 * Set a currency on a NumberFormat with pre-ICU 2.6 APIs.
92 * @param nf The NumberFormat on which to set the currency; takes effect on
93 * currency-formatting NumberFormat instances.
103 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) {
180 * Set a currency on a NumberFormat with ICU 2.6 APIs.
182 * @param nf The NumberFormat on which to set the currency; takes effect on
183 * currency-formatting NumberFormat instances.
192 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) {
228 NumberFormat *nf;
245 nf=NumberFormat::createCurrencyInstance(sampleLocaleIDs[i], errorCode);
247 printf("NumberFormat::createCurrencyInstance(%s) failed - %s\n",