Home
last modified time | relevance | path

Searched refs:GetOption (Results 1 - 6 of 6) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_locale_test.cpp472 * @tc.name: GetOption
473 * @tc.desc: Call "GetOption" function get value of the key from Option.
477 HWTEST_F_L0(JSLocaleTest, GetOption) in HWTEST_F_L0()
493 JSLocale::GetOption(thread, optionsObj, languageProperty, OptionType::STRING, arrayValue, fallback); in HWTEST_F_L0()
496 optionValue = JSLocale::GetOption(thread, optionsObj, regionProperty, OptionType::STRING, arrayValue, fallback); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
H A Djs_locale.cpp251 // b. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). in SupportedLocales()
276 // 9.2.11 GetOption ( options, property, type, values, fallback )
277 JSHandle<JSTaggedValue> JSLocale::GetOption(JSThread *thread, const JSHandle<JSObject> &options, in GetOption() function in panda::ecmascript::JSLocale
696 // 9.2.11 GetOption ( options, property, type, values, fallback )
782 GetOption(thread, options, globalConst->GetHandledLanguageString(), OptionType::STRING, in ApplyOptionsToTag()
797 // 5. Let script be ? GetOption(options, "script", "string", undefined, undefined). in ApplyOptionsToTag()
799 GetOption(thread, options, globalConst->GetHandledScriptString(), OptionType::STRING, in ApplyOptionsToTag()
813 // 7. Let region be ? GetOption(options, "region", "string", undefined, undefined). in ApplyOptionsToTag()
817 GetOption(thread, options, globalConst->GetHandledRegionString(), OptionType::STRING, in ApplyOptionsToTag()
H A Djs_number_format.cpp326 // 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()
341 JSLocale::GetOption(thread, optionsObject, property, OptionType::STRING, undefinedValue, undefinedValue); in SetNumberFormatUnitOptions()
362 // 8. Let currencyDisplay be ? GetOption(options, "currencyDisplay", "string", in SetNumberFormatUnitOptions()
372 // 9. Let currencySign be ? GetOption(options, "currencySign", "string", « "standard", "accounting" », "standard"). in SetNumberFormatUnitOptions()
381 // 10. Let unit be ? GetOption(options, "unit", "string", undefined, undefined). in SetNumberFormatUnitOptions()
384 JSLocale::GetOption(thread, optionsObject, property, OptionType::STRING, undefinedValue, undefinedValue); in SetNumberFormatUnitOptions()
408 // 13. Let unitDisplay be ? GetOption(options, "unitDisplay", "string", « "short", "narrow", "long" », "short"). in SetNumberFormatUnitOptions()
521 // 5. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). in InitializeNumberFormat()
529 // 7. Let numberingSystem be ? GetOption(option in InitializeNumberFormat()
[all...]
H A Djs_collator.cpp128 // 4. Let usage be ? GetOption(options, "usage", "string", « "sort", "search" », "sort"). in InitializeCollator()
135 // 5. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). in InitializeCollator()
142 // 6. Let collation be ? GetOption(options, "collation", "string", undefined, undefined). in InitializeCollator()
146 JSLocale::GetOption(thread, optionsObject, globalConst->GetHandledCollationString(), OptionType::STRING, in InitializeCollator()
159 // 8. Let numeric be ? GetOption(options, "numeric", "boolean", undefined, undefined). in InitializeCollator()
166 // 14. Let caseFirst be ? GetOption(options, "caseFirst", "string", « "upper", "lower", "false" », undefined). in InitializeCollator()
277 // 24. Let sensitivity be ? GetOption(options, "sensitivity", "string", « "base", "accent", "case", "variant" », in InitializeCollator()
316 // 27. Let ignorePunctuation be ? GetOption(options, "ignorePunctuation", "boolean", undefined, false). in InitializeCollator()
H A Djs_locale.h233 // 9.2.11 GetOption ( options, property, type, values, fallback )
277 static JSHandle<JSTaggedValue> GetOption(JSThread *thread, const JSHandle<JSObject> &options,
H A Djs_relative_time_format.cpp42 // 5. Let matcher be ? GetOption(options, "localeMatcher", "string", «"lookup", "best fit"», "best fit"). in InitializeRelativeTimeFormat()
50 // 7. Let numberingSystem be ? GetOption(options, "numberingSystem", "string", undefined, undefined). in InitializeRelativeTimeFormat()
54 JSLocale::GetOption(thread, rtfOptions, property, OptionType::STRING, undefinedValue, undefinedValue); in InitializeRelativeTimeFormat()
103 // 16. Let s be ? GetOption(options, "style", "string", «"long", "short", "narrow"», "long"). in InitializeRelativeTimeFormat()
113 // 18. Let numeric be ? GetOption(options, "numeric", "string", ?"always", "auto"?, "always"). in InitializeRelativeTimeFormat()

Completed in 9 milliseconds