Home
last modified time | relevance | path

Searched refs:RelativeStyleOption (Results 1 – 4 of 4) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_relative_time_format.cpp107 RelativeStyleOption styleOption = JSLocale::GetOptionOfString(thread, rtfOptions, property, in InitializeRelativeTimeFormat()
108 {RelativeStyleOption::LONG, RelativeStyleOption::SHORT, RelativeStyleOption::NARROW}, in InitializeRelativeTimeFormat()
109 {"long", "short", "narrow"}, RelativeStyleOption::LONG); in InitializeRelativeTimeFormat()
141 case RelativeStyleOption::LONG: in InitializeRelativeTimeFormat()
144 case RelativeStyleOption::SHORT: in InitializeRelativeTimeFormat()
147 case RelativeStyleOption::NARROW: in InitializeRelativeTimeFormat()
505 RelativeStyleOption style = relativeTimeFormat->GetStyle(); in ResolvedOptions()
507 if (style == RelativeStyleOption::LONG) { in ResolvedOptions()
509 } else if (style == RelativeStyleOption::SHORT) { in ResolvedOptions()
511 } else if (style == RelativeStyleOption::NARROW) { in ResolvedOptions()
Djs_relative_time_format.h38 enum class RelativeStyleOption : uint8_t { LONG = 0x01, SHORT, NARROW, EXCEPTION }; enum
55 FIRST_BIT_FIELD(BitField, Style, RelativeStyleOption, STYLE_BITS)
Dobject_factory.cpp980 JSRelativeTimeFormat::Cast(*obj)->SetStyle(RelativeStyleOption::EXCEPTION); in InitializeJSObject()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_relative_time_format_test.cpp83 EXPECT_EQ(RelativeStyleOption::LONG, relativeTimeFormat->GetStyle()); in HWTEST_F_L0()