/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/ |
D | DecimalFormatTest.java | 14 import com.ibm.icu.text.DecimalFormat; 25 DecimalFormat df = new DecimalFormat("#,#0.00"); in testClone() 26 DecimalFormat df2 = new DecimalFormat("#,#0.00"); in testClone() 27 DecimalFormat dfn = new DecimalFormat("#,#0.00"); in testClone() 43 DecimalFormat df = new DecimalFormat(); in testDecimalFormat() 51 DecimalFormat df = new DecimalFormat("#,##0.000"); in testDecimalFormatString() 60 DecimalFormat df = new DecimalFormat("#,##0.000", sym); in testDecimalFormatStringDecimalFormatSymbols() 69 DecimalFormat df = new DecimalFormat("#,##0.000", sym); in testGetDecimalFormatSymbols() 77 DecimalFormat df = new DecimalFormat(); in testSetDecimalFormatSymbols() 86 DecimalFormat df = new DecimalFormat("+#,##0.#;-#,##0.#"); in testGetPositivePrefix() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | BigNumberFormatTest.java | 18 import com.ibm.icu.text.DecimalFormat; 33 DecimalFormat fmt1 = new DecimalFormat("0.###E0", US); in TestExponent() 34 DecimalFormat fmt2 = new DecimalFormat("0.###E+0", US); in TestExponent() 49 DecimalFormat f = new DecimalFormat("#,##,###", US); in TestSecondaryGrouping() 59 f = (DecimalFormat) NumberFormat.getInstance(new Locale("hi", "IN")); in TestSecondaryGrouping() 65 private void expectPad(DecimalFormat fmt, String pat, int pos) { in expectPad() 69 private void expectPad(DecimalFormat fmt, String pat, in expectPad() 98 DecimalFormat fmt = new DecimalFormat("#", US); in TestPatterns() 100 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, '^'); in TestPatterns() 101 expectPad(fmt, "$*^#", DecimalFormat.PAD_AFTER_PREFIX, 2, '^'); in TestPatterns() [all …]
|
D | NumberFormatTest.java | 42 import com.ibm.icu.text.DecimalFormat; 78 DecimalFormat fmt = newDecimalFormat(tuple); 89 DecimalFormat fmt = newDecimalFormat(tuple); 110 DecimalFormat fmt = newDecimalFormat(tuple); 132 DecimalFormat fmt = newDecimalFormat(tuple); 161 private DecimalFormat newDecimalFormat(NumberFormatTestData tuple) { 163 DecimalFormat fmt = new DecimalFormat( 173 private void adjustDecimalFormat(NumberFormatTestData tuple, DecimalFormat fmt) { 283 java.text.DecimalFormat fmt = newDecimalFormat(tuple); 294 java.text.DecimalFormat fmt = newDecimalFormat(tuple); [all …]
|
D | NumberRegressionTests.java | 49 import com.ibm.icu.text.DecimalFormat; 98 DecimalFormat df = new DecimalFormat(); in Test4088161() 122 DecimalFormat df = new DecimalFormat("#,##0.0", symbols); in Test4087245() 140 DecimalFormat df = new DecimalFormat(); in Test4087535() 159 DecimalFormat df = new DecimalFormat(); in Test4088503() 199 DecimalFormat format = new DecimalFormat("00"); in Test4059870() 242 logln("nf toPattern1: " + ((DecimalFormat)nf).toPattern()); in Test4086575() 243 logln("nf toLocPattern1: " + ((DecimalFormat)nf).toLocalizedPattern()); in Test4086575() 247 ((DecimalFormat)nf).applyLocalizedPattern("###,00;(###,00)"); in Test4086575() 248 logln("nf toPattern2: " + ((DecimalFormat)nf).toPattern()); in Test4086575() [all …]
|
D | ScientificNumberFormatterTest.java | 14 import com.ibm.icu.text.DecimalFormat; 53 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentMarkup() 67 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentSuperscript() 79 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalMarkup() 90 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalSuperscript()
|
D | IntlTestDecimalFormatAPI.java | 31 import com.ibm.icu.text.DecimalFormat; 60 DecimalFormat dec = new DecimalFormat(pat); in testJB1871() 71 dec = new DecimalFormat(pat); in testJB1871() 81 dec = new DecimalFormat(pat); in testJB1871() 108 DecimalFormat def = new DecimalFormat(); in TestAPI() 111 DecimalFormat pat = null; in TestAPI() 113 pat = new DecimalFormat(pattern); in TestAPI() 121 DecimalFormat cust1 = new DecimalFormat(pattern, symbols); in TestAPI() 278 DecimalFormat decfmt = new DecimalFormat(); in testJB6134() 298 DecimalFormat decfmt = new DecimalFormat(); in testJB4971() [all …]
|
D | NumberFormatSpecificationTest.java | 14 import com.ibm.icu.text.DecimalFormat; 132 DecimalFormat fmt = new DecimalFormat("¤¤ **#######0", sym); in TestPadding() 140 DecimalFormat fmt = new DecimalFormat("¤¤ **#######0;¤¤ (#)", sym); in TestPadding() 147 DecimalFormat fmt = new DecimalFormat("QU**00.#####E0", sym); in TestPadding() 156 DecimalFormat fmt = new DecimalFormat(pattern, sym); in formatFrWithPattern() 162 return new DecimalFormat(pattern, sym); in nfWithPattern()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | BigNumberFormatTest.java | 19 import android.icu.text.DecimalFormat; 34 DecimalFormat fmt1 = new DecimalFormat("0.###E0", US); in TestExponent() 35 DecimalFormat fmt2 = new DecimalFormat("0.###E+0", US); in TestExponent() 50 DecimalFormat f = new DecimalFormat("#,##,###", US); in TestSecondaryGrouping() 60 f = (DecimalFormat) NumberFormat.getInstance(new Locale("hi", "IN")); in TestSecondaryGrouping() 66 private void expectPad(DecimalFormat fmt, String pat, int pos) { in expectPad() 70 private void expectPad(DecimalFormat fmt, String pat, in expectPad() 99 DecimalFormat fmt = new DecimalFormat("#", US); in TestPatterns() 101 expectPad(fmt, "*^#", DecimalFormat.PAD_BEFORE_PREFIX, 1, '^'); in TestPatterns() 102 expectPad(fmt, "$*^#", DecimalFormat.PAD_AFTER_PREFIX, 2, '^'); in TestPatterns() [all …]
|
D | NumberFormatTest.java | 43 import android.icu.text.DecimalFormat; 79 DecimalFormat fmt = newDecimalFormat(tuple); 90 DecimalFormat fmt = newDecimalFormat(tuple); 111 DecimalFormat fmt = newDecimalFormat(tuple); 133 DecimalFormat fmt = newDecimalFormat(tuple); 162 private DecimalFormat newDecimalFormat(NumberFormatTestData tuple) { 164 DecimalFormat fmt = new DecimalFormat( 174 private void adjustDecimalFormat(NumberFormatTestData tuple, DecimalFormat fmt) { 284 java.text.DecimalFormat fmt = newDecimalFormat(tuple); 295 java.text.DecimalFormat fmt = newDecimalFormat(tuple); [all …]
|
D | NumberRegressionTests.java | 50 import android.icu.text.DecimalFormat; 99 DecimalFormat df = new DecimalFormat(); in Test4088161() 123 DecimalFormat df = new DecimalFormat("#,##0.0", symbols); in Test4087245() 141 DecimalFormat df = new DecimalFormat(); in Test4087535() 160 DecimalFormat df = new DecimalFormat(); in Test4088503() 200 DecimalFormat format = new DecimalFormat("00"); in Test4059870() 243 logln("nf toPattern1: " + ((DecimalFormat)nf).toPattern()); in Test4086575() 244 logln("nf toLocPattern1: " + ((DecimalFormat)nf).toLocalizedPattern()); in Test4086575() 248 ((DecimalFormat)nf).applyLocalizedPattern("###,00;(###,00)"); in Test4086575() 249 logln("nf toPattern2: " + ((DecimalFormat)nf).toPattern()); in Test4086575() [all …]
|
D | ScientificNumberFormatterTest.java | 15 import android.icu.text.DecimalFormat; 54 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentMarkup() 68 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getScientificInstance(ULocale.ENGLISH); in TestPlusSignInExponentSuperscript() 80 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalMarkup() 91 DecimalFormat decfmt = (DecimalFormat) NumberFormat.getInstance(ULocale.ENGLISH); in TestFixedDecimalSuperscript()
|
D | IntlTestDecimalFormatAPI.java | 32 import android.icu.text.DecimalFormat; 61 DecimalFormat dec = new DecimalFormat(pat); in testJB1871() 72 dec = new DecimalFormat(pat); in testJB1871() 82 dec = new DecimalFormat(pat); in testJB1871() 109 DecimalFormat def = new DecimalFormat(); in TestAPI() 112 DecimalFormat pat = null; in TestAPI() 114 pat = new DecimalFormat(pattern); in TestAPI() 122 DecimalFormat cust1 = new DecimalFormat(pattern, symbols); in TestAPI() 279 DecimalFormat decfmt = new DecimalFormat(); in testJB6134() 299 DecimalFormat decfmt = new DecimalFormat(); in testJB4971() [all …]
|
D | NumberFormatSpecificationTest.java | 15 import android.icu.text.DecimalFormat; 133 DecimalFormat fmt = new DecimalFormat("¤¤ **#######0", sym); in TestPadding() 141 DecimalFormat fmt = new DecimalFormat("¤¤ **#######0;¤¤ (#)", sym); in TestPadding() 148 DecimalFormat fmt = new DecimalFormat("QU**00.#####E0", sym); in TestPadding() 157 DecimalFormat fmt = new DecimalFormat(pattern, sym); in formatFrWithPattern() 163 return new DecimalFormat(pattern, sym); in nfWithPattern()
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
D | DecimalFormat.java | 592 public class DecimalFormat extends NumberFormat { class 599 public DecimalFormat(java.text.DecimalFormat delegate) { in DecimalFormat() method in DecimalFormat 618 public DecimalFormat() { in DecimalFormat() method in DecimalFormat 621 this(new java.text.DecimalFormat()); in DecimalFormat() 627 if (jdkNfmt instanceof java.text.DecimalFormat) { in DecimalFormat() 628 …((java.text.DecimalFormat)numberFormat).applyPattern(((java.text.DecimalFormat)jdkNfmt).toPattern(… in DecimalFormat() 629 …((java.text.DecimalFormat)numberFormat).setDecimalFormatSymbols(((java.text.DecimalFormat)jdkNfmt)… in DecimalFormat() 651 public DecimalFormat(String pattern) { in DecimalFormat() method in DecimalFormat 652 this(new java.text.DecimalFormat( in DecimalFormat() 676 public DecimalFormat(String pattern, DecimalFormatSymbols symbols) { in DecimalFormat() method in DecimalFormat [all …]
|
/external/icu/icu4c/source/i18n/ |
D | decimfmt.cpp | 204 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DecimalFormat) 230 const int32_t DecimalFormat::kDoubleIntegerDigits = 309; 231 const int32_t DecimalFormat::kDoubleFractionDigits = 340; 233 const int32_t DecimalFormat::kMaxScientificIntegerDigits = 8; 239 const char DecimalFormat::fgNumberPatterns[]="NumberPatterns"; // Deprecated - not used 252 DecimalFormat::DecimalFormat(UErrorCode& status) { in DecimalFormat() function in DecimalFormat 262 DecimalFormat::DecimalFormat(const UnicodeString& pattern, in DecimalFormat() function in DecimalFormat 274 DecimalFormat::DecimalFormat(const UnicodeString& pattern, in DecimalFormat() function in DecimalFormat 284 DecimalFormat::DecimalFormat( const UnicodeString& pattern, in DecimalFormat() function in DecimalFormat 299 DecimalFormat::DecimalFormat(const UnicodeString& pattern, in DecimalFormat() function in DecimalFormat [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | CompactDecimalDataCache.java | 20 import com.ibm.icu.text.DecimalFormat.Unit; 76 Map<String, DecimalFormat.Unit[]> units; 79 Data(long[] divisors, Map<String, DecimalFormat.Unit[]> units) in Data() 110 new Data(new long[MAX_DIGITS], new HashMap<String, DecimalFormat.Unit[]>()), in createEmpty() 111 new Data(new long[MAX_DIGITS], new HashMap<String, DecimalFormat.Unit[]>()), in createEmpty() 112 new Data(new long[MAX_DIGITS], new HashMap<String, DecimalFormat.Unit[]>()) in createEmpty() 353 …boolean saved = saveUnit(new DecimalFormat.Unit(prefix, suffix), pluralVariant, idx, destination.u… in populatePrefixSuffix() 413 DecimalFormat.Unit[] otherByBase = data.units.get(OTHER); in checkForOtherVariants() 424 DecimalFormat.Unit[] variantByBase = entry.getValue(); in checkForOtherVariants() 469 int idx, Map<String, DecimalFormat.Unit[]> units) { in propagateOtherToMissing() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | CompactDecimalDataCache.java | 21 import android.icu.text.DecimalFormat.Unit; 77 Map<String, DecimalFormat.Unit[]> units; 80 Data(long[] divisors, Map<String, DecimalFormat.Unit[]> units) in Data() 111 new Data(new long[MAX_DIGITS], new HashMap<String, DecimalFormat.Unit[]>()), in createEmpty() 112 new Data(new long[MAX_DIGITS], new HashMap<String, DecimalFormat.Unit[]>()), in createEmpty() 113 new Data(new long[MAX_DIGITS], new HashMap<String, DecimalFormat.Unit[]>()) in createEmpty() 354 …boolean saved = saveUnit(new DecimalFormat.Unit(prefix, suffix), pluralVariant, idx, destination.u… in populatePrefixSuffix() 414 DecimalFormat.Unit[] otherByBase = data.units.get(OTHER); in checkForOtherVariants() 425 DecimalFormat.Unit[] variantByBase = entry.getValue(); in checkForOtherVariants() 470 int idx, Map<String, DecimalFormat.Unit[]> units) { in propagateOtherToMissing() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | numfmtst.cpp | 88 const DecimalFormat &fmt, in format() 101 const DecimalFormat &fmt, in format() 114 DecimalFormat &fmt, in adjustDecimalFormat() 235 static DecimalFormat *newDecimalFormat( in newDecimalFormat() 248 LocalPointer<DecimalFormat> result(new DecimalFormat( in newDecimalFormat() 259 static DecimalFormat *newDecimalFormat( in newDecimalFormat() 279 LocalPointer<DecimalFormat> fmtPtr(newDecimalFormat(tuple, status)); in isFormatPass() 343 LocalPointer<DecimalFormat> fmtPtr(newDecimalFormat(tuple, status)); in isToPatternPass() 378 LocalPointer<DecimalFormat> fmtPtr(newDecimalFormat(tuple, status)); in isParsePass() 423 LocalPointer<DecimalFormat> fmtPtr(newDecimalFormat(tuple, status)); in isParseCurrencyPass() [all …]
|
D | scientificnumberformattertest.cpp | 120 …LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createScientificInstance("en", … in TestPlusSignInExponentMarkup() 132 new DecimalFormat(*decfmt), "<sup>", "</sup>", status)); in TestPlusSignInExponentMarkup() 147 …LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createScientificInstance("en", … in TestPlusSignInExponentSuperscript() 159 new DecimalFormat(*decfmt), status)); in TestPlusSignInExponentSuperscript() 174 … LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance("en", status)); in TestFixedDecimalMarkup() 180 new DecimalFormat(*decfmt), "<sup>", "</sup>", status)); in TestFixedDecimalMarkup() 196 … LocalPointer<DecimalFormat> decfmt((DecimalFormat *) NumberFormat::createInstance("en", status)); in TestFixedDecimalSuperscript() 202 new DecimalFormat(*decfmt), status)); in TestFixedDecimalSuperscript()
|
D | numberformattesttuple.cpp | 33 {"ceiling", DecimalFormat::kRoundCeiling}, 34 {"floor", DecimalFormat::kRoundFloor}, 35 {"down", DecimalFormat::kRoundDown}, 36 {"up", DecimalFormat::kRoundUp}, 37 {"halfEven", DecimalFormat::kRoundHalfEven}, 38 {"halfDown", DecimalFormat::kRoundHalfDown}, 39 {"halfUp", DecimalFormat::kRoundHalfUp}, 40 {"unnecessary", DecimalFormat::kRoundUnnecessary}}; 47 {"beforePrefix", DecimalFormat::kPadBeforePrefix}, 48 {"afterPrefix", DecimalFormat::kPadAfterPrefix}, [all …]
|
D | numrgts.cpp | 291 DecimalFormat *df = new DecimalFormat(status); in Test4088161() 327 DecimalFormat *df = new DecimalFormat("#,##0.0", *symbols, status); in Test4087245() 351 DecimalFormat *df = new DecimalFormat(status); in Test4087535() 379 DecimalFormat *df = new DecimalFormat(status); in Test4088503() 443 DecimalFormat *format = new DecimalFormat("00", status); in Test4059870() 523 DecimalFormat *nf = dynamic_cast<DecimalFormat *>(nf1); in Test4086575() 593 DecimalFormat *df = new DecimalFormat(status); in Test4068693() 649 DecimalFormat *df = new DecimalFormat(status); in Test4087251() 715 DecimalFormat *df = new DecimalFormat(status); in Test4090504() 744 DecimalFormat *df = new DecimalFormat(status); in Test4095713() [all …]
|
D | numfmtst.h | 283 void expectPad(DecimalFormat& fmt, const UnicodeString& pat, 286 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad() 291 void expectPad(DecimalFormat& fmt, const UnicodeString& pat, 294 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad() 299 void expectPat(DecimalFormat& fmt, const UnicodeString& exp); 301 void expectPat(DecimalFormat& fmt, const char *exp) { in expectPat() 305 void expectPad(DecimalFormat& fmt, const UnicodeString& pat, 308 void expectPad(DecimalFormat& fmt, const char *pat, in expectPad() 327 void checkRounding(DecimalFormat* df, double base, int iterations, double increment); 329 double checkRound(DecimalFormat* df, double iValue, double lastParsed); [all …]
|
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
D | DecimalFormatPerformanceTest.java | 24 com.ibm.icu.text.DecimalFormat[] icuDecimalFormat; 26 java.text.DecimalFormat[] javaDecimalFormat; 43 icuDecimalFormat = new com.ibm.icu.text.DecimalFormat[threads]; in setup() 44 javaDecimalFormat = new java.text.DecimalFormat[threads]; in setup() 46 icuDecimalFormat[i] = new com.ibm.icu.text.DecimalFormat(pattern, in setup() 48 javaDecimalFormat[i] = new java.text.DecimalFormat(pattern, in setup() 66 new com.ibm.icu.text.DecimalFormat(pattern, in TestICUConstruction() 75 new java.text.DecimalFormat(pattern, new java.text.DecimalFormatSymbols(locale));
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
D | Timer.java | 12 import android.icu.text.DecimalFormat; 60 public DecimalFormat getNumberFormat() { in getNumberFormat() 64 public DecimalFormat getPercentFormat() { in getPercentFormat() 82 private DecimalFormat nf = (DecimalFormat) NumberFormat.getNumberInstance(ULocale.ENGLISH); 83 private DecimalFormat pf = (DecimalFormat) NumberFormat.getPercentInstance(ULocale.ENGLISH);
|
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/ |
D | Timer.java | 11 import com.ibm.icu.text.DecimalFormat; 59 public DecimalFormat getNumberFormat() { in getNumberFormat() 63 public DecimalFormat getPercentFormat() { in getPercentFormat() 81 private DecimalFormat nf = (DecimalFormat) NumberFormat.getNumberInstance(ULocale.ENGLISH); 82 private DecimalFormat pf = (DecimalFormat) NumberFormat.getPercentInstance(ULocale.ENGLISH);
|