Home | History | Annotate | Download | only in intltest

Lines Matching refs:NumberFormat

28 class MyNumberFormatTest : public NumberFormat 
39 return NumberFormat::format(number, toAppendTo, posIter, status);
48 return NumberFormat::format(obj, toAppendTo, pos, status);
77 NumberFormat::parse(text, result, status);
245 * NumberFormat.equals comparing with null should always return false.
253 logln("NumberFormat.equals passed");
262 * NumberFormat.equals comparing two obj equal even the setGroupingUsed
398 * NumberFormat.getCurrencyInstance is wrong.
413 NumberFormat *nfcommon = NumberFormat::createCurrencyInstance(Locale::getUS(), status);
414 if (failure(status, "NumberFormat::createCurrencyInstance", Locale::getUS(), TRUE)){
487 NumberFormat *nf = NumberFormat::createInstance(status);
488 if (failure(status, "NumberFormat::createInstance", Locale::getUS(), TRUE)) {
511 NumberFormat *nf1 = NumberFormat::createInstance(Locale::getFrance(), status);
520 failure(status, "NumberFormat::createInstance", Locale::getFrance());
525 errln("NumberFormat::createInstance returned incorrect type.");
686 // that NumberFormat can do. For some reason, it does not format the last 1.
841 * NumberFormat.getCurrencyInstance() produces format that uses
853 NumberFormat *nf = NumberFormat::createCurrencyInstance(*de, status);
896 NumberFormat *formatter;
921 formatter = NumberFormat::createInstance(Locale(loc), status);
927 failure(status, "NumberFormat::createInstance", loc);
939 formatter = NumberFormat::createCurrencyInstance(loc, status);
940 failure(status, "NumberFormat::createCurrencyInstance", loc);
954 formatter = NumberFormat::createPercentInstance(Locale(loc), status);
955 failure(status, "NumberFormat::createPercentInstance", loc);
974 NumberFormat *formatter;
995 formatter = NumberFormat::createInstance(Locale::getCanadaFrench(), status);
996 if (failure(status, "NumberFormat::createInstance", Locale::getCanadaFrench(), TRUE)){
1011 formatter = NumberFormat::createCurrencyInstance(Locale::getCanadaFrench(), status);
1012 failure(status, "NumberFormat::createCurrencyInstance", Locale::getCanadaFrench());
1025 formatter = NumberFormat::createPercentInstance(Locale::getCanadaFrench(), status);
1026 failure(status, "NumberFormat::createPercentInstance", Locale::getCanadaFrench());
1046 NumberFormat *formatter;
1063 formatter = NumberFormat::createInstance(Locale(loc), status);
1064 if (failure(status, "NumberFormat::createInstance", loc, TRUE)){
1080 formatter = NumberFormat::createCurrencyInstance(Locale(loc), status);
1081 failure(status, "NumberFormat::createCurrencyInstance", loc);
1094 formatter = NumberFormat::createPercentInstance(Locale::getGermany(), status);
1095 failure(status, "NumberFormat::createPercentInstance", Locale::getGermany());
1114 NumberFormat *formatter;
1129 formatter = NumberFormat::createInstance(Locale(loc), status);
1130 if (failure(status, "NumberFormat::createNumberInstance", TRUE)){
1145 formatter = NumberFormat::createCurrencyInstance(Locale(loc), status);
1146 failure(status, "NumberFormat::createCurrencyInstance");
1159 formatter = NumberFormat::createPercentInstance(Locale(loc), status);
1160 failure(status, "NumberFormat::createPercentInstance");
1222 NumberFormat *fmt = NumberFormat::createPercentInstance(status);
1224 dataerrln("Error calling NumberFormat::createPercentInstance");
1275 * [4] NumberFormat.parse(String, ParsePosition) : If parsing fails,
1278 * NumberFormat.parse(String) : If parsing fails, an ParseException
1527 * NumberFormat.parse doesn't return null
1532 NumberFormat *format = NumberFormat::createInstance(status);
1538 failure(status, "NumberFormat::createInstance");
1631 NumberFormat *nf = NumberFormat::createInstance(status);
1637 failure(status, "NumberFormat::createInstance");
1908 * BigDecimal numbers get their fractions truncated by NumberFormat.
1915 String sd = NumberFormat.getInstance(Locale.US).format(bd);
1932 NumberFormat *nff = NumberFormat::createInstance(status);
1933 if (failure(status, "NumberFormat::createInstance", TRUE)){
2083 * NumberFormat cannot format Double.MAX_VALUE
2092 NumberFormat *f = NumberFormat::createInstance(status);
2128 * NumberFormat does not parse negative zero.
2135 NumberFormat *f = (i == 0) ? NumberFormat::createInstance(status)
2136 : NumberFormat::createPercentInstance(status);
2169 * NumberFormat truncates data
2173 NumberFormat *fmt = NumberFormat::createInstance(Locale::getUS(), status);
2174 if (failure(status, "NumberFormat::createInstance", TRUE)){
2209 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status);
2210 if (failure(status, "NumberFormat::createInstance", TRUE)){
2405 const Locale* avail = NumberFormat::getAvailableLocales(n);
2414 NumberFormat *nf;
2417 nf = NumberFormat::createInstance(avail[i], status);
2421 nf = NumberFormat::createCurrencyInstance(avail[i], status);
2425 nf = NumberFormat::createPercentInstance(avail[i], status);
2498 DecimalFormat *fmt = (DecimalFormat*) NumberFormat::createInstance(Locale::getUS(), status);
2540 NumberFormat *fmt = NumberFormat::createInstance(Locale::getUS(), status);
2561 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status);
2661 * NumberFormat objects.
2678 // create a NumberFormat for this locale
2679 NumberFormat *nf = NumberFormat::createInstance(loc, status);
2681 dataerrln("FAIL: NumberFormat::createInstance() returned " + (UnicodeString)u_errorName(status));
2745 NumberFormat *nf = NumberFormat::createInstance(Locale::getEnglish(), status);
2747 dataerrln("Fail: NumberFormat::createInstance(Locale::getEnglish(), status)");
2891 NumberFormat *nf = NumberFormat::createInstance(Locale::getUS(), status);
2892 if (failure(status, "NumberFormat::createInstance", TRUE)){
3020 // DecimalFormat/NumberFormat were artificially limiting the number of digits,