Searched refs:RelativeStyleOption (Results 1 – 4 of 4) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/ |
D | js_relative_time_format.cpp | 107 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()
|
D | js_relative_time_format.h | 38 enum class RelativeStyleOption : uint8_t { LONG = 0x01, SHORT, NARROW, EXCEPTION }; enum 55 FIRST_BIT_FIELD(BitField, Style, RelativeStyleOption, STYLE_BITS)
|
D | object_factory.cpp | 980 JSRelativeTimeFormat::Cast(*obj)->SetStyle(RelativeStyleOption::EXCEPTION); in InitializeJSObject()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_relative_time_format_test.cpp | 83 EXPECT_EQ(RelativeStyleOption::LONG, relativeTimeFormat->GetStyle()); in HWTEST_F_L0()
|