Lines Matching full:numberformat
44 * Sample code for the C++ API to NumberFormat.
51 NumberFormat *fmt = NumberFormat::createInstance(us, status);
52 check(status, "NumberFormat::createInstance");
59 check(status, "NumberFormat::parse");
61 printf("NumberFormat::parse(\""); // Display the result
71 check(status, "NumberFormat::format");
73 printf("NumberFormat::format("); // Display the result
86 * Set a currency on a NumberFormat with pre-ICU 2.6 APIs.
90 * @param nf The NumberFormat on which to set the currency; takes effect on
91 * currency-formatting NumberFormat instances.
101 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) {
178 * Set a currency on a NumberFormat with ICU 2.6 APIs.
180 * @param nf The NumberFormat on which to set the currency; takes effect on
181 * currency-formatting NumberFormat instances.
190 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) {
226 NumberFormat *nf;
243 nf=NumberFormat::createCurrencyInstance(sampleLocaleIDs[i], errorCode);
245 printf("NumberFormat::createCurrencyInstance(%s) failed - %s\n",