Home | History | Annotate | Download | only in numfmt

Lines Matching refs:NumberFormat

48  * Sample code for the C++ API to NumberFormat.
55 NumberFormat *fmt = NumberFormat::createInstance(us, status);
56 check(status, "NumberFormat::createInstance");
63 check(status, "NumberFormat::parse");
65 printf("NumberFormat::parse(\""); // Display the result
75 check(status, "NumberFormat::format");
77 printf("NumberFormat::format("); // Display the result
90 * Set a currency on a NumberFormat with pre-ICU 2.6 APIs.
94 * @param nf The NumberFormat on which to set the currency; takes effect on
95 * currency-formatting NumberFormat instances.
105 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) {
182 * Set a currency on a NumberFormat with ICU 2.6 APIs.
184 * @param nf The NumberFormat on which to set the currency; takes effect on
185 * currency-formatting NumberFormat instances.
194 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) {
230 NumberFormat *nf;
247 nf=NumberFormat::createCurrencyInstance(sampleLocaleIDs[i], errorCode);
249 printf("NumberFormat::createCurrencyInstance(%s) failed - %s\n",