Home
last modified time | relevance | path

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

123

/external/icu/icu4c/source/i18n/
Dplurfmt.cpp43 numberFormat(NULL), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
51 numberFormat(NULL), in PluralFormat()
59 numberFormat(NULL), in PluralFormat()
69 numberFormat(NULL), in PluralFormat()
79 numberFormat(NULL), in PluralFormat()
88 numberFormat(NULL), in PluralFormat()
99 numberFormat(NULL), in PluralFormat()
110 numberFormat(NULL), in PluralFormat()
122 numberFormat(NULL), in PluralFormat()
134 numberFormat(NULL), in PluralFormat()
[all …]
Dmeasfmt.cpp356 numberFormat(NULL), in MeasureFormat()
369 numberFormat(NULL), in MeasureFormat()
379 numberFormat(other.numberFormat), in MeasureFormat()
384 numberFormat->addRef(); in MeasureFormat()
397 SharedObject::copyPtr(other.numberFormat, numberFormat); in operator =()
411 numberFormat(NULL), in MeasureFormat()
421 if (numberFormat != NULL) { in ~MeasureFormat()
422 numberFormat->removeRef(); in ~MeasureFormat()
462 numberFormat == rhs.numberFormat || in operator ==()
463 **numberFormat == **rhs.numberFormat); in operator ==()
[all …]
Dnfsubs.cpp409 : pos(_pos), ruleSet(NULL), numberFormat(NULL) in NFSubstitution()
460 this->numberFormat = tempNumberFormat; in NFSubstitution()
472 this->numberFormat = NULL; in NFSubstitution()
484 delete numberFormat; in ~NFSubstitution()
485 numberFormat = NULL; in ~NFSubstitution()
502 if (numberFormat != NULL) { in setDecimalFormatSymbols()
503 numberFormat->setDecimalFormatSymbols(newSymbols); in setDecimalFormatSymbols()
528 && (numberFormat == NULL
529 ? (rhs.numberFormat == NULL)
530 : (*numberFormat == *rhs.numberFormat));
[all …]
Dnfsubs.h37 DecimalFormat* numberFormat; variable
55 const DecimalFormat* getNumberFormat() const { return numberFormat; } in getNumberFormat()
Dtimezone.cpp1356 NumberFormat* numberFormat = 0; in parseCustomID() local
1377 numberFormat = NumberFormat::createInstance(success); in parseCustomID()
1381 numberFormat->setParseIntegerOnly(TRUE); in parseCustomID()
1387 numberFormat->parse(id, n, pos); in parseCustomID()
1389 delete numberFormat; in parseCustomID()
1397 delete numberFormat; in parseCustomID()
1404 numberFormat->parse(id, n, pos); in parseCustomID()
1407 delete numberFormat; in parseCustomID()
1413 delete numberFormat; in parseCustomID()
1420 numberFormat->parse(id, n, pos); in parseCustomID()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
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()
DNFSubstitution.java45 final DecimalFormat numberFormat; field in NFSubstitution
184 this.numberFormat = null; in NFSubstitution()
191 this.numberFormat = null; in NFSubstitution()
199 this.numberFormat = (DecimalFormat) ruleSet.owner.getDecimalFormat().clone(); in NFSubstitution()
200 this.numberFormat.applyPattern(description); in NFSubstitution()
209 this.numberFormat = null; in NFSubstitution()
252 …&& (numberFormat == null ? (that2.numberFormat == null) : numberFormat.equals(that2.numberFormat)); in equals()
278 return tokenChar() + numberFormat.toPattern() + tokenChar(); in toString()
313 if (numberFormat.getMaximumFractionDigits() == 0) { in doSubstitution()
317 toInsertInto.insert(position + pos, numberFormat.format(numberToFormat)); in doSubstitution()
[all …]
DPluralFormat.java176 private NumberFormat numberFormat = null; field in PluralFormat
371 …ckage*/ PluralFormat(ULocale ulocale, PluralType type, String pattern, NumberFormat numberFormat) { in PluralFormat() argument
372 init(null, type, ulocale, numberFormat); in PluralFormat()
389 … private void init(PluralRules rules, PluralType type, ULocale locale, NumberFormat numberFormat) { in init() argument
394 … this.numberFormat = (numberFormat == null) ? NumberFormat.getInstance(ulocale) : numberFormat; in init()
611 return numberFormat.format(numberObject); in format()
619 if(numberFormat instanceof DecimalFormat) { in format()
621 LocalizedNumberFormatter f = ((DecimalFormat) numberFormat).toNumberFormatter(); in format()
633 numberString = numberFormat.format(numberObject); in format()
635 numberString = numberFormat.format(numberMinusOffset); in format()
[all …]
DMeasureFormat.java129 private final transient NumberFormat numberFormat; field in MeasureFormat
551 return (NumberFormat) numberFormat.clone(); in getNumberFormat()
558 return numberFormat; in getNumberFormatInternal()
616 NumberFormat numberFormat, in MeasureFormat() argument
628 if (numberFormat == null) { in MeasureFormat()
629 numberFormat = NumberFormat.getInstance(locale); in MeasureFormat()
631 numberFormat = (NumberFormat) numberFormat.clone(); in MeasureFormat()
633 this.numberFormat = numberFormat; in MeasureFormat()
644 if (!(numberFormat instanceof DecimalFormat)) { in MeasureFormat()
647 numberFormatter = ((DecimalFormat) numberFormat).toNumberFormatter() in MeasureFormat()
[all …]
DDateFormat.java163 protected NumberFormat numberFormat; field in DateFormat
1635 numberFormat = (NumberFormat)newNumberFormat.clone(); in setNumberFormat()
1636 fixNumberFormatForDates(numberFormat); in setNumberFormat()
1659 return numberFormat; in getNumberFormat()
1822 return numberFormat.hashCode(); in hashCode()
1838 ((numberFormat==null && other.numberFormat==null) || in equals()
1839 … (numberFormat!=null && other.numberFormat!=null && numberFormat.equals(other.numberFormat))) && in equals()
1852 if (numberFormat != null) { in clone()
1853 other.numberFormat = (NumberFormat) numberFormat.clone(); in clone()
DRelativeDateTimeFormatter.java692 if (numberFormat instanceof DecimalFormat) { in formatImpl()
694 ((DecimalFormat) numberFormat).toNumberFormatter().formatImpl(dq, output); in formatImpl()
697 String result = numberFormat.format(quantity); in formatImpl()
1023 synchronized (numberFormat) { in getNumberFormat()
1024 return (NumberFormat) numberFormat.clone(); in getNumberFormat()
1071 NumberFormat numberFormat, in RelativeDateTimeFormatter() argument
1080 this.numberFormat = numberFormat; in RelativeDateTimeFormatter()
1129 private final NumberFormat numberFormat; field in RelativeDateTimeFormatter
/external/icu/android_icu4j/src/main/java/android/icu/text/
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()
DNFSubstitution.java46 final DecimalFormat numberFormat; field in NFSubstitution
185 this.numberFormat = null; in NFSubstitution()
192 this.numberFormat = null; in NFSubstitution()
200 this.numberFormat = (DecimalFormat) ruleSet.owner.getDecimalFormat().clone(); in NFSubstitution()
201 this.numberFormat.applyPattern(description); in NFSubstitution()
210 this.numberFormat = null; in NFSubstitution()
253 …&& (numberFormat == null ? (that2.numberFormat == null) : numberFormat.equals(that2.numberFormat)); in equals()
279 return tokenChar() + numberFormat.toPattern() + tokenChar(); in toString()
314 if (numberFormat.getMaximumFractionDigits() == 0) { in doSubstitution()
318 toInsertInto.insert(position + pos, numberFormat.format(numberToFormat)); in doSubstitution()
[all …]
DPluralFormat.java176 private NumberFormat numberFormat = null; field in PluralFormat
358 …ckage*/ PluralFormat(ULocale ulocale, PluralType type, String pattern, NumberFormat numberFormat) { in PluralFormat() argument
359 init(null, type, ulocale, numberFormat); in PluralFormat()
376 … private void init(PluralRules rules, PluralType type, ULocale locale, NumberFormat numberFormat) { in init() argument
381 … this.numberFormat = (numberFormat == null) ? NumberFormat.getInstance(ulocale) : numberFormat; in init()
594 return numberFormat.format(numberObject); in format()
602 if(numberFormat instanceof DecimalFormat) { in format()
604 LocalizedNumberFormatter f = ((DecimalFormat) numberFormat).toNumberFormatter(); in format()
616 numberString = numberFormat.format(numberObject); in format()
618 numberString = numberFormat.format(numberMinusOffset); in format()
[all …]
DMeasureFormat.java123 private final transient NumberFormat numberFormat; field in MeasureFormat
513 return (NumberFormat) numberFormat.clone(); in getNumberFormat()
520 return numberFormat; in getNumberFormatInternal()
575 NumberFormat numberFormat, in MeasureFormat() argument
587 if (numberFormat == null) { in MeasureFormat()
588 numberFormat = NumberFormat.getInstance(locale); in MeasureFormat()
590 numberFormat = (NumberFormat) numberFormat.clone(); in MeasureFormat()
592 this.numberFormat = numberFormat; in MeasureFormat()
603 if (!(numberFormat instanceof DecimalFormat)) { in MeasureFormat()
606 numberFormatter = ((DecimalFormat) numberFormat).toNumberFormatter() in MeasureFormat()
[all …]
DDateFormat.java161 protected NumberFormat numberFormat; field in DateFormat
1517 numberFormat = (NumberFormat)newNumberFormat.clone(); in setNumberFormat()
1518 fixNumberFormatForDates(numberFormat); in setNumberFormat()
1540 return numberFormat; in getNumberFormat()
1692 return numberFormat.hashCode(); in hashCode()
1707 ((numberFormat==null && other.numberFormat==null) || in equals()
1708 … (numberFormat!=null && other.numberFormat!=null && numberFormat.equals(other.numberFormat))) && in equals()
1720 if (numberFormat != null) { in clone()
1721 other.numberFormat = (NumberFormat) numberFormat.clone(); in clone()
DRelativeDateTimeFormatter.java612 if (numberFormat instanceof DecimalFormat) { in formatImpl()
614 ((DecimalFormat) numberFormat).toNumberFormatter().formatImpl(dq, output); in formatImpl()
617 String result = numberFormat.format(quantity); in formatImpl()
935 synchronized (numberFormat) { in getNumberFormat()
936 return (NumberFormat) numberFormat.clone(); in getNumberFormat()
981 NumberFormat numberFormat, in RelativeDateTimeFormatter() argument
990 this.numberFormat = numberFormat; in RelativeDateTimeFormatter()
1039 private final NumberFormat numberFormat; field in RelativeDateTimeFormatter
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
DAsYouTypeFormatter.java145 NumberFormat numberFormat = it.next(); in maybeCreateNewTemplate() local
146 String pattern = numberFormat.getPattern(); in maybeCreateNewTemplate()
150 if (createFormattingTemplate(numberFormat)) { in maybeCreateNewTemplate()
154 numberFormat.getNationalPrefixFormattingRule()).find(); in maybeCreateNewTemplate()
236 private String getFormattingTemplate(String numberPattern, String numberFormat) { in getFormattingTemplate() argument
249 String template = aPhoneNumber.replaceAll(numberPattern, numberFormat); in getFormattingTemplate()
427 for (NumberFormat numberFormat : possibleFormats) { in attemptToFormatAccruedDigits()
428 Matcher m = regexCache.getPatternForRegex(numberFormat.getPattern()).matcher(nationalNumber); in attemptToFormatAccruedDigits()
432 numberFormat.getNationalPrefixFormattingRule()).find(); in attemptToFormatAccruedDigits()
433 String formattedNumber = m.replaceAll(numberFormat.getFormat()); in attemptToFormatAccruedDigits()
DPhoneNumberUtil.java1236 public String format(PhoneNumber number, PhoneNumberFormat numberFormat) {
1249 format(number, numberFormat, formattedNumber);
1257 public void format(PhoneNumber number, PhoneNumberFormat numberFormat,
1264 if (numberFormat == PhoneNumberFormat.E164) {
1284 formattedNumber.append(formatNsn(nationalSignificantNumber, metadata, numberFormat));
1285 maybeAppendFormattedExtension(number, metadata, numberFormat, formattedNumber);
1286 prefixNumberWithCountryCallingCode(countryCallingCode, numberFormat, formattedNumber);
1301 PhoneNumberFormat numberFormat,
1344 formatNsnUsingPattern(nationalSignificantNumber, numFormatCopy, numberFormat));
1346 maybeAppendFormattedExtension(number, metadata, numberFormat, formattedNumber);
[all …]
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DAsYouTypeFormatter.java143 NumberFormat numberFormat = it.next(); in maybeCreateNewTemplate() local
144 String pattern = numberFormat.getPattern(); in maybeCreateNewTemplate()
148 if (createFormattingTemplate(numberFormat)) { in maybeCreateNewTemplate()
152 numberFormat.getNationalPrefixFormattingRule()).find(); in maybeCreateNewTemplate()
234 private String getFormattingTemplate(String numberPattern, String numberFormat) { in getFormattingTemplate() argument
247 String template = aPhoneNumber.replaceAll(numberPattern, numberFormat); in getFormattingTemplate()
422 for (NumberFormat numberFormat : possibleFormats) { in attemptToFormatAccruedDigits()
423 Matcher m = regexCache.getPatternForRegex(numberFormat.getPattern()).matcher(nationalNumber); in attemptToFormatAccruedDigits()
427 numberFormat.getNationalPrefixFormattingRule()).find(); in attemptToFormatAccruedDigits()
428 String formattedNumber = m.replaceAll(numberFormat.getFormat()); in attemptToFormatAccruedDigits()
DPhoneNumberUtil.java1201 public String format(PhoneNumber number, PhoneNumberFormat numberFormat) {
1214 format(number, numberFormat, formattedNumber);
1222 public void format(PhoneNumber number, PhoneNumberFormat numberFormat,
1229 if (numberFormat == PhoneNumberFormat.E164) {
1249 formattedNumber.append(formatNsn(nationalSignificantNumber, metadata, numberFormat));
1250 maybeAppendFormattedExtension(number, metadata, numberFormat, formattedNumber);
1251 prefixNumberWithCountryCallingCode(countryCallingCode, numberFormat, formattedNumber);
1266 PhoneNumberFormat numberFormat,
1309 formatNsnUsingPattern(nationalSignificantNumber, numFormatCopy, numberFormat));
1311 maybeAppendFormattedExtension(number, metadata, numberFormat, formattedNumber);
[all …]
/external/icu/libicu/cts_headers/
Dnfsubs.h37 DecimalFormat* numberFormat; variable
55 const DecimalFormat* getNumberFormat() const { return numberFormat; } in getNumberFormat()
/external/cldr/tools/java/org/unicode/cldr/test/
DExampleGenerator.java608 DecimalFormat numberFormat = icuServiceBuilder.getNumberFormat(1); in handleFormatUnit() local
609 …examples.add(format(value, backgroundStartSymbol + numberFormat.format(amount) + backgroundEndSymb… in handleFormatUnit()
629 DecimalFormat numberFormat = icuServiceBuilder.getNumberFormat(1); in handleFormatPerUnit() local
630 return format(value, backgroundStartSymbol + numberFormat.format(1) + backgroundEndSymbol); in handleFormatPerUnit()
721 DecimalFormat numberFormat = icuServiceBuilder.getNumberFormat(1); in handleCompoundUnit1() local
737 return removeEmptyRuns(format(modFormat, numberFormat.format(amount))); in handleCompoundUnit1()
775 DecimalFormat numberFormat = icuServiceBuilder.getNumberFormat(0); in handleMiscPatterns() local
776 String start = backgroundStartSymbol + numberFormat.format(99) + backgroundEndSymbol; in handleMiscPatterns()
778 String end = backgroundStartSymbol + numberFormat.format(144) + backgroundEndSymbol; in handleMiscPatterns()
937 DecimalFormat numberFormat = icuServiceBuilder.getNumberFormat(1); in getFormattedUnit() local
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DZoneMeta.java658 NumberFormat numberFormat = null; in parseCustomID() local
675 numberFormat = NumberFormat.getInstance(); in parseCustomID()
676 numberFormat.setParseIntegerOnly(true); in parseCustomID()
681 Number n = numberFormat.parse(id, pos); in parseCustomID()
695 n = numberFormat.parse(id, pos); in parseCustomID()
708 n = numberFormat.parse(id, pos); in parseCustomID()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DZoneMeta.java657 NumberFormat numberFormat = null; in parseCustomID() local
674 numberFormat = NumberFormat.getInstance(); in parseCustomID()
675 numberFormat.setParseIntegerOnly(true); in parseCustomID()
680 Number n = numberFormat.parse(id, pos); in parseCustomID()
694 n = numberFormat.parse(id, pos); in parseCustomID()
707 n = numberFormat.parse(id, pos); in parseCustomID()

123