Lines Matching refs:calendar
358 // 6. Let calendar be ? GetOption(options, "calendar", "string", undefined, undefined).
359 JSHandle<JSTaggedValue> calendar =
363 dateTimeFormat->SetCalendar(thread, calendar);
365 // 7. If calendar is not undefined, then
366 // a. If calendar does not match the Unicode Locale Identifier type nonterminal, throw a RangeError exception.
368 if (!calendar->IsUndefined()) {
369 JSHandle<EcmaString> calendarEcmaStr = JSHandle<EcmaString>::Cast(calendar);
372 THROW_RANGE_ERROR_AND_RETURN(thread, "invalid calendar", dateTimeFormat);
435 // Set icuLocale.[[ca]] to calendar.
438 if (!calendar->IsUndefined() && JSLocale::IsWellCalendar(icuLocale, calendarStr)) {
634 ASSERT_PRINT(calendarPtr != nullptr, "invalid calendar");
660 bool iso8601 = strstr(icuLocale.getName(), "calendar=iso8601") != nullptr;
1097 // [[Calendar]] "calendar"
1124 const icu::Calendar *calendar = icuSimpleDateFormat->getCalendar();
1125 std::string icuCalendar = calendar->getType();
1150 const icu::TimeZone &icuTZ = calendar->getTimeZone();
1318 const char *key = "calendar";
1536 std::unique_ptr<icu::Calendar> calendar(icu::Calendar::createInstance(timeZone, locale, status));
1537 if (U_FAILURE(status) || calendar == nullptr) {
1541 ASSERT_PRINT(calendar.get() != nullptr, "calendar is nullptr");
1552 if (calendar->getDynamicClassID() == icu::GregorianCalendar::getStaticClassID()) {
1553 auto gregorianCalendar = static_cast<icu::GregorianCalendar *>(calendar.get());
1559 return calendar;