Home
last modified time | relevance | path

Searched refs:currency (Results 1 - 4 of 4) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Djs_number_format.cpp27 "decimal", "percent", "currency", "unit"
326 // 3. Let style be ? GetOption(options, "style", "string", « "decimal", "percent", "currency", "unit" », "decimal"). in SetNumberFormatUnitOptions()
337 // 5. Let currency be ? GetOption(options, "currency", "string", undefined, undefined). in SetNumberFormatUnitOptions()
340 JSHandle<JSTaggedValue> currency = in SetNumberFormatUnitOptions() local
344 // 6. If currency is not undefined, then in SetNumberFormatUnitOptions()
345 // a. If the result of IsWellFormedCurrencyCode(currency) is false, throw a RangeError exception. in SetNumberFormatUnitOptions()
346 if (!currency->IsUndefined()) { in SetNumberFormatUnitOptions()
347 JSHandle<EcmaString> currencyStr = JSHandle<EcmaString>::Cast(currency); in SetNumberFormatUnitOptions()
356 // 7. If style is "currency" an in SetNumberFormatUnitOptions()
754 CurrencyDigits(const icu::UnicodeString &currency) CurrencyDigits() argument
[all...]
H A Djs_locale.cpp649 bool JSLocale::IsWellFormedCurrencyCode(const std::string &currency) in IsWellFormedCurrencyCode() argument
651 if (currency.length() != INTL_INDEX_THREE) { in IsWellFormedCurrencyCode()
654 return (IsAToZ(currency[INTL_INDEX_ZERO]) && IsAToZ(currency[INTL_INDEX_ONE]) && IsAToZ(currency[INTL_INDEX_TWO])); in IsWellFormedCurrencyCode()
H A Djs_number_format.h137 // 12.1.3 CurrencyDigits ( currency )
138 static int32_t CurrencyDigits(const icu::UnicodeString &currency);
H A Djs_locale.h496 static bool IsWellFormedCurrencyCode(const std::string &currency);

Completed in 9 milliseconds