Lines Matching refs:numberFormat
320 const JSHandle<JSNumberFormat> &numberFormat,
335 numberFormat->SetStyle(style);
370 numberFormat->SetCurrencyDisplay(currencyDisplay);
379 numberFormat->SetCurrencySign(currencySign);
386 numberFormat->SetUnit(thread, unit);
415 numberFormat->SetUnitDisplay(unitDisplay);
430 numberFormat->SetCurrency(thread, currencyValue);
496 // 12.1.2 InitializeNumberFormat ( numberFormat, locales, options )
498 void JSNumberFormat::InitializeNumberFormat(JSThread *thread, const JSHandle<JSNumberFormat> &numberFormat,
535 numberFormat->SetNumberingSystem(thread, numberingSystemTaggedValue);
555 numberFormat->SetNumberingSystem(thread, undefinedValue);
573 // 12. Set numberFormat.[[Locale]] to r.[[locale]].
577 numberFormat->SetLocale(thread, localeStr.GetTaggedValue());
594 SetNumberFormatUnitOptions(thread, numberFormat, optionsObject, &icuNumberFormatter);
598 UnitDisplayOption unitDisplay = numberFormat->GetUnitDisplay();
619 // 16. Let style be numberFormat.[[Style]].
620 StyleOption style = numberFormat->GetStyle();
634 numberFormat->SetNotation(notation);
636 // 21. Perform ? SetNumberFormatDigitOptions(numberFormat, options, mnfdDefault, mxfdDefault, notation).
637 JSLocale::SetNumberFormatDigitOptions(thread, numberFormat, JSHandle<JSTaggedValue>::Cast(optionsObject),
640 icuNumberFormatter = SetICUFormatterDigitOptions(icuNumberFormatter, numberFormat);
648 numberFormat->SetCompactDisplay(compactDisplay);
683 numberFormat->SetUseGrouping(thread, useGroupingValue);
685 // 25. Set numberFormat.[[UseGrouping]] to useGrouping.
698 numberFormat->SetSignDisplay(signDisplay);
700 // 27. Set numberFormat.[[SignDisplay]] to signDisplay.
704 CurrencySignOption currencySign = numberFormat->GetCurrencySign();
746 // Set numberFormat.[[IcuNumberForma]] to handleNumberFormatter
747 factory->NewJSIntlIcuData(numberFormat, icuNumberFormatter, JSNumberFormat::FreeIcuNumberformat);
749 // Set numberFormat.[[BoundFormat]] to undefinedValue
750 numberFormat->SetBoundFormat(thread, undefinedValue);
779 // 12.1.8 FormatNumeric( numberFormat, x )
780 JSHandle<JSTaggedValue> JSNumberFormat::FormatNumeric(JSThread *thread, const JSHandle<JSNumberFormat> &numberFormat,
783 icu::number::LocalizedNumberFormatter *icuNumberFormat = numberFormat->GetIcuCallTarget();
818 const JSHandle<JSNumberFormat> &numberFormat, JSTaggedValue x)
827 StyleOption styleOption = numberFormat->GetStyle();
915 // 12.1.9 FormatNumericToParts( numberFormat, x )
916 JSHandle<JSArray> JSNumberFormat::FormatNumericToParts(JSThread *thread, const JSHandle<JSNumberFormat> &numberFormat,
920 icu::number::LocalizedNumberFormatter *icuNumberFormatter = numberFormat->GetIcuCallTarget();
943 GroupToParts(thread, formattedNumber, result, numberFormat, x);
993 void JSNumberFormat::ResolvedOptions(JSThread *thread, const JSHandle<JSNumberFormat> &numberFormat,
1018 JSHandle<JSTaggedValue> locale(thread, numberFormat->GetLocale());
1023 JSHandle<JSTaggedValue> numberingSystem(thread, numberFormat->GetNumberingSystem());
1032 StyleOption style = numberFormat->GetStyle();
1042 currency = JSHandle<JSTaggedValue>(thread, numberFormat->GetCurrency());
1051 CurrencyDisplayOption currencyDisplay = numberFormat->GetCurrencyDisplay();
1058 CurrencySignOption currencySign = numberFormat->GetCurrencySign();
1065 JSHandle<JSTaggedValue> unit(thread, numberFormat->GetUnit());
1074 UnitDisplayOption unitDisplay = numberFormat->GetUnitDisplay();
1081 JSHandle<JSTaggedValue> minimumIntegerDigits(thread, numberFormat->GetMinimumIntegerDigits());
1085 RoundingType roundingType = numberFormat->GetRoundingType();
1089 JSHandle<JSTaggedValue> minimumSignificantDigits(thread, numberFormat->GetMinimumSignificantDigits());
1094 JSHandle<JSTaggedValue> maximumSignificantDigits(thread, numberFormat->GetMaximumSignificantDigits());
1100 JSHandle<JSTaggedValue> minimumFractionDigits(thread, numberFormat->GetMinimumFractionDigits());
1105 JSHandle<JSTaggedValue> maximumFractionDigits(thread, numberFormat->GetMaximumFractionDigits());
1113 JSHandle<JSTaggedValue> minimumSignificantDigits(thread, numberFormat->GetMinimumSignificantDigits());
1118 JSHandle<JSTaggedValue> maximumSignificantDigits(thread, numberFormat->GetMaximumSignificantDigits());
1127 JSHandle<JSTaggedValue>(thread, numberFormat->GetUseGrouping()));
1132 NotationOption notation = numberFormat->GetNotation();
1141 CompactDisplayOption compactDisplay = numberFormat->GetCompactDisplay();
1149 SignDisplayOption signDisplay = numberFormat->GetSignDisplay();