/external/icu/icu4c/source/test/intltest/ |
tsnmfmt.cpp | 35 * NumberFormat. 40 if (exec) logln((UnicodeString)"TestSuite NumberFormat"); 47 fFormat = NumberFormat::createInstance(fStatus); 83 fFormat = NumberFormat::createInstance(locale, fStatus); 89 fFormat = NumberFormat::createCurrencyInstance(locale, fStatus); 95 fFormat = NumberFormat::createPercentInstance(locale, fStatus); 102 fFormat = NumberFormat::createScientificInstance(locale, fStatus); 400 const Locale* locales = NumberFormat::getAvailableLocales(count); 422 const Locale* allLocales = NumberFormat::getAvailableLocales(count);
|
numfmtspectest.cpp | 33 static NumberFormat *nfWithPattern(const char *pattern) { 46 static UnicodeString format(double d, const NumberFormat &fmt) { 101 LocalPointer<NumberFormat> nf(nfWithPattern("#,##0.##")); 103 dataerrln("Error creating NumberFormat");
|
plurfmts.cpp | 64 NumberFormat *numFmt = NumberFormat::createInstance(status[0]); 66 dataerrln("ERROR: Could not create NumberFormat instance with default locale "); 224 NumberFormat *numFmt = NumberFormat::createInstance(status); 227 dataerrln("ERROR: Could not create NumberFormat instance with default locale "); 267 numFmt = NumberFormat::createInstance(Locale::getEnglish(), status); 269 dataerrln("ERROR: Could not create NumberFormat instance with English locale "); 687 NumberFormat *numFmt, 692 UBool overwrite, // overwrite the numberFormat.format resul [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/ |
BigFractionFormat.java | 23 import java.text.NumberFormat; 58 public BigFractionFormat(final NumberFormat format) { 68 public BigFractionFormat(final NumberFormat numeratorFormat, 69 final NumberFormat denominatorFormat) { 75 * is the same set as the {@link NumberFormat} set. 79 return NumberFormat.getAvailableLocales();
|
/external/v8/src/ |
i18n.cc | 187 // same digits as NumberFormat/Calendar would. 255 icu::NumberFormat::EStyles format_style; 257 format_style = icu::NumberFormat::kIsoCurrencyStyle; 259 format_style = icu::NumberFormat::kPluralCurrencyStyle; 261 format_style = icu::NumberFormat::kCurrencyStyle; 275 icu::NumberFormat::createInstance(icu_locale, format_style, status)); 295 icu::NumberFormat::createPercentInstance(icu_locale, status)); 305 icu::NumberFormat::createInstance(icu_locale, status)); 391 // same digits as NumberFormat/Calendar would. 790 icu::DecimalFormat* NumberFormat::InitializeNumberFormat [all...] |
/external/jacoco/org.jacoco.report/src/org/jacoco/report/internal/html/table/ |
BarColumn.java | 16 import java.text.NumberFormat; 40 private final NumberFormat integerFormat;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
DateFormatTest.java | 21 import java.text.NumberFormat; 38 assertTrue("Clone shares NumberFormat", !format.equals(clone)); 313 NumberFormat nf1 = format.getNumberFormat(); 314 NumberFormat nf2 = format.getNumberFormat(); 438 * @tests java.text.DateFormat#setNumberFormat(java.text.NumberFormat) 442 NumberFormat f1 = NumberFormat.getInstance(); 444 assertTrue("Not identical NumberFormat", f1 == format.getNumberFormat());
|
DecimalFormatTest.java | 28 import java.text.NumberFormat; 95 DecimalFormat form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 102 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 116 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 142 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 151 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 159 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 177 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 189 form = (DecimalFormat) NumberFormat.getInstance(Locale.US); 201 form = (DecimalFormat) NumberFormat.getInstance(Locale.US) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
SuperCollapsedBlock.java | 31 import java.text.NumberFormat; 85 final String strCount = NumberFormat.getIntegerInstance().format(mCount);
|
/external/icu/icu4c/source/i18n/unicode/ |
fieldpos.h | 72 * DecimalFormat* fmt = (DecimalFormat*) NumberFormat::createInstance(status); 79 * FieldPosition pos(NumberFormat::INTEGER_FIELD); 126 * @see NumberFormat#INTEGER_FIELD 127 * @see NumberFormat#FRACTION_FIELD
|
/external/v8/test/intl/number-format/ |
parse-currency.js | 31 var nf = new Intl.NumberFormat(['en'], {style: 'currency', currency: 'USD'});
|
parse-decimal.js | 28 var nf = new Intl.NumberFormat(['en'], {style: 'decimal'});
|
parse-invalid-input.js | 30 var nf = new Intl.NumberFormat(['en']);
|
parse-percent.js | 28 var nf = new Intl.NumberFormat(['en'], {style: 'percent'});
|
resolved-options-is-method.js | 31 var nf = new Intl.NumberFormat();
|
wellformed-unsupported-locale.js | 30 var nf = Intl.NumberFormat(['xx']);
|
/frameworks/base/docs/html/sdk/api_diff/n-preview-4-incr/changes/ |
classes_index_removals.html | 89 <A HREF="pkg_android.icu.text.html#NumberFormat.NumberFormatFactory" class="hiddenlink" target="rightframe"><strike>NumberFormat.NumberFormatFactory</strike></A><br> 90 <A HREF="pkg_android.icu.text.html#NumberFormat.SimpleNumberFormatFactory" class="hiddenlink" target="rightframe"><strike>NumberFormat.SimpleNumberFormatFactory</strike></A><br>
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
TimeUnitFormat.java | 89 private NumberFormat format; 167 private TimeUnitFormat(ULocale locale, int style, NumberFormat numberFormat) { 169 if (numberFormat != null) { 170 setNumberFormat((NumberFormat) numberFormat.clone()); 215 * {@link NumberFormat#getNumberInstance(ULocale)}. 221 public TimeUnitFormat setNumberFormat(NumberFormat format) { 230 this.format = NumberFormat.getNumberInstance(locale); 356 format = NumberFormat.getNumberInstance(locale) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
RbnfLenientScannerTest.java | 10 import java.text.NumberFormat; 217 NumberFormat decFmt = NumberFormat.getInstance(Locale.US);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
TimeUnitFormat.java | 87 private NumberFormat format; 165 private TimeUnitFormat(ULocale locale, int style, NumberFormat numberFormat) { 167 if (numberFormat != null) { 168 setNumberFormat((NumberFormat) numberFormat.clone()); 213 * {@link NumberFormat#getNumberInstance(ULocale)}. 219 public TimeUnitFormat setNumberFormat(NumberFormat format) { 228 this.format = NumberFormat.getNumberInstance(locale); 354 format = NumberFormat.getNumberInstance(locale) [all...] |
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/ |
RbnfLenientScannerTest.java | 9 import java.text.NumberFormat; 213 NumberFormat decFmt = NumberFormat.getInstance(Locale.US);
|
/libcore/luni/src/test/java/libcore/java/text/ |
OldDecimalFormatTestICU.java | 20 import java.text.NumberFormat; 35 format = (DecimalFormat) NumberFormat.getNumberInstance(); 40 DecimalFormat format = (DecimalFormat) NumberFormat
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
GlobalizationPreferences.java | 25 import android.icu.text.NumberFormat; 99 NF_NUMBER = 0, // NumberFormat.NUMBERSTYLE 100 NF_CURRENCY = 1, // NumberFormat.CURRENCYSTYLE 101 NF_PERCENT = 2, // NumberFormat.PERCENTSTYLE 102 NF_SCIENTIFIC = 3, // NumberFormat.SCIENTIFICSTYLE 103 NF_INTEGER = 4; // NumberFormat.INTEGERSTYLE 689 public NumberFormat getNumberFormat(int style) { 693 NumberFormat result = null; 698 result = (NumberFormat) result.clone(); // clone for safety (later optimize) 713 public GlobalizationPreferences setNumberFormat(int style, NumberFormat format) [all...] |
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/ |
GlobalizationPreferences.java | 24 import com.ibm.icu.text.NumberFormat; 100 NF_NUMBER = 0, // NumberFormat.NUMBERSTYLE 101 NF_CURRENCY = 1, // NumberFormat.CURRENCYSTYLE 102 NF_PERCENT = 2, // NumberFormat.PERCENTSTYLE 103 NF_SCIENTIFIC = 3, // NumberFormat.SCIENTIFICSTYLE 104 NF_INTEGER = 4; // NumberFormat.INTEGERSTYLE 717 public NumberFormat getNumberFormat(int style) { 721 NumberFormat result = null; 726 result = (NumberFormat) result.clone(); // clone for safety (later optimize) 742 public GlobalizationPreferences setNumberFormat(int style, NumberFormat format) [all...] |
/external/icu/icu4c/source/i18n/ |
nfsubs.h | 35 DecimalFormat* numberFormat; 50 * get the NumberFormat of this object. 51 * @return the numberformat of this object. 53 const DecimalFormat* getNumberFormat() const { return numberFormat; } 176 * numerals using a default-costructed NumberFormat. If false,
|