Home
last modified time | relevance | path

Searched refs:numberFormat (Results 1 – 25 of 61) sorted by relevance

123

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DDecimalFormat.java628 …((java.text.DecimalFormat)numberFormat).applyPattern(((java.text.DecimalFormat)jdkNfmt).toPattern(… in DecimalFormat()
629 …((java.text.DecimalFormat)numberFormat).setDecimalFormatSymbols(((java.text.DecimalFormat)jdkNfmt)… in DecimalFormat()
804 …return new DecimalFormatSymbols(((java.text.DecimalFormat)numberFormat).getDecimalFormatSymbols()); in getDecimalFormatSymbols()
816 ((java.text.DecimalFormat)numberFormat).setDecimalFormatSymbols(newSymbols.dfs); in setDecimalFormatSymbols()
827 return ((java.text.DecimalFormat)numberFormat).getPositivePrefix(); in getPositivePrefix()
838 ((java.text.DecimalFormat)numberFormat).setPositivePrefix(newValue); in setPositivePrefix()
850 return ((java.text.DecimalFormat)numberFormat).getNegativePrefix(); in getNegativePrefix()
861 ((java.text.DecimalFormat)numberFormat).setNegativePrefix(newValue); in setNegativePrefix()
873 return ((java.text.DecimalFormat)numberFormat).getPositiveSuffix(); in getPositiveSuffix()
884 ((java.text.DecimalFormat)numberFormat).setPositiveSuffix(newValue); in setPositiveSuffix()
[all …]
DNumberFormat.java168 public final java.text.NumberFormat numberFormat; field in NumberFormat
175 this.numberFormat = delegate; in NumberFormat()
245 StringBuffer buf = numberFormat.format(number, toAppendTo, jdkPos); in format()
263 return numberFormat.parse(source, parsePosition); in parseObject()
272 return numberFormat.format(number); in format()
281 return numberFormat.format(number); in format()
289 return numberFormat.format(number); in format()
297 return numberFormat.format(number); in format()
305 return numberFormat.format(number.toBigDecimal()); in format()
325 StringBuffer buf = numberFormat.format(number, toAppendTo, jdkPos); in format()
[all …]
/external/icu/icu4c/source/i18n/
Dplurfmt.cpp40 numberFormat(NULL), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
48 numberFormat(NULL), in PluralFormat()
56 numberFormat(NULL), in PluralFormat()
66 numberFormat(NULL), in PluralFormat()
76 numberFormat(NULL), in PluralFormat()
85 numberFormat(NULL), in PluralFormat()
96 numberFormat(NULL), in PluralFormat()
107 numberFormat(NULL), in PluralFormat()
119 numberFormat(NULL), in PluralFormat()
131 numberFormat(NULL), in PluralFormat()
[all …]
Dnfsubs.cpp407 : pos(_pos), ruleSet(NULL), numberFormat(NULL) in NFSubstitution()
458 this->numberFormat = tempNumberFormat; in NFSubstitution()
470 this->numberFormat = NULL; in NFSubstitution()
482 delete numberFormat; in ~NFSubstitution()
483 numberFormat = NULL; in ~NFSubstitution()
500 if (numberFormat != NULL) { in setDecimalFormatSymbols()
501 numberFormat->setDecimalFormatSymbols(newSymbols); in setDecimalFormatSymbols()
526 && (numberFormat == NULL
527 ? (rhs.numberFormat == NULL)
528 : (*numberFormat == *rhs.numberFormat));
[all …]
Dmeasfmt.cpp611 numberFormat(NULL), in MeasureFormat()
624 numberFormat(NULL), in MeasureFormat()
634 numberFormat(other.numberFormat), in MeasureFormat()
639 numberFormat->addRef(); in MeasureFormat()
652 SharedObject::copyPtr(other.numberFormat, numberFormat); in operator =()
666 numberFormat(NULL), in MeasureFormat()
676 if (numberFormat != NULL) { in ~MeasureFormat()
677 numberFormat->removeRef(); in ~MeasureFormat()
717 numberFormat == rhs.numberFormat || in operator ==()
718 **numberFormat == **rhs.numberFormat); in operator ==()
[all …]
Dnfsubs.h37 DecimalFormat* numberFormat; variable
55 const DecimalFormat* getNumberFormat() const { return numberFormat; } in getNumberFormat()
Dtimezone.cpp1333 NumberFormat* numberFormat = 0; in parseCustomID() local
1354 numberFormat = NumberFormat::createInstance(success); in parseCustomID()
1358 numberFormat->setParseIntegerOnly(TRUE); in parseCustomID()
1364 numberFormat->parse(id, n, pos); in parseCustomID()
1366 delete numberFormat; in parseCustomID()
1374 delete numberFormat; in parseCustomID()
1381 numberFormat->parse(id, n, pos); in parseCustomID()
1384 delete numberFormat; in parseCustomID()
1390 delete numberFormat; in parseCustomID()
1397 numberFormat->parse(id, n, pos); in parseCustomID()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DPluralFormat.java173 private NumberFormat numberFormat = null; field in PluralFormat
355 …ckage*/ PluralFormat(ULocale ulocale, PluralType type, String pattern, NumberFormat numberFormat) { in PluralFormat() argument
356 init(null, type, ulocale, numberFormat); in PluralFormat()
373 … private void init(PluralRules rules, PluralType type, ULocale locale, NumberFormat numberFormat) { in init() argument
378 … this.numberFormat = (numberFormat == null) ? NumberFormat.getInstance(ulocale) : numberFormat; in init()
592 return numberFormat.format(numberObject); in format()
600 numberString = numberFormat.format(numberObject); // could be BigDecimal etc. in format()
602 numberString = numberFormat.format(numberMinusOffset); in format()
605 if(numberFormat instanceof DecimalFormat) { in format()
606 dec = ((DecimalFormat) numberFormat).getFixedDecimal(numberMinusOffset); in format()
[all …]
DQuantityFormatter.java65 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { in format() argument
66 String formatStr = numberFormat.format(number); in format()
67 StandardPlural p = selectPlural(number, numberFormat, pluralRules); in format()
95 …public static StandardPlural selectPlural(double number, NumberFormat numberFormat, PluralRules ru… in selectPlural() argument
97 if (numberFormat instanceof DecimalFormat) { in selectPlural()
98 pluralKeyword = rules.select(((DecimalFormat) numberFormat).getFixedDecimal(number)); in selectPlural()
DNFSubstitution.java44 final DecimalFormat numberFormat; field in NFSubstitution
183 this.numberFormat = null; in NFSubstitution()
190 this.numberFormat = null; in NFSubstitution()
198 this.numberFormat = (DecimalFormat) ruleSet.owner.getDecimalFormat().clone(); in NFSubstitution()
199 this.numberFormat.applyPattern(description); in NFSubstitution()
208 this.numberFormat = null; in NFSubstitution()
250 …&& (numberFormat == null ? (that2.numberFormat == null) : numberFormat.equals(that2.numberFormat)); in equals()
274 return tokenChar() + numberFormat.toPattern() + tokenChar(); in toString()
301 toInsertInto.insert(position + pos, numberFormat.format(numberToFormat)); in doSubstitution()
339 toInsertInto.insert(position + this.pos, numberFormat.format(numberToFormat)); in doSubstitution()
[all …]
DMeasureFormat.java122 private final transient ImmutableNumberFormat numberFormat; field in MeasureFormat
312 … toAppendTo.append(formatMeasure((Measure) obj, numberFormat, new StringBuilder(), fpos)); in format() local
386 int maxFrac = numberFormat.nf.getMaximumFractionDigits(); in formatMeasureRange()
387 int minFrac = numberFormat.nf.getMinimumFractionDigits(); in formatMeasureRange()
389 DecimalFormat currentNumberFormat = (DecimalFormat) numberFormat.get(); in formatMeasureRange()
397 lowFormatted = numberFormat.format(lowNumber, new StringBuffer(), lowFpos); in formatMeasureRange()
398 highFormatted = numberFormat.format(highNumber, new StringBuffer(), highFpos); in formatMeasureRange()
489 return formatMeasure(newMeasure, numberFormat, appendTo, pos); in formatMeasurePerUnit()
494 formatMeasure(measure, numberFormat, new StringBuilder(), fpos), in formatMeasurePerUnit()
524 return formatMeasure(measures[0], numberFormat, appendTo, fieldPosition); in formatMeasures()
[all …]
DDateFormat.java161 protected NumberFormat numberFormat; field in DateFormat
1462 this.numberFormat = newNumberFormat; in setNumberFormat()
1466 this.numberFormat.setParseIntegerOnly(true); in setNumberFormat()
1476 return numberFormat; in getNumberFormat()
1628 return numberFormat.hashCode(); in hashCode()
1643 ((numberFormat==null && other.numberFormat==null) || in equals()
1644 … (numberFormat!=null && other.numberFormat!=null && numberFormat.equals(other.numberFormat))) && in equals()
1656 if (numberFormat != null) { in clone()
1657 other.numberFormat = (NumberFormat) numberFormat.clone(); in clone()
DRelativeDateTimeFormatter.java466 synchronized (numberFormat) { in format()
470 numberFormat, pluralRules, formatStr, fieldPosition); in format()
680 synchronized (numberFormat) { in getNumberFormat()
681 return (NumberFormat) numberFormat.clone(); in getNumberFormat()
720 NumberFormat numberFormat, in RelativeDateTimeFormatter() argument
729 this.numberFormat = numberFormat; in RelativeDateTimeFormatter()
777 private final NumberFormat numberFormat; field in RelativeDateTimeFormatter
DSimpleDateFormat.java1064 NumberFormat numberFormat, ULocale locale, boolean useFastFormat,String override) { in SimpleDateFormat() argument
1068 this.numberFormat = numberFormat; in SimpleDateFormat()
1111 if (numberFormat == null) { in initialize()
1114 numberFormat = NumberFormat.getInstance(locale); in initialize()
1119 numberFormat = new DateNumberFormat(locale, digitString, nsName); in initialize()
1147 if (numberFormat instanceof DecimalFormat) { in initializeTimeZoneFormat()
1148 … DecimalFormatSymbols decsym = ((DecimalFormat) numberFormat).getDecimalFormatSymbols(); in initializeTimeZoneFormat()
1150 } else if (numberFormat instanceof DateNumberFormat) { in initializeTimeZoneFormat()
1151 digits = new String(((DateNumberFormat)numberFormat).getDigits()); in initializeTimeZoneFormat()
1676 numberFormat.setMinimumIntegerDigits(Math.min(3, count)); in subFormat()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralFormat.java173 private NumberFormat numberFormat = null; field in PluralFormat
368 …ckage*/ PluralFormat(ULocale ulocale, PluralType type, String pattern, NumberFormat numberFormat) { in PluralFormat() argument
369 init(null, type, ulocale, numberFormat); in PluralFormat()
386 … private void init(PluralRules rules, PluralType type, ULocale locale, NumberFormat numberFormat) { in init() argument
391 … this.numberFormat = (numberFormat == null) ? NumberFormat.getInstance(ulocale) : numberFormat; in init()
609 return numberFormat.format(numberObject); in format()
617 numberString = numberFormat.format(numberObject); // could be BigDecimal etc. in format()
619 numberString = numberFormat.format(numberMinusOffset); in format()
622 if(numberFormat instanceof DecimalFormat) { in format()
623 dec = ((DecimalFormat) numberFormat).getFixedDecimal(numberMinusOffset); in format()
[all …]
DNFSubstitution.java43 final DecimalFormat numberFormat; field in NFSubstitution
182 this.numberFormat = null; in NFSubstitution()
189 this.numberFormat = null; in NFSubstitution()
197 this.numberFormat = (DecimalFormat) ruleSet.owner.getDecimalFormat().clone(); in NFSubstitution()
198 this.numberFormat.applyPattern(description); in NFSubstitution()
207 this.numberFormat = null; in NFSubstitution()
249 …&& (numberFormat == null ? (that2.numberFormat == null) : numberFormat.equals(that2.numberFormat)); in equals()
273 return tokenChar() + numberFormat.toPattern() + tokenChar(); in toString()
300 toInsertInto.insert(position + pos, numberFormat.format(numberToFormat)); in doSubstitution()
338 toInsertInto.insert(position + this.pos, numberFormat.format(numberToFormat)); in doSubstitution()
[all …]
DQuantityFormatter.java64 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { in format() argument
65 String formatStr = numberFormat.format(number); in format()
66 StandardPlural p = selectPlural(number, numberFormat, pluralRules); in format()
94 …public static StandardPlural selectPlural(double number, NumberFormat numberFormat, PluralRules ru… in selectPlural() argument
96 if (numberFormat instanceof DecimalFormat) { in selectPlural()
97 pluralKeyword = rules.select(((DecimalFormat) numberFormat).getFixedDecimal(number)); in selectPlural()
DMeasureFormat.java122 private final transient ImmutableNumberFormat numberFormat; field in MeasureFormat
328 … toAppendTo.append(formatMeasure((Measure) obj, numberFormat, new StringBuilder(), fpos)); in format() local
403 int maxFrac = numberFormat.nf.getMaximumFractionDigits(); in formatMeasureRange()
404 int minFrac = numberFormat.nf.getMinimumFractionDigits(); in formatMeasureRange()
406 DecimalFormat currentNumberFormat = (DecimalFormat) numberFormat.get(); in formatMeasureRange()
414 lowFormatted = numberFormat.format(lowNumber, new StringBuffer(), lowFpos); in formatMeasureRange()
415 highFormatted = numberFormat.format(highNumber, new StringBuffer(), highFpos); in formatMeasureRange()
507 return formatMeasure(newMeasure, numberFormat, appendTo, pos); in formatMeasurePerUnit()
512 formatMeasure(measure, numberFormat, new StringBuilder(), fpos), in formatMeasurePerUnit()
543 return formatMeasure(measures[0], numberFormat, appendTo, fieldPosition); in formatMeasures()
[all …]
DDateFormat.java163 protected NumberFormat numberFormat; field in DateFormat
1576 this.numberFormat = newNumberFormat; in setNumberFormat()
1580 this.numberFormat.setParseIntegerOnly(true); in setNumberFormat()
1591 return numberFormat; in getNumberFormat()
1754 return numberFormat.hashCode(); in hashCode()
1770 ((numberFormat==null && other.numberFormat==null) || in equals()
1771 … (numberFormat!=null && other.numberFormat!=null && numberFormat.equals(other.numberFormat))) && in equals()
1784 if (numberFormat != null) { in clone()
1785 other.numberFormat = (NumberFormat) numberFormat.clone(); in clone()
DRelativeDateTimeFormatter.java522 synchronized (numberFormat) { in format()
526 numberFormat, pluralRules, formatStr, fieldPosition); in format()
741 synchronized (numberFormat) { in getNumberFormat()
742 return (NumberFormat) numberFormat.clone(); in getNumberFormat()
783 NumberFormat numberFormat, in RelativeDateTimeFormatter() argument
792 this.numberFormat = numberFormat; in RelativeDateTimeFormatter()
840 private final NumberFormat numberFormat; field in RelativeDateTimeFormatter
DSimpleDateFormat.java1070 NumberFormat numberFormat, ULocale locale, boolean useFastFormat,String override) { in SimpleDateFormat() argument
1074 this.numberFormat = numberFormat; in SimpleDateFormat()
1116 if (numberFormat == null) { in initialize()
1119 numberFormat = NumberFormat.getInstance(locale); in initialize()
1124 numberFormat = new DateNumberFormat(locale, digitString, nsName); in initialize()
1152 if (numberFormat instanceof DecimalFormat) { in initializeTimeZoneFormat()
1153 … DecimalFormatSymbols decsym = ((DecimalFormat) numberFormat).getDecimalFormatSymbols(); in initializeTimeZoneFormat()
1155 } else if (numberFormat instanceof DateNumberFormat) { in initializeTimeZoneFormat()
1156 digits = new String(((DateNumberFormat)numberFormat).getDigits()); in initializeTimeZoneFormat()
1686 numberFormat.setMinimumIntegerDigits(Math.min(3, count)); in subFormat()
[all …]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.core.databinding_1.3.100.I20100601-0800.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DAsYouTypeFormatter.java153 NumberFormat numberFormat = it.next(); in maybeCreateNewTemplate() local
154 String pattern = numberFormat.getPattern(); in maybeCreateNewTemplate()
158 if (createFormattingTemplate(numberFormat)) { in maybeCreateNewTemplate()
162 numberFormat.getNationalPrefixFormattingRule()).find(); in maybeCreateNewTemplate()
244 private String getFormattingTemplate(String numberPattern, String numberFormat) { in getFormattingTemplate() argument
257 String template = aPhoneNumber.replaceAll(numberPattern, numberFormat); in getFormattingTemplate()
432 for (NumberFormat numberFormat : possibleFormats) { in attemptToFormatAccruedDigits()
433 Matcher m = regexCache.getPatternForRegex(numberFormat.getPattern()).matcher(nationalNumber); in attemptToFormatAccruedDigits()
437 numberFormat.getNationalPrefixFormattingRule()).find(); in attemptToFormatAccruedDigits()
438 String formattedNumber = m.replaceAll(numberFormat.getFormat()); in attemptToFormatAccruedDigits()
DPhoneNumberUtil.java1081 public String format(PhoneNumber number, PhoneNumberFormat numberFormat) {
1094 format(number, numberFormat, formattedNumber);
1102 public void format(PhoneNumber number, PhoneNumberFormat numberFormat,
1109 if (numberFormat == PhoneNumberFormat.E164) {
1129 formattedNumber.append(formatNsn(nationalSignificantNumber, metadata, numberFormat));
1130 maybeAppendFormattedExtension(number, metadata, numberFormat, formattedNumber);
1131 prefixNumberWithCountryCallingCode(countryCallingCode, numberFormat, formattedNumber);
1146 PhoneNumberFormat numberFormat,
1190 formatNsnUsingPattern(nationalSignificantNumber, numFormatCopy, numberFormat));
1192 maybeAppendFormattedExtension(number, metadata, numberFormat, formattedNumber);
[all …]
/external/messageformat/java/com/ibm/icu/simple/
DPluralFormat.java172 private NumberFormat numberFormat = null; field in PluralFormat
231 numberFormat = NumberFormat.getInstance(locale); in init()
460 buf.append(", format='" + numberFormat + "'"); in toString()

123