Home
last modified time | relevance | path

Searched refs:JSListFormat (Results 1 - 11 of 11) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Djs_list_format.h43 class JSListFormat : public JSObject { class
45 CAST_CHECK(JSListFormat, IsJSListFormat);
66 static void SetIcuListFormatter(JSThread *thread, const JSHandle<JSListFormat> obj,
72 static JSHandle<JSListFormat> InitializeListFormat(JSThread *thread, const JSHandle<JSListFormat> &listFormat,
77 static JSHandle<EcmaString> FormatList(JSThread *thread, const JSHandle<JSListFormat> &listFormat,
81 static JSHandle<JSArray> FormatListToParts(JSThread *thread, const JSHandle<JSListFormat> &listFormat,
87 static void ResolvedOptions(JSThread *thread, const JSHandle<JSListFormat> &listFormat,
H A Djs_list_format.cpp28 icu::ListFormatter *JSListFormat::GetIcuListFormatter() const in GetIcuListFormatter()
35 void JSListFormat::FreeIcuListFormatter([[maybe_unused]] void *env, void *pointer, [[maybe_unused]] void* hint) in FreeIcuListFormatter()
45 void JSListFormat::SetIcuListFormatter(JSThread *thread, const JSHandle<JSListFormat> listFormat, in SetIcuListFormatter()
61 JSHandle<TaggedArray> JSListFormat::GetAvailableLocales(JSThread *thread) in GetAvailableLocales()
77 JSHandle<JSListFormat> JSListFormat::InitializeListFormat(JSThread *thread, in InitializeListFormat()
78 const JSHandle<JSListFormat> &listFormat, in InitializeListFormat()
89 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSListFormat, thread); in InitializeListFormat()
99 RETURN_HANDLE_IF_ABRUPT_COMPLETION(JSListFormat, threa in InitializeListFormat()
[all...]
H A Dobject_factory.cpp1300 JSListFormat::Cast(*obj)->SetLocale(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
1301 JSListFormat::Cast(*obj)->SetType(ListTypeOption::EXCEPTION); in InitializeJSObject()
1302 JSListFormat::Cast(*obj)->SetStyle(ListStyleOption::EXCEPTION); in InitializeJSObject()
1303 JSListFormat::Cast(*obj)->SetIcuLF(thread_, JSTaggedValue::Undefined()); in InitializeJSObject()
H A Ddump.cpp357 return "JSListFormat"; in DumpJSType()
1052 JSListFormat::Cast(obj)->Dump(os); in DumpObject()
3475 void JSListFormat::Dump(std::ostream &os) const in Dump()
4258 JSListFormat::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
5782 void JSListFormat::DumpForSnapshot(std::vector<Reference> &vec) const in DumpForSnapshot()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_list_format.cpp44 JSHandle<JSListFormat> listFormat = JSHandle<JSListFormat>::Cast(newObject); in ListFormatConstructor()
49 listFormat = JSListFormat::InitializeListFormat(thread, listFormat, locales, options); in ListFormatConstructor()
62 JSHandle<TaggedArray> availableLocales = JSListFormat::GetAvailableLocales(thread); in SupportedLocalesOf()
88 THROW_TYPE_ERROR_AND_RETURN(thread, "this is not JSListFormat", JSTaggedValue::Exception()); in Format()
93 JSHandle<JSTaggedValue> listArray = JSListFormat::StringListFromIterable(thread, list); in Format()
97 JSHandle<JSListFormat> listFormat = JSHandle<JSListFormat>::Cast(thisValue); in Format()
99 JSHandle<EcmaString> result = JSListFormat::FormatList(thread, listFormat, array); in Format()
115 THROW_TYPE_ERROR_AND_RETURN(thread, "this is not JSListFormat", JSTaggedValu in FormatToParts()
[all...]
H A Dbuiltins.cpp3551 // JSListFormat.prototype in InitializeListFormat()
3556 // JSListFormat.prototype_or_hclass in InitializeListFormat()
3558 factory_->NewEcmaHClass(JSListFormat::SIZE, JSType::JS_LIST_FORMAT, lfPrototypeValue); in InitializeListFormat()
3560 // JSListFormat = new Function() in InitializeListFormat()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_list_format_test.cpp36 JSHandle<JSListFormat> jsFormatter = in HWTEST_F_L0()
37 JSHandle<JSListFormat>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), ctor)); in HWTEST_F_L0()
41 JSListFormat::SetIcuListFormatter(thread, jsFormatter, icuFormatter, JSListFormat::FreeIcuListFormatter); in HWTEST_F_L0()
59 JSHandle<JSListFormat> jsFormatter = in HWTEST_F_L0()
60 JSHandle<JSListFormat>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), ctor)); in HWTEST_F_L0()
64 JSListFormat::SetIcuListFormatter(thread, jsFormatter, icuFormatter, JSListFormat::FreeIcuListFormatter); in HWTEST_F_L0()
76 JSHandle<JSListFormat> CreateJSListFormatterTest(JSThread *thread, icu::Locale icuLocale, JSHandle<JSObject> options) in CreateJSListFormatterTest()
86 JSHandle<JSListFormat> listFormatte in CreateJSListFormatterTest()
[all...]
H A Ddump_test.cpp858 CHECK_DUMP_FIELDS(JSObject::SIZE, JSListFormat::SIZE, 3U); in HWTEST_F_L0()
859 NEW_OBJECT_AND_DUMP(JSListFormat, JS_LIST_FORMAT); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_list_format_first_test.cpp52 JSTaggedValue FormatCommon(JSThread* thread, JSHandle<JSListFormat>& jsFormat, JSTaggedValue value) in FormatCommon()
71 JSHandle<JSListFormat> jSListFormat = in HWTEST_F_L0()
72 JSHandle<JSListFormat>(thread, BuiltTestUtil::JSListFormatCreateWithOptionTest(thread, locale, typeValue)); in HWTEST_F_L0()
94 JSHandle<JSListFormat> jSListFormat = in CommonTest()
95 JSHandle<JSListFormat>(thread, BuiltTestUtil::JSListFormatCreateWithOptionTest(thread, locale, typeValue)); in CommonTest()
H A Dbuiltins_list_format_second_test.cpp35 JSHandle<JSListFormat> jsListFormat = in CommonTest()
36 JSHandle<JSListFormat>(thread, BuiltTestUtil::JSListFormatCreateWithOptionTest(thread, locale, typeValue)); in CommonTest()
64 JSHandle<JSListFormat> jSListFormat = in HWTEST_F_L0()
65 JSHandle<JSListFormat>(thread, BuiltTestUtil::JSListFormatCreateWithOptionTest(thread, locale, typeValue)); in HWTEST_F_L0()
206 JSHandle<JSListFormat> jSListFormat = in HWTEST_F_L0()
207 JSHandle<JSListFormat>(thread, BuiltTestUtil::JSListFormatCreateWithOptionTest(thread, locale, typeValue)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/mem/
H A Dobject_xray.h597 JSListFormat::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()

Completed in 30 milliseconds