Home
last modified time | relevance | path

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

12

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DDecimalFormat.java626 …((java.text.DecimalFormat)numberFormat).applyPattern(((java.text.DecimalFormat)jdkNfmt).toPattern(… in DecimalFormat()
627 …((java.text.DecimalFormat)numberFormat).setDecimalFormatSymbols(((java.text.DecimalFormat)jdkNfmt)… in DecimalFormat()
802 …return new DecimalFormatSymbols(((java.text.DecimalFormat)numberFormat).getDecimalFormatSymbols()); in getDecimalFormatSymbols()
814 ((java.text.DecimalFormat)numberFormat).setDecimalFormatSymbols(newSymbols.dfs); in setDecimalFormatSymbols()
825 return ((java.text.DecimalFormat)numberFormat).getPositivePrefix(); in getPositivePrefix()
836 ((java.text.DecimalFormat)numberFormat).setPositivePrefix(newValue); in setPositivePrefix()
848 return ((java.text.DecimalFormat)numberFormat).getNegativePrefix(); in getNegativePrefix()
859 ((java.text.DecimalFormat)numberFormat).setNegativePrefix(newValue); in setNegativePrefix()
871 return ((java.text.DecimalFormat)numberFormat).getPositiveSuffix(); in getPositiveSuffix()
882 ((java.text.DecimalFormat)numberFormat).setPositiveSuffix(newValue); in setPositiveSuffix()
[all …]
DNumberFormat.java166 public final java.text.NumberFormat numberFormat; field in NumberFormat
173 this.numberFormat = delegate; in NumberFormat()
243 StringBuffer buf = numberFormat.format(number, toAppendTo, jdkPos); in format()
261 return numberFormat.parse(source, parsePosition); in parseObject()
270 return numberFormat.format(number); in format()
279 return numberFormat.format(number); in format()
287 return numberFormat.format(number); in format()
295 return numberFormat.format(number); in format()
303 return numberFormat.format(number.toBigDecimal()); in format()
323 StringBuffer buf = numberFormat.format(number, toAppendTo, jdkPos); in format()
[all …]
/external/icu/icu4c/source/i18n/
Dplurfmt.cpp38 numberFormat(NULL), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
46 numberFormat(NULL), in PluralFormat()
54 numberFormat(NULL), in PluralFormat()
64 numberFormat(NULL), in PluralFormat()
74 numberFormat(NULL), in PluralFormat()
83 numberFormat(NULL), in PluralFormat()
94 numberFormat(NULL), in PluralFormat()
105 numberFormat(NULL), in PluralFormat()
117 numberFormat(NULL), in PluralFormat()
129 numberFormat(NULL), in PluralFormat()
[all …]
Dmeasfmt.cpp579 numberFormat(NULL), in MeasureFormat()
592 numberFormat(NULL), in MeasureFormat()
602 numberFormat(other.numberFormat), in MeasureFormat()
607 numberFormat->addRef(); in MeasureFormat()
618 SharedObject::copyPtr(other.numberFormat, numberFormat); in operator =()
628 numberFormat(NULL), in MeasureFormat()
638 if (numberFormat != NULL) { in ~MeasureFormat()
639 numberFormat->removeRef(); in ~MeasureFormat()
679 numberFormat == rhs.numberFormat || in operator ==()
680 **numberFormat == **rhs.numberFormat); in operator ==()
[all …]
Dnfsubs.cpp405 : pos(_pos), ruleSet(NULL), numberFormat(NULL) in NFSubstitution()
456 this->numberFormat = tempNumberFormat; in NFSubstitution()
468 this->numberFormat = NULL; in NFSubstitution()
480 delete numberFormat; in ~NFSubstitution()
481 numberFormat = NULL; in ~NFSubstitution()
498 if (numberFormat != NULL) { in setDecimalFormatSymbols()
499 numberFormat->setDecimalFormatSymbols(newSymbols); in setDecimalFormatSymbols()
524 && (numberFormat == NULL
525 ? (rhs.numberFormat == NULL)
526 : (*numberFormat == *rhs.numberFormat));
[all …]
Dnfsubs.h35 DecimalFormat* numberFormat; variable
53 const DecimalFormat* getNumberFormat() const { return numberFormat; } in getNumberFormat()
Dtimezone.cpp1329 NumberFormat* numberFormat = 0; in parseCustomID() local
1350 numberFormat = NumberFormat::createInstance(success); in parseCustomID()
1354 numberFormat->setParseIntegerOnly(TRUE); in parseCustomID()
1360 numberFormat->parse(id, n, pos); in parseCustomID()
1362 delete numberFormat; in parseCustomID()
1370 delete numberFormat; in parseCustomID()
1377 numberFormat->parse(id, n, pos); in parseCustomID()
1380 delete numberFormat; in parseCustomID()
1386 delete numberFormat; in parseCustomID()
1393 numberFormat->parse(id, n, pos); in parseCustomID()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DPluralFormat.java171 private NumberFormat numberFormat = null; field in PluralFormat
353 …ckage*/ PluralFormat(ULocale ulocale, PluralType type, String pattern, NumberFormat numberFormat) { in PluralFormat() argument
354 init(null, type, ulocale, numberFormat); in PluralFormat()
371 … private void init(PluralRules rules, PluralType type, ULocale locale, NumberFormat numberFormat) { in init() argument
376 … this.numberFormat = (numberFormat == null) ? NumberFormat.getInstance(ulocale) : numberFormat; in init()
588 return numberFormat.format(numberObject); in format()
596 numberString = numberFormat.format(numberObject); // could be BigDecimal etc. in format()
598 numberString = numberFormat.format(numberMinusOffset); in format()
601 if(numberFormat instanceof DecimalFormat) { in format()
602 dec = ((DecimalFormat) numberFormat).getFixedDecimal(numberMinusOffset); in format()
[all …]
DNFSubstitution.java42 final DecimalFormat numberFormat; field in NFSubstitution
181 this.numberFormat = null; in NFSubstitution()
188 this.numberFormat = null; in NFSubstitution()
196 this.numberFormat = (DecimalFormat) ruleSet.owner.getDecimalFormat().clone(); in NFSubstitution()
197 this.numberFormat.applyPattern(description); in NFSubstitution()
206 this.numberFormat = null; in NFSubstitution()
248 …&& (numberFormat == null ? (that2.numberFormat == null) : numberFormat.equals(that2.numberFormat)); in equals()
272 return tokenChar() + numberFormat.toPattern() + tokenChar(); in toString()
304 if (numberFormat.getMaximumFractionDigits() == 0) { in doSubstitution()
308 toInsertInto.insert(position + pos, numberFormat.format(numberToFormat)); in doSubstitution()
[all …]
DQuantityFormatter.java63 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { in format() argument
64 String formatStr = numberFormat.format(number); in format()
65 StandardPlural p = selectPlural(number, numberFormat, pluralRules); in format()
93 …public static StandardPlural selectPlural(double number, NumberFormat numberFormat, PluralRules ru… in selectPlural() argument
95 if (numberFormat instanceof DecimalFormat) { in selectPlural()
96 pluralKeyword = rules.select(((DecimalFormat) numberFormat).getFixedDecimal(number)); in selectPlural()
DMeasureFormat.java120 private final transient ImmutableNumberFormat numberFormat; field in MeasureFormat
310 … toAppendTo.append(formatMeasure((Measure) obj, numberFormat, new StringBuilder(), fpos)); in format() local
384 int maxFrac = numberFormat.nf.getMaximumFractionDigits(); in formatMeasureRange()
385 int minFrac = numberFormat.nf.getMinimumFractionDigits(); in formatMeasureRange()
387 DecimalFormat currentNumberFormat = (DecimalFormat) numberFormat.get(); in formatMeasureRange()
395 lowFormatted = numberFormat.format(lowNumber, new StringBuffer(), lowFpos); in formatMeasureRange()
396 highFormatted = numberFormat.format(highNumber, new StringBuffer(), highFpos); in formatMeasureRange()
487 return formatMeasure(newMeasure, numberFormat, appendTo, pos); in formatMeasurePerUnit()
492 formatMeasure(measure, numberFormat, new StringBuilder(), fpos), in formatMeasurePerUnit()
522 return formatMeasure(measures[0], numberFormat, appendTo, fieldPosition); in formatMeasures()
[all …]
DDateFormat.java159 protected NumberFormat numberFormat; field in DateFormat
1441 this.numberFormat = newNumberFormat; in setNumberFormat()
1445 this.numberFormat.setParseIntegerOnly(true); in setNumberFormat()
1455 return numberFormat; in getNumberFormat()
1606 return numberFormat.hashCode(); in hashCode()
1620 ((numberFormat==null && other.numberFormat==null) || in equals()
1621 … (numberFormat!=null && other.numberFormat!=null && numberFormat.equals(other.numberFormat))) && in equals()
1632 if (numberFormat != null) { in clone()
1633 other.numberFormat = (NumberFormat) numberFormat.clone(); in clone()
DRelativeDateTimeFormatter.java365 synchronized (numberFormat) { in format()
369 numberFormat, pluralRules, formatStr, fieldPosition); in format()
464 synchronized (numberFormat) { in getNumberFormat()
465 return (NumberFormat) numberFormat.clone(); in getNumberFormat()
502 NumberFormat numberFormat, in RelativeDateTimeFormatter() argument
511 this.numberFormat = numberFormat; in RelativeDateTimeFormatter()
559 private final NumberFormat numberFormat; field in RelativeDateTimeFormatter
DSimpleDateFormat.java1047 NumberFormat numberFormat, ULocale locale, boolean useFastFormat,String override) { in SimpleDateFormat() argument
1051 this.numberFormat = numberFormat; in SimpleDateFormat()
1094 if (numberFormat == null) { in initialize()
1097 numberFormat = NumberFormat.getInstance(locale); in initialize()
1102 numberFormat = new DateNumberFormat(locale, digitString, nsName); in initialize()
1128 if (numberFormat instanceof DecimalFormat) { in initializeTimeZoneFormat()
1129 … DecimalFormatSymbols decsym = ((DecimalFormat) numberFormat).getDecimalFormatSymbols(); in initializeTimeZoneFormat()
1131 } else if (numberFormat instanceof DateNumberFormat) { in initializeTimeZoneFormat()
1132 digits = new String(((DateNumberFormat)numberFormat).getDigits()); in initializeTimeZoneFormat()
1638 numberFormat.setMinimumIntegerDigits(Math.min(3, count)); in subFormat()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralFormat.java171 private NumberFormat numberFormat = null; field in PluralFormat
366 …ckage*/ PluralFormat(ULocale ulocale, PluralType type, String pattern, NumberFormat numberFormat) { in PluralFormat() argument
367 init(null, type, ulocale, numberFormat); in PluralFormat()
384 … private void init(PluralRules rules, PluralType type, ULocale locale, NumberFormat numberFormat) { in init() argument
389 … this.numberFormat = (numberFormat == null) ? NumberFormat.getInstance(ulocale) : numberFormat; in init()
605 return numberFormat.format(numberObject); in format()
613 numberString = numberFormat.format(numberObject); // could be BigDecimal etc. in format()
615 numberString = numberFormat.format(numberMinusOffset); in format()
618 if(numberFormat instanceof DecimalFormat) { in format()
619 dec = ((DecimalFormat) numberFormat).getFixedDecimal(numberMinusOffset); in format()
[all …]
DNFSubstitution.java41 final DecimalFormat numberFormat; field in NFSubstitution
180 this.numberFormat = null; in NFSubstitution()
187 this.numberFormat = null; in NFSubstitution()
195 this.numberFormat = (DecimalFormat) ruleSet.owner.getDecimalFormat().clone(); in NFSubstitution()
196 this.numberFormat.applyPattern(description); in NFSubstitution()
205 this.numberFormat = null; in NFSubstitution()
247 …&& (numberFormat == null ? (that2.numberFormat == null) : numberFormat.equals(that2.numberFormat)); in equals()
271 return tokenChar() + numberFormat.toPattern() + tokenChar(); in toString()
303 if (numberFormat.getMaximumFractionDigits() == 0) { in doSubstitution()
307 toInsertInto.insert(position + pos, numberFormat.format(numberToFormat)); in doSubstitution()
[all …]
DQuantityFormatter.java62 public String format(double number, NumberFormat numberFormat, PluralRules pluralRules) { in format() argument
63 String formatStr = numberFormat.format(number); in format()
64 StandardPlural p = selectPlural(number, numberFormat, pluralRules); in format()
92 …public static StandardPlural selectPlural(double number, NumberFormat numberFormat, PluralRules ru… in selectPlural() argument
94 if (numberFormat instanceof DecimalFormat) { in selectPlural()
95 pluralKeyword = rules.select(((DecimalFormat) numberFormat).getFixedDecimal(number)); in selectPlural()
DMeasureFormat.java120 private final transient ImmutableNumberFormat numberFormat; field in MeasureFormat
326 … toAppendTo.append(formatMeasure((Measure) obj, numberFormat, new StringBuilder(), fpos)); in format() local
401 int maxFrac = numberFormat.nf.getMaximumFractionDigits(); in formatMeasureRange()
402 int minFrac = numberFormat.nf.getMinimumFractionDigits(); in formatMeasureRange()
404 DecimalFormat currentNumberFormat = (DecimalFormat) numberFormat.get(); in formatMeasureRange()
412 lowFormatted = numberFormat.format(lowNumber, new StringBuffer(), lowFpos); in formatMeasureRange()
413 highFormatted = numberFormat.format(highNumber, new StringBuffer(), highFpos); in formatMeasureRange()
505 return formatMeasure(newMeasure, numberFormat, appendTo, pos); in formatMeasurePerUnit()
510 formatMeasure(measure, numberFormat, new StringBuilder(), fpos), in formatMeasurePerUnit()
541 return formatMeasure(measures[0], numberFormat, appendTo, fieldPosition); in formatMeasures()
[all …]
DDateFormat.java161 protected NumberFormat numberFormat; field in DateFormat
1555 this.numberFormat = newNumberFormat; in setNumberFormat()
1559 this.numberFormat.setParseIntegerOnly(true); in setNumberFormat()
1570 return numberFormat; in getNumberFormat()
1732 return numberFormat.hashCode(); in hashCode()
1747 ((numberFormat==null && other.numberFormat==null) || in equals()
1748 … (numberFormat!=null && other.numberFormat!=null && numberFormat.equals(other.numberFormat))) && in equals()
1760 if (numberFormat != null) { in clone()
1761 other.numberFormat = (NumberFormat) numberFormat.clone(); in clone()
DRelativeDateTimeFormatter.java405 synchronized (numberFormat) { in format()
409 numberFormat, pluralRules, formatStr, fieldPosition); in format()
507 synchronized (numberFormat) { in getNumberFormat()
508 return (NumberFormat) numberFormat.clone(); in getNumberFormat()
549 NumberFormat numberFormat, in RelativeDateTimeFormatter() argument
558 this.numberFormat = numberFormat; in RelativeDateTimeFormatter()
606 private final NumberFormat numberFormat; field in RelativeDateTimeFormatter
DSimpleDateFormat.java1053 NumberFormat numberFormat, ULocale locale, boolean useFastFormat,String override) { in SimpleDateFormat() argument
1057 this.numberFormat = numberFormat; in SimpleDateFormat()
1099 if (numberFormat == null) { in initialize()
1102 numberFormat = NumberFormat.getInstance(locale); in initialize()
1107 numberFormat = new DateNumberFormat(locale, digitString, nsName); in initialize()
1133 if (numberFormat instanceof DecimalFormat) { in initializeTimeZoneFormat()
1134 … DecimalFormatSymbols decsym = ((DecimalFormat) numberFormat).getDecimalFormatSymbols(); in initializeTimeZoneFormat()
1136 } else if (numberFormat instanceof DateNumberFormat) { in initializeTimeZoneFormat()
1137 digits = new String(((DateNumberFormat)numberFormat).getDigits()); in initializeTimeZoneFormat()
1648 numberFormat.setMinimumIntegerDigits(Math.min(3, count)); in subFormat()
[all …]
/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()
243 private String getFormattingTemplate(String numberPattern, String numberFormat) { in getFormattingTemplate() argument
256 String template = aPhoneNumber.replaceAll(numberPattern, numberFormat); in getFormattingTemplate()
430 for (NumberFormat numberFormat : possibleFormats) { in attemptToFormatAccruedDigits()
431 Matcher m = regexCache.getPatternForRegex(numberFormat.getPattern()).matcher(nationalNumber); in attemptToFormatAccruedDigits()
435 numberFormat.getNationalPrefixFormattingRule()).find(); in attemptToFormatAccruedDigits()
436 String formattedNumber = m.replaceAll(numberFormat.getFormat()); in attemptToFormatAccruedDigits()
DPhoneNumberUtil.java1033 public String format(PhoneNumber number, PhoneNumberFormat numberFormat) {
1046 format(number, numberFormat, formattedNumber);
1054 public void format(PhoneNumber number, PhoneNumberFormat numberFormat,
1061 if (numberFormat == PhoneNumberFormat.E164) {
1081 formattedNumber.append(formatNsn(nationalSignificantNumber, metadata, numberFormat));
1082 maybeAppendFormattedExtension(number, metadata, numberFormat, formattedNumber);
1083 prefixNumberWithCountryCallingCode(countryCallingCode, numberFormat, formattedNumber);
1098 PhoneNumberFormat numberFormat,
1142 formatNsnUsingPattern(nationalSignificantNumber, numFormatCopy, numberFormat));
1144 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()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DZoneMeta.java656 NumberFormat numberFormat = null; in parseCustomID() local
673 numberFormat = NumberFormat.getInstance(); in parseCustomID()
674 numberFormat.setParseIntegerOnly(true); in parseCustomID()
679 Number n = numberFormat.parse(id, pos); in parseCustomID()
693 n = numberFormat.parse(id, pos); in parseCustomID()
706 n = numberFormat.parse(id, pos); in parseCustomID()

12