• Home
  • Raw
  • Download

Lines Matching +full:formatting +full:- +full:check

7  * Copyright (c) 1999-2014, International Business Machines Corporation and
30 printf("%s output is in UTF-8\n", argv[0]); in main()
56 check(status, "NumberFormat::createInstance"); in cppapi()
62 fmt->parse(str, result, status); in cppapi()
63 check(status, "NumberFormat::parse"); in cppapi()
74 fmt->format(result, str, status); in cppapi()
75 check(status, "NumberFormat::format"); in cppapi()
87 // currency formatting ----------------------------------------------------- ***
90 * Set a currency on a NumberFormat with pre-ICU 2.6 APIs.
95 * currency-formatting NumberFormat instances.
101 * @param currency The 3-letter ISO 4217 currency code, NUL-terminated.
115 // check that the formatter is a DecimalFormat instance in setNumberFormatCurrency_2_4()
140 * number formatting slower. in setNumberFormatCurrency_2_4()
143 * 10^(-maximumFractionDigits). in setNumberFormatCurrency_2_4()
169 // set the currency-related data into the caller's formatter in setNumberFormatCurrency_2_4()
174 dnf->setRoundingIncrement(currencyMap[i].roundingIncrement); in setNumberFormatCurrency_2_4()
176 DecimalFormatSymbols symbols(*dnf->getDecimalFormatSymbols()); in setNumberFormatCurrency_2_4()
178 dnf->setDecimalFormatSymbols(symbols); // do not adopt symbols: Jitterbug 2889 in setNumberFormatCurrency_2_4()
185 * currency-formatting NumberFormat instances.
190 * @param currency The 3-letter ISO 4217 currency code, NUL-terminated.
203 // invariant-character conversion to UChars (see utypes.h and putil.h) in setNumberFormatCurrency_2_6()
237 // TODO: Using printf() here assumes that the runtime encoding is ASCII-friendly in showCurrencyFormatting()
238 // and can therefore be mixed with UTF-8 in showCurrencyFormatting()
241 printf("show currency formatting (method for %s) in the locale \"%s\"\n", in showCurrencyFormatting()
249 printf("NumberFormat::createCurrencyInstance(%s) failed - %s\n", in showCurrencyFormatting()
255 printf(" - format currency \"%s\": ", sampleCurrencies[j]); in showCurrencyFormatting()
264 printf("setNumberFormatCurrency(%s) failed - %s\n", in showCurrencyFormatting()
271 nf->format(12345678.93, output); in showCurrencyFormatting()