Home | History | Annotate | Download | only in intltest

Lines Matching full:numberformat

27         case 0: name = "NumberFormat API test"; 
29 logln("NumberFormat API test---"); logln("");
42 logln("NumberFormat Registration test---"); logln("");
59 * NumberFormat.
67 logln("Testing NumberFormat constructors");
69 NumberFormat *def = NumberFormat::createInstance(status);
71 dataerrln("ERROR: Could not create NumberFormat (default) - %s", u_errorName(status));
75 NumberFormat *fr = NumberFormat::createInstance(Locale::getFrench(), status);
77 dataerrln("ERROR: Could not create NumberFormat (French) - %s", u_errorName(status));
80 NumberFormat *cur = NumberFormat::createCurrencyInstance(status);
82 dataerrln("ERROR: Could not create NumberFormat (currency, default) - %s", u_errorName(status));
86 NumberFormat *cur_fr = NumberFormat::createCurrencyInstance(Locale::getFrench(), status);
88 dataerrln("ERROR: Could not create NumberFormat (currency, French) - %s", u_errorName(status));
91 NumberFormat *per = NumberFormat::createPercentInstance(status);
93 dataerrln("ERROR: Could not create NumberFormat (percent, default) - %s", u_errorName(status));
97 NumberFormat *per_fr = NumberFormat::createPercentInstance(Locale::getFrench(), status);
99 dataerrln("ERROR: Could not create NumberFormat (percent, French) - %s", u_errorName(status));
190 const Locale *locales = NumberFormat::getAvailableLocales(count);
233 NumberFormat *test = new DecimalFormat(status);
235 errcheckln(status, "ERROR: Couldn't create a NumberFormat - %s", u_errorName(status));
257 NumberFormat* currencyStyle;
264 currencyStyle = NumberFormat::createInstance(SWAP_LOC, status);
272 virtual NumberFormat* createFormat(const Locale& /* loc */, UNumberFormatStyle formatType)
275 return (NumberFormat*)currencyStyle->clone();
303 LocalPointer<NumberFormat> f0(NumberFormat::createInstance(SWAP_LOC, status));
304 LocalPointer<NumberFormat> f1(NumberFormat::createInstance(SRC_LOC, status));
305 LocalPointer<NumberFormat> f2(NumberFormat::createCurrencyInstance(SRC_LOC, status));
306 URegistryKey key = NumberFormat::registerFactory(new NFTestFactory(), status);
307 LocalPointer<NumberFormat> f3(NumberFormat::createCurrencyInstance(SRC_LOC, status));
308 LocalPointer<NumberFormat> f3a(NumberFormat::createCurrencyInstance(SRC_LOC, status));
309 LocalPointer<NumberFormat> f4(NumberFormat::createInstance(SRC_LOC, status));
311 StringEnumeration* locs = NumberFormat::getAvailableLocales();
321 NumberFormat::unregister(key, status); // restore for other tests
322 LocalPointer<NumberFormat> f5(NumberFormat::createCurrencyInstance(SRC_LOC, status));