Home
last modified time | relevance | path

Searched refs:calendar (Results 1 - 4 of 4) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Djs_date_time_format.cpp358 // 6. Let calendar be ? GetOption(options, "calendar", "string", undefined, undefined). in InitializeDateTimeFormat()
359 JSHandle<JSTaggedValue> calendar = in InitializeDateTimeFormat() local
363 dateTimeFormat->SetCalendar(thread, calendar); in InitializeDateTimeFormat()
365 // 7. If calendar is not undefined, then in InitializeDateTimeFormat()
366 // a. If calendar does not match the Unicode Locale Identifier type nonterminal, throw a RangeError exception. in InitializeDateTimeFormat()
368 if (!calendar->IsUndefined()) { in InitializeDateTimeFormat()
369 JSHandle<EcmaString> calendarEcmaStr = JSHandle<EcmaString>::Cast(calendar); in InitializeDateTimeFormat()
372 THROW_RANGE_ERROR_AND_RETURN(thread, "invalid calendar", dateTimeFormat); in InitializeDateTimeFormat()
435 // Set icuLocale.[[ca]] to calendar in InitializeDateTimeFormat()
1124 const icu::Calendar *calendar = icuSimpleDateFormat->getCalendar(); ResolvedOptions() local
[all...]
H A Djs_locale.cpp657 bool JSLocale::IsWellFormedCalendarCode(const std::string& calendar) in IsWellFormedCalendarCode() argument
659 std::string value = calendar; in IsWellFormedCalendarCode()
H A Djs_locale.h28 #include "unicode/calendar.h"
358 return IsWellExtension<icu::Calendar>(locale, "calendar", value); in IsWellCalendar()
498 static bool IsWellFormedCalendarCode(const std::string& calendar);
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_locale.cpp197 JSTaggedValue calendar = JSLocale::NormalizeKeywordValue(thread, locale, "ca"); in GetCalendar() local
198 return calendar; in GetCalendar()

Completed in 7 milliseconds