/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_date_time_format.cpp | 55 JSHandle<JSDateTimeFormat> dtf = in DateTimeFormatConstructor() local 70 … PropertyDescriptor descriptor(thread, JSHandle<JSTaggedValue>::Cast(dtf), false, false, false); in DateTimeFormatConstructor() 78 return dtf.GetTaggedValue(); in DateTimeFormatConstructor() 129 JSHandle<JSDateTimeFormat> dtf = JSHandle<JSDateTimeFormat>::Cast(dtfValue); in Format() local 130 JSHandle<JSTaggedValue> boundFormat(thread, dtf->GetBoundFormat()); in Format() 135 intlBoundFunc->SetDateTimeFormat(thread, dtf); in Format() 136 dtf->SetBoundFormat(thread, intlBoundFunc); in Format() 138 return dtf->GetBoundFormat(); in Format() 152 JSHandle<JSTaggedValue> dtf(thread, intlBoundFunc->GetDateTimeFormat()); in AnonymousDateTimeFormat() local 155 …ASSERT_PRINT(dtf->IsJSObject() && dtf->IsJSDateTimeFormat(), "dtf is not object or JSDateTimeForma… in AnonymousDateTimeFormat() [all …]
|
D | builtins_date.cpp | 289 JSHandle<JSDateTimeFormat> dtf = JSDateTimeFormat::InitializeDateTimeFormat(thread, in ToLocaleString() local 302 JSHandle<EcmaString> result = JSDateTimeFormat::FormatDateTime(thread, dtf, x); in ToLocaleString() 370 JSHandle<JSDateTimeFormat> dtf = JSDateTimeFormat::InitializeDateTimeFormat(thread, in ToLocaleDateString() local 383 JSHandle<EcmaString> result = JSDateTimeFormat::FormatDateTime(thread, dtf, x); in ToLocaleDateString() 451 JSHandle<JSDateTimeFormat> dtf = JSDateTimeFormat::InitializeDateTimeFormat(thread, in ToLocaleTimeString() local 464 JSHandle<EcmaString> result = JSDateTimeFormat::FormatDateTime(thread, dtf, x); in ToLocaleTimeString()
|
/arkcompiler/ets_runtime/test/aottest/formatrangetoparts/ |
D | formatrangetoparts.js | 32 const dtf = new Intl.DateTimeFormat(undefined, { constant 36 const expected = dtf.formatRangeToParts(0, date); 38 compare(dtf.formatRangeToParts(-0.9, date), expected, "formatRangeToParts(-0.9)");
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_date_time_format_test.cpp | 128 JSHandle<JSDateTimeFormat> dtf = in HWTEST_F_L0() local 132 JSDateTimeFormat::SetIcuLocale(thread, dtf, locale1, JSDateTimeFormat::FreeIcuLocale); in HWTEST_F_L0() 133 icu::Locale *resLocale1 = dtf->GetIcuLocale(); in HWTEST_F_L0() 137 JSDateTimeFormat::SetIcuLocale(thread, dtf, locale2, JSDateTimeFormat::FreeIcuLocale); in HWTEST_F_L0() 138 icu::Locale *resLocale2 = dtf->GetIcuLocale(); in HWTEST_F_L0() 157 JSHandle<JSDateTimeFormat> dtf = in HWTEST_F_L0() local 166 …JSDateTimeFormat::SetIcuSimpleDateFormat(thread, dtf, sdf, JSDateTimeFormat::FreeSimpleDateFormat); in HWTEST_F_L0() 167 icu::SimpleDateFormat *resSdf = dtf->GetIcuSimpleDateFormat(); in HWTEST_F_L0() 180 …JSDateTimeFormat::SetIcuSimpleDateFormat(thread, dtf, sdf2, JSDateTimeFormat::FreeSimpleDateFormat… in HWTEST_F_L0() 181 icu::SimpleDateFormat *resSdf2 = dtf->GetIcuSimpleDateFormat(); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_date_time_format.h | 158 …le<EcmaString> NormDateTimeRange(JSThread *thread, const JSHandle<JSDateTimeFormat> &dtf, double x, 161 …JSHandle<JSArray> NormDateTimeRangeToParts(JSThread *thread, const JSHandle<JSDateTimeFormat> &dtf, 180 …ue_ptr<icu::DateIntervalFormat> ConstructDateIntervalFormat(const JSHandle<JSDateTimeFormat> &dtf); 208 …u::FormattedDateInterval ConstructDTFRange(JSThread *thread, const JSHandle<JSDateTimeFormat> &dtf,
|
D | js_date_time_format.cpp | 958 …terval JSDateTimeFormat::ConstructDTFRange(JSThread *thread, const JSHandle<JSDateTimeFormat> &dtf, in ConstructDTFRange() argument 961 std::unique_ptr<icu::DateIntervalFormat> dateIntervalFormat(ConstructDateIntervalFormat(dtf)); in ConstructDTFRange() 972 …tring> JSDateTimeFormat::NormDateTimeRange(JSThread *thread, const JSHandle<JSDateTimeFormat> &dtf, in NormDateTimeRange() argument 990 icu::FormattedDateInterval formatted = ConstructDTFRange(thread, dtf, x, y); in NormDateTimeRange() 1010 return FormatDateTime(thread, dtf, x); in NormDateTimeRange() 1015 …JSDateTimeFormat::NormDateTimeRangeToParts(JSThread *thread, const JSHandle<JSDateTimeFormat> &dtf, in NormDateTimeRangeToParts() argument 1033 icu::FormattedDateInterval formatted = ConstructDTFRange(thread, dtf, x, y); in NormDateTimeRangeToParts() 1515 const JSHandle<JSDateTimeFormat> &dtf) in ConstructDateIntervalFormat() argument 1517 icu::SimpleDateFormat *icuSimpleDateFormat = dtf->GetIcuSimpleDateFormat(); in ConstructDateIntervalFormat() 1518 icu::Locale locale = *(dtf->GetIcuLocale()); in ConstructDateIntervalFormat() [all …]
|