Searched refs:currency (Results 1 - 4 of 4) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_number_format.cpp | 27 "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 ¤cy) CurrencyDigits() argument [all...] |
H A D | js_locale.cpp | 649 bool JSLocale::IsWellFormedCurrencyCode(const std::string ¤cy) 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 D | js_number_format.h | 137 // 12.1.3 CurrencyDigits ( currency ) 138 static int32_t CurrencyDigits(const icu::UnicodeString ¤cy);
|
H A D | js_locale.h | 496 static bool IsWellFormedCurrencyCode(const std::string ¤cy);
|
Completed in 9 milliseconds