Home
last modified time | relevance | path

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

123

/third_party/node/deps/icu-small/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 …]
/third_party/flutter/skia/third_party/externals/icu/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 …]
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 …]
Dmeasfmt.cpp619 numberFormat(NULL), in MeasureFormat()
632 numberFormat(NULL), in MeasureFormat()
642 numberFormat(other.numberFormat), in MeasureFormat()
647 numberFormat->addRef(); in MeasureFormat()
660 SharedObject::copyPtr(other.numberFormat, numberFormat); in operator =()
674 numberFormat(NULL), in MeasureFormat()
684 if (numberFormat != NULL) { in ~MeasureFormat()
685 numberFormat->removeRef(); in ~MeasureFormat()
725 numberFormat == rhs.numberFormat || in operator ==()
726 **numberFormat == **rhs.numberFormat); in operator ==()
[all …]
/third_party/skia/third_party/externals/icu/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 …]
/third_party/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 …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
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.java129 private final transient NumberFormat numberFormat; field in MeasureFormat
519 return (NumberFormat) numberFormat.clone(); in getNumberFormat()
526 return numberFormat; in getNumberFormatInternal()
581 NumberFormat numberFormat, in MeasureFormat() argument
593 if (numberFormat == null) { in MeasureFormat()
594 numberFormat = NumberFormat.getInstance(locale); in MeasureFormat()
596 numberFormat = (NumberFormat) numberFormat.clone(); in MeasureFormat()
598 this.numberFormat = numberFormat; in MeasureFormat()
609 if (!(numberFormat instanceof DecimalFormat)) { in MeasureFormat()
612 numberFormatter = ((DecimalFormat) numberFormat).toNumberFormatter() in MeasureFormat()
[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()
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()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
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.java130 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 …]
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()
DDateFormat.java163 protected NumberFormat numberFormat; field in DateFormat
1629 numberFormat = (NumberFormat)newNumberFormat.clone(); in setNumberFormat()
1630 fixNumberFormatForDates(numberFormat); in setNumberFormat()
1653 return numberFormat; in getNumberFormat()
1816 return numberFormat.hashCode(); in hashCode()
1832 ((numberFormat==null && other.numberFormat==null) || in equals()
1833 … (numberFormat!=null && other.numberFormat!=null && numberFormat.equals(other.numberFormat))) && in equals()
1846 if (numberFormat != null) { in clone()
1847 other.numberFormat = (NumberFormat) numberFormat.clone(); in clone()
/third_party/node/test/parallel/
Dtest-intl.js104 const numberFormat = new Intl.NumberFormat(['en']).format(12345.67890);
105 assert.strictEqual(numberFormat, '12,345.679');
115 const numberFormat = new Intl.NumberFormat('en-US', { style: 'percent' }); constant
116 const resolvedOptions = numberFormat.resolvedOptions();
125 const numberFormat = new Intl.NumberFormat(loc, opts).format(num);
126 assert.strictEqual(numberFormat, '10');
/third_party/libphonenumber/java/libphonenumber/src/com/google/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()
424 for (NumberFormat numberFormat : possibleFormats) { in attemptToFormatAccruedDigits()
425 Matcher m = regexCache.getPatternForRegex(numberFormat.getPattern()).matcher(nationalNumber); in attemptToFormatAccruedDigits()
429 numberFormat.getNationalPrefixFormattingRule()).find(); in attemptToFormatAccruedDigits()
430 String formattedNumber = m.replaceAll(numberFormat.getFormat()); in attemptToFormatAccruedDigits()
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dasyoutypeformatter.js294 var numberFormat = this.possibleFormats_[i];
296 var pattern = numberFormat.getPatternOrDefault();
300 if (this.createFormattingTemplate_(numberFormat)) {
305 numberFormat.getNationalPrefixFormattingRule());
440 function(numberPattern, numberFormat) { argument
459 numberFormat);
719 var numberFormat = this.possibleFormats_[i];
721 var pattern = numberFormat.getPatternOrDefault();
728 numberFormat.getNationalPrefixFormattingRule());
731 numberFormat.getFormat());

123