/external/snakeyaml/src/main/java/org/yaml/snakeyaml/serializer/ |
NumberAnchorGenerator.java | 20 import java.text.NumberFormat; 32 NumberFormat format = NumberFormat.getNumberInstance();
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/model/ |
ProfilesTableModel.java | 20 import java.text.NumberFormat; 26 private final NumberFormat formatter; 30 formatter = NumberFormat.getNumberInstance();
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
QuantityFormatter.java | 58 * @param numberFormat used to actually format the number. 59 * @param pluralRules uses the number and the numberFormat to determine what plural 63 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { 64 String formatStr = numberFormat.format(number); 65 StandardPlural p = selectPlural(number, numberFormat, pluralRules); 93 public static StandardPlural selectPlural(double number, NumberFormat numberFormat, PluralRules rules) { 95 if (numberFormat instanceof DecimalFormat) { 96 pluralKeyword = rules.select(((DecimalFormat) numberFormat).getFixedDecimal(number)) [all...] |
ScientificNumberFormatter.java | 170 if (attributeSet.containsKey(NumberFormat.Field.EXPONENT_SYMBOL)) { 174 iterator.getRunStart(NumberFormat.Field.EXPONENT_SYMBOL), 176 copyFromOffset = iterator.getRunLimit(NumberFormat.Field.EXPONENT_SYMBOL); 180 } else if (attributeSet.containsKey(NumberFormat.Field.EXPONENT)) { 181 int limit = iterator.getRunLimit(NumberFormat.Field.EXPONENT); 219 if (attributeSet.containsKey(NumberFormat.Field.EXPONENT_SYMBOL)) { 223 iterator.getRunStart(NumberFormat.Field.EXPONENT_SYMBOL), 225 copyFromOffset = iterator.getRunLimit(NumberFormat.Field.EXPONENT_SYMBOL); 228 } else if (attributeSet.containsKey(NumberFormat.Field.EXPONENT_SIGN)) { 229 int start = iterator.getRunStart(NumberFormat.Field.EXPONENT_SIGN) [all...] |
CurrencyFormat.java | 38 private NumberFormat fmt; 45 fmt = NumberFormat.getCurrencyInstance(locale.toLocale()); 54 result.fmt = (NumberFormat) fmt.clone(); 105 public NumberFormat getNumberFormat() {
|
MeasureFormat.java | 120 private final transient ImmutableNumberFormat numberFormat; 163 WIDE(ListFormatter.Style.DURATION, NumberFormat.PLURALCURRENCYSTYLE), 168 SHORT(ListFormatter.Style.DURATION_SHORT, NumberFormat.ISOCURRENCYSTYLE), 173 NARROW(ListFormatter.Style.DURATION_NARROW, NumberFormat.CURRENCYSTYLE), 180 NUMERIC(ListFormatter.Style.DURATION_NARROW, NumberFormat.CURRENCYSTYLE); 211 return getInstance(locale, formatWidth, NumberFormat.getInstance(locale)); 233 public static MeasureFormat getInstance(ULocale locale, FormatWidth formatWidth, NumberFormat format) { 248 NumberFormat intFormat = NumberFormat.getInstance(locale); 259 new ImmutableNumberFormat(NumberFormat.getInstance(locale, formatWidth.getCurrencyStyle())) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
QuantityFormatter.java | 57 * @param numberFormat used to actually format the number. 58 * @param pluralRules uses the number and the numberFormat to determine what plural 62 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { 63 String formatStr = numberFormat.format(number); 64 StandardPlural p = selectPlural(number, numberFormat, pluralRules); 92 public static StandardPlural selectPlural(double number, NumberFormat numberFormat, PluralRules rules) { 94 if (numberFormat instanceof DecimalFormat) { 95 pluralKeyword = rules.select(((DecimalFormat) numberFormat).getFixedDecimal(number)) [all...] |
ScientificNumberFormatter.java | 174 if (attributeSet.containsKey(NumberFormat.Field.EXPONENT_SYMBOL)) { 178 iterator.getRunStart(NumberFormat.Field.EXPONENT_SYMBOL), 180 copyFromOffset = iterator.getRunLimit(NumberFormat.Field.EXPONENT_SYMBOL); 184 } else if (attributeSet.containsKey(NumberFormat.Field.EXPONENT)) { 185 int limit = iterator.getRunLimit(NumberFormat.Field.EXPONENT); 223 if (attributeSet.containsKey(NumberFormat.Field.EXPONENT_SYMBOL)) { 227 iterator.getRunStart(NumberFormat.Field.EXPONENT_SYMBOL), 229 copyFromOffset = iterator.getRunLimit(NumberFormat.Field.EXPONENT_SYMBOL); 232 } else if (attributeSet.containsKey(NumberFormat.Field.EXPONENT_SIGN)) { 233 int start = iterator.getRunStart(NumberFormat.Field.EXPONENT_SIGN) [all...] |
CurrencyFormat.java | 37 private NumberFormat fmt; 44 fmt = NumberFormat.getCurrencyInstance(locale.toLocale()); 53 result.fmt = (NumberFormat) fmt.clone(); 104 public NumberFormat getNumberFormat() {
|
MeasureFormat.java | 120 private final transient ImmutableNumberFormat numberFormat; 167 WIDE(ListFormatter.Style.DURATION, NumberFormat.PLURALCURRENCYSTYLE), 174 SHORT(ListFormatter.Style.DURATION_SHORT, NumberFormat.ISOCURRENCYSTYLE), 181 NARROW(ListFormatter.Style.DURATION_NARROW, NumberFormat.CURRENCYSTYLE), 190 NUMERIC(ListFormatter.Style.DURATION_NARROW, NumberFormat.CURRENCYSTYLE); 222 return getInstance(locale, formatWidth, NumberFormat.getInstance(locale)); 246 public static MeasureFormat getInstance(ULocale locale, FormatWidth formatWidth, NumberFormat format) { 261 NumberFormat intFormat = NumberFormat.getInstance(locale); 272 new ImmutableNumberFormat(NumberFormat.getInstance(locale, formatWidth.getCurrencyStyle())) [all...] |
/external/icu/icu4c/source/test/intltest/ |
nmfmtrt.cpp | 88 // test(NumberFormat.getInstance(new Locale("sr", "", ""))); 92 NumberFormat *fmt = NULL; 96 fmt = NumberFormat::createInstance(status); 97 if (!failure(status, "NumberFormat::createInstance", TRUE)){ 102 fmt = NumberFormat::createCurrencyInstance(status); 103 if (!failure(status, "NumberFormat::createCurrencyInstance", TRUE)){ 108 fmt = NumberFormat::createPercentInstance(status); 109 if (!failure(status, "NumberFormat::createPercentInstance", TRUE)){ 116 const Locale *loc = NumberFormat::getAvailableLocales(locCount); 126 fmt = NumberFormat::createInstance(loc[i], status) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
IntlTestDateFormatAPIC.java | 22 import android.icu.text.NumberFormat; 86 // NumberFormat calling Format API 88 logln("NumberFormat"); 89 NumberFormat fmt = NumberFormat.getInstance(); 94 errln("FAIL: Can't create NumberFormat"); 98 // DecimalFormat calling Format & NumberFormat API 105 // NumberFormat API 123 // ChoiceFormat calling Format & NumberFormat API 130 // NumberFormat AP [all...] |
IntlTestNumberFormat.java | 19 import android.icu.text.NumberFormat; 25 * NumberFormat. 30 public NumberFormat fNumberFormat; 43 fNumberFormat = NumberFormat.getInstance(locale); 47 fNumberFormat = NumberFormat.getCurrencyInstance(locale); 51 fNumberFormat = NumberFormat.getPercentInstance(locale); 56 fNumberFormat = NumberFormat.getScientificInstance(locale); 69 fNumberFormat = NumberFormat.getInstance(locale); 73 fNumberFormat = NumberFormat.getCurrencyInstance(locale); 77 fNumberFormat = NumberFormat.getPercentInstance(locale) [all...] |
NumberFormatTest.java | 40 import android.icu.text.NumberFormat; 41 import android.icu.text.NumberFormat.NumberFormatFactory; 42 import android.icu.text.NumberFormat.SimpleNumberFormatFactory; 575 NumberFormat nff = NumberFormat.getNumberInstance(ULocale.ENGLISH); 584 DecimalFormat parser = (DecimalFormat) NumberFormat.getInstance(new ULocale("fa")); 594 DecimalFormat parser = (DecimalFormat) NumberFormat.getInstance(new ULocale("en")); 619 String s = ((NumberFormat)fmt).format(0); 627 s = ((NumberFormat)fmt).format(BigInteger.ZERO); 688 s = ((NumberFormat) fmt).format(val[v]) [all...] |
TestAll.java | 29 "TestAll$NumberFormat", 56 public static class NumberFormat extends TestGroup { 57 public NumberFormat() {
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/ |
NumberFormatICU.java | 16 import com.ibm.icu.text.NumberFormat; 19 * NumberFormatICU is an adapter class which wraps ICU4J NumberFormat and 20 * implements java.text.NumberFormat APIs. 22 public class NumberFormatICU extends java.text.NumberFormat { 26 private NumberFormat fIcuNfmt; 28 private NumberFormatICU(NumberFormat icuNfmt) { 32 public static java.text.NumberFormat wrap(NumberFormat icuNfmt) { 39 public NumberFormat unwrap() { 46 other.fIcuNfmt = (NumberFormat)fIcuNfmt.clone() [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
IntlTestDateFormatAPIC.java | 21 import com.ibm.icu.text.NumberFormat; 82 // NumberFormat calling Format API 84 logln("NumberFormat"); 85 NumberFormat fmt = NumberFormat.getInstance(); 90 errln("FAIL: Can't create NumberFormat"); 94 // DecimalFormat calling Format & NumberFormat API 101 // NumberFormat API 119 // ChoiceFormat calling Format & NumberFormat API 126 // NumberFormat AP [all...] |
IntlTestNumberFormat.java | 18 import com.ibm.icu.text.NumberFormat; 22 * NumberFormat. 26 public NumberFormat fNumberFormat; 39 fNumberFormat = NumberFormat.getInstance(locale); 43 fNumberFormat = NumberFormat.getCurrencyInstance(locale); 47 fNumberFormat = NumberFormat.getPercentInstance(locale); 52 fNumberFormat = NumberFormat.getScientificInstance(locale); 65 fNumberFormat = NumberFormat.getInstance(locale); 69 fNumberFormat = NumberFormat.getCurrencyInstance(locale); 73 fNumberFormat = NumberFormat.getPercentInstance(locale) [all...] |
NumberFormatTest.java | 39 import com.ibm.icu.text.NumberFormat; 40 import com.ibm.icu.text.NumberFormat.NumberFormatFactory; 41 import com.ibm.icu.text.NumberFormat.SimpleNumberFormatFactory; 571 NumberFormat nff = NumberFormat.getNumberInstance(ULocale.ENGLISH); 580 DecimalFormat parser = (DecimalFormat) NumberFormat.getInstance(new ULocale("fa")); 590 DecimalFormat parser = (DecimalFormat) NumberFormat.getInstance(new ULocale("en")); 615 String s = ((NumberFormat)fmt).format(0); 623 s = ((NumberFormat)fmt).format(BigInteger.ZERO); 684 s = ((NumberFormat) fmt).format(val[v]) [all...] |
TestAll.java | 25 "TestAll$NumberFormat", 50 public static class NumberFormat extends TestGroup { 51 public NumberFormat() {
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/ |
ComplexFormat.java | 21 import java.text.NumberFormat; 50 private NumberFormat imaginaryFormat; 53 private NumberFormat realFormat; 68 public ComplexFormat(NumberFormat format) { 78 public ComplexFormat(NumberFormat realFormat, NumberFormat imaginaryFormat) { 97 public ComplexFormat(String imaginaryCharacter, NumberFormat format) { 98 this(imaginaryCharacter, format, (NumberFormat)format.clone()); 109 public ComplexFormat(String imaginaryCharacter, NumberFormat realFormat, 110 NumberFormat imaginaryFormat) [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
DecimalFormat.java | 28 * <code>DecimalFormat</code> is a concrete subclass of {@link NumberFormat} that formats 36 * <p>To obtain a {@link NumberFormat} for a specific locale (including the default 37 * locale) call one of <code>NumberFormat</code>'s factory methods such as {@link 38 * NumberFormat#getInstance}. Do not call the <code>DecimalFormat</code> constructors 39 * directly, unless you know what you are doing, since the {@link NumberFormat} factory 44 * NumberFormat f = NumberFormat.getInstance(loc); 55 * Locale[] locales = NumberFormat.getAvailableLocales(); 57 * NumberFormat format; 68 * format = NumberFormat.getInstance(locales[i]); break [all...] |
/external/v8/test/intl/number-format/ |
default-locale.js | 28 // Constructing NumberFormat with no locale arguments or with [] 31 var nf = new Intl.NumberFormat([]); 43 var nfNone = new Intl.NumberFormat();
|
/external/icu/icu4c/source/i18n/ |
measfmt.cpp | 122 void adoptCurrencyFormat(int32_t widthIndex, NumberFormat *nfToAdopt) { 126 const NumberFormat *getCurrencyFormat(UMeasureFormatWidth width) const { 129 void adoptIntegerFormat(NumberFormat *nfToAdopt) { 133 const NumberFormat *getIntegerFormat() const { 145 NumberFormat *currencyFormats[WIDTH_INDEX_COUNT]; 146 NumberFormat *integerFormat; 489 result->adoptCurrencyFormat(i, NumberFormat::createInstance( 495 NumberFormat *inf = NumberFormat::createInstance( 579 numberFormat(NULL) [all...] |
currfmt.cpp | 24 fmt = NumberFormat::createCurrencyInstance(locale, ec); 30 fmt = (NumberFormat*) other.fmt->clone();
|