Lines Matching refs:currency

27     "decimal", "percent", "currency", "unit"
326 // 3. Let style be ? GetOption(options, "style", "string", « "decimal", "percent", "currency", "unit" », "decimal").
337 // 5. Let currency be ? GetOption(options, "currency", "string", undefined, undefined).
340 JSHandle<JSTaggedValue> currency =
344 // 6. If currency is not undefined, then
345 // a. If the result of IsWellFormedCurrencyCode(currency) is false, throw a RangeError exception.
346 if (!currency->IsUndefined()) {
347 JSHandle<EcmaString> currencyStr = JSHandle<EcmaString>::Cast(currency);
356 // 7. If style is "currency" and currency is undefined, throw a TypeError exception.
358 THROW_TYPE_ERROR_AND_RETURN(thread, "style is currency but currency is undefined", fractionDigitsOption);
417 // 14. If style is "currency", then
418 // a. Let currency be the result of converting currency to upper case as specified in 6.1.
419 // b. Set intlObj.[[Currency]] to currency.
425 JSHandle<EcmaString> currencyStr = JSHandle<EcmaString>::Cast(currency);
471 // 17. If style is "currency", then
472 // a. Let cDigits be CurrencyDigits(currency).
753 // 12.1.3 CurrencyDigits ( currency )
754 int32_t JSNumberFormat::CurrencyDigits(const icu::UnicodeString &currency)
757 // If the ISO 4217 currency and funds code list contains currency as an alphabetic code,
758 // return the minor unit value corresponding to the currency from the list; otherwise, return 2.
760 ucurr_getDefaultFractionDigits(reinterpret_cast<const UChar *>(currency.getBuffer()), &status);
1001 // [[Currency]] "currency"
1038 // [[currency]]
1039 JSHandle<JSTaggedValue> currency(thread, JSTaggedValue::Undefined());
1040 // If style is not currency the currency should be undefined
1042 currency = JSHandle<JSTaggedValue>(thread, numberFormat->GetCurrency());
1044 if (!currency->IsUndefined()) { // NOLINT(readability-implicit-bool-conversion)
1046 JSObject::CreateDataPropertyOrThrow(thread, options, property, currency);