Home
last modified time | relevance | path

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

/external/icu/icu4c/source/i18n/
Dplurfmt.cpp36 numberFormat(NULL), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
44 numberFormat(NULL), in PluralFormat()
52 numberFormat(NULL), in PluralFormat()
62 numberFormat(NULL), in PluralFormat()
72 numberFormat(NULL), in PluralFormat()
81 numberFormat(NULL), in PluralFormat()
92 numberFormat(NULL), in PluralFormat()
103 numberFormat(NULL), in PluralFormat()
115 numberFormat(NULL), in PluralFormat()
127 numberFormat(NULL), in PluralFormat()
[all …]
Dmeasfmt.cpp459 numberFormat(NULL), in MeasureFormat()
472 numberFormat(NULL), in MeasureFormat()
482 numberFormat(other.numberFormat), in MeasureFormat()
487 numberFormat->addRef(); in MeasureFormat()
498 SharedObject::copyPtr(other.numberFormat, numberFormat); in operator =()
508 numberFormat(NULL), in MeasureFormat()
518 if (numberFormat != NULL) { in ~MeasureFormat()
519 numberFormat->removeRef(); in ~MeasureFormat()
559 numberFormat == rhs.numberFormat || in operator ==()
560 **numberFormat == **rhs.numberFormat); in operator ==()
[all …]
Dnfsubs.cpp447 : pos(_pos), ruleSet(NULL), numberFormat(NULL) in NFSubstitution()
488 this->numberFormat = new DecimalFormat(workingDescription, *sym, status); in NFSubstitution()
490 if (this->numberFormat == 0) { in NFSubstitution()
495 delete (DecimalFormat*)this->numberFormat; in NFSubstitution()
496 this->numberFormat = NULL; in NFSubstitution()
510 this->numberFormat = NULL; in NFSubstitution()
522 delete (NumberFormat*)numberFormat; numberFormat = NULL; in ~NFSubstitution()
559 && (numberFormat == NULL
560 ? (rhs.numberFormat == NULL)
561 : (*numberFormat == *rhs.numberFormat));
[all …]
Dnfsubs.h35 const DecimalFormat* numberFormat; variable
54 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/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralFormat.java174 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()
610 return numberFormat.format(numberObject); in format()
618 numberString = numberFormat.format(numberObject); // could be BigDecimal etc. in format()
620 numberString = numberFormat.format(numberMinusOffset); in format()
623 if(numberFormat instanceof DecimalFormat) { in format()
624 dec = ((DecimalFormat) numberFormat).getFixedDecimal(numberMinusOffset); in format()
[all …]
DQuantityFormatter.java119 public String format(double quantity, NumberFormat numberFormat, PluralRules pluralRules) { in format() argument
120 String formatStr = numberFormat.format(quantity); in format()
121 String variant = computeVariant(quantity, numberFormat, pluralRules); in format()
136 …private String computeVariant(double quantity, NumberFormat numberFormat, PluralRules pluralRules)… in computeVariant() argument
137 if (numberFormat instanceof DecimalFormat) { in computeVariant()
138 … return pluralRules.select(((DecimalFormat) numberFormat).getFixedDecimal(quantity)); in computeVariant()
DMeasureFormat.java116 private final transient ImmutableNumberFormat numberFormat; field in MeasureFormat
334 … toAppendTo.append(formatMeasure((Measure) obj, numberFormat, new StringBuilder(), fpos)); in format() local
409 int maxFrac = numberFormat.nf.getMaximumFractionDigits(); in formatMeasureRange()
410 int minFrac = numberFormat.nf.getMinimumFractionDigits(); in formatMeasureRange()
412 DecimalFormat currentNumberFormat = (DecimalFormat) numberFormat.get(); in formatMeasureRange()
420 lowFormatted = numberFormat.format(lowNumber, new StringBuffer(), lowFpos); in formatMeasureRange()
421 highFormatted = numberFormat.format(highNumber, new StringBuffer(), highFpos); in formatMeasureRange()
513 return formatMeasure(newMeasure, numberFormat, appendTo, pos); in formatMeasurePerUnit()
518 formatMeasure(measure, numberFormat, new StringBuilder(), fpos), in formatMeasurePerUnit()
549 return formatMeasure(measures[0], numberFormat, appendTo, fieldPosition); in formatMeasures()
[all …]
DNFSubstitution.java41 final DecimalFormat numberFormat; field in NFSubstitution
187 this.numberFormat = null; in NFSubstitution()
194 this.numberFormat = null; in NFSubstitution()
202 this.numberFormat = new DecimalFormat(description, formatter.getDecimalFormatSymbols()); in NFSubstitution()
211 this.numberFormat = null; in NFSubstitution()
253 …&& (numberFormat == null ? (that2.numberFormat == null) : numberFormat.equals(that2.numberFormat)); in equals()
277 return tokenChar() + numberFormat.toPattern() + tokenChar(); in toString()
309 if (numberFormat.getMaximumFractionDigits() == 0) { in doSubstitution()
313 toInsertInto.insert(position + pos, numberFormat.format(numberToFormat)); in doSubstitution()
344 toInsertInto.insert(position + this.pos, numberFormat.format(numberToFormat)); in doSubstitution()
[all …]
DDateFormat.java159 protected NumberFormat numberFormat; field in DateFormat
1470 this.numberFormat = newNumberFormat; in setNumberFormat()
1474 this.numberFormat.setParseIntegerOnly(true); in setNumberFormat()
1485 return numberFormat; in getNumberFormat()
1641 return numberFormat.hashCode(); in hashCode()
1656 ((numberFormat==null && other.numberFormat==null) || in equals()
1657 … (numberFormat!=null && other.numberFormat!=null && numberFormat.equals(other.numberFormat))) && in equals()
1669 if (numberFormat != null) { in clone()
1670 other.numberFormat = (NumberFormat) numberFormat.clone(); in clone()
DRelativeDateTimeFormatter.java388 synchronized (numberFormat) { in format()
391 quantity, numberFormat, pluralRules); in format()
439 synchronized (numberFormat) { in getNumberFormat()
440 return (NumberFormat) numberFormat.clone(); in getNumberFormat()
518 NumberFormat numberFormat, in RelativeDateTimeFormatter() argument
527 this.numberFormat = numberFormat; in RelativeDateTimeFormatter()
546 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 …]
DTimeUnitFormat.java165 private TimeUnitFormat(ULocale locale, int style, NumberFormat numberFormat) { in TimeUnitFormat() argument
167 if (numberFormat != null) { in TimeUnitFormat()
168 setNumberFormat((NumberFormat) numberFormat.clone()); in TimeUnitFormat()
/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.java1099 public String format(PhoneNumber number, PhoneNumberFormat numberFormat) {
1112 format(number, numberFormat, formattedNumber);
1120 public void format(PhoneNumber number, PhoneNumberFormat numberFormat,
1127 if (numberFormat == PhoneNumberFormat.E164) {
1147 formattedNumber.append(formatNsn(nationalSignificantNumber, metadata, numberFormat));
1148 maybeAppendFormattedExtension(number, metadata, numberFormat, formattedNumber);
1149 prefixNumberWithCountryCallingCode(countryCallingCode, numberFormat, formattedNumber);
1164 PhoneNumberFormat numberFormat,
1208 formatNsnUsingPattern(nationalSignificantNumber, numFormatCopy, numberFormat));
1210 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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatTest.java3380 DecimalFormat numberFormat = in TestSignificantDigits() local
3382 numberFormat.setSignificantDigitsUsed(true); in TestSignificantDigits()
3383 numberFormat.setMinimumSignificantDigits(3); in TestSignificantDigits()
3384 numberFormat.setMaximumSignificantDigits(5); in TestSignificantDigits()
3385 numberFormat.setGroupingUsed(false); in TestSignificantDigits()
3387 assertEquals("TestSignificantDigits", expected[i], numberFormat.format(input[i])); in TestSignificantDigits()
3392 DecimalFormat numberFormat = in TestBug9936() local
3394 assertFalse("", numberFormat.areSignificantDigitsUsed()); in TestBug9936()
3396 numberFormat.setSignificantDigitsUsed(true); in TestBug9936()
3397 assertTrue("", numberFormat.areSignificantDigitsUsed()); in TestBug9936()
[all …]
DPluralFormatUnitTest.java94 NumberFormat numberFormat = in TestApplyPatternAndFormat() local
98 numberFormat.format(i) + " is odd or even.", in TestApplyPatternAndFormat()
101 numberFormat.format(i) + ((i%2 == 1) ? " is odd." in TestApplyPatternAndFormat()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DZoneMeta.java655 NumberFormat numberFormat = null; in parseCustomID() local
672 numberFormat = NumberFormat.getInstance(); in parseCustomID()
673 numberFormat.setParseIntegerOnly(true); in parseCustomID()
678 Number n = numberFormat.parse(id, pos); in parseCustomID()
692 n = numberFormat.parse(id, pos); in parseCustomID()
705 n = numberFormat.parse(id, pos); in parseCustomID()
/external/v8/src/
Di18n.js1066 function initializeNumberFormat(numberFormat, locales, options) { argument
1067 if (%IsInitializedIntlObject(numberFormat)) {
1159 %MarkAsInitializedIntlObjectOfType(numberFormat, 'numberformat', formatter);
1160 ObjectDefineProperty(numberFormat, 'resolved', {value: resolved});
1162 return numberFormat;
2001 var numberFormat = cachedOrNewService('numberformat', locales, options);
2002 return formatNumber(numberFormat, this);
/external/icu/icu4c/source/test/intltest/
Dnumfmtst.cpp7084 LocalPointer<DecimalFormat> numberFormat(static_cast<DecimalFormat*>( in TestSignificantDigits() local
7088 numberFormat->setSignificantDigitsUsed(TRUE); in TestSignificantDigits()
7089 numberFormat->setMinimumSignificantDigits(3); in TestSignificantDigits()
7090 numberFormat->setMaximumSignificantDigits(5); in TestSignificantDigits()
7091 numberFormat->setGroupingUsed(false); in TestSignificantDigits()
7096 numberFormat->format(input[i], result); in TestSignificantDigits()
7108 LocalPointer<DecimalFormat> numberFormat(static_cast<DecimalFormat*>( in TestShowZero() local
7112 numberFormat->setSignificantDigitsUsed(TRUE); in TestShowZero()
7113 numberFormat->setMaximumSignificantDigits(3); in TestShowZero()
7116 numberFormat->format(0.0, result); in TestShowZero()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dmeasfmt.h321 const SharedNumberFormat *numberFormat; variable
Dplurfmt.h571 NumberFormat* numberFormat; variable
/external/chromium-trace/trace-viewer/tracing/third_party/d3/
Dd3.min.js3numberFormat:Tt(n),timeFormat:Pt(n)}};var ac=Xo.locale({decimal:".",thousands:",",grouping:[3],cur…