Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/intl/components/src/calendar/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  ICU4XChineseCalendar.cpp

  Sprache: C
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#include "mozilla/intl/calendar/ICU4XChineseCalendar.h"

namespace mozilla::intl::calendar {

ICU4XChineseCalendar::ICU4XChineseCalendar(const icu::Locale& locale,
                                           UErrorCode& success)
    : ICU4XChineseBasedCalendar(icu4x::capi::CalendarKind_Chinese, locale,
                                success) {}

ICU4XChineseCalendar::ICU4XChineseCalendar(const icu::TimeZone& timeZone,
                                           const icu::Locale& locale,
                                           UErrorCode& success)
    : ICU4XChineseBasedCalendar(icu4x::capi::CalendarKind_Chinese, timeZone,
                                locale, success) {}

ICU4XChineseCalendar::ICU4XChineseCalendar(const ICU4XChineseCalendar& other) =
    default;

ICU4XChineseCalendar::~ICU4XChineseCalendar() = default;

ICU4XChineseCalendar* ICU4XChineseCalendar::clone() const {
  return new ICU4XChineseCalendar(*this);
}

const char* ICU4XChineseCalendar::getType() const { return "chinese"; }

////////////////////////////////////////////
// ICU4XCalendar implementation overrides //
////////////////////////////////////////////

std::string_view ICU4XChineseCalendar::eraName(int32_t extendedYear) const {
  return "";
}

////////////////////////////////////////////
// icu::Calendar implementation overrides //
////////////////////////////////////////////

UDate ICU4XChineseCalendar::defaultCenturyStart() const {
  return defaultCentury_.start();
}

int32_t ICU4XChineseCalendar::defaultCenturyStartYear() const {
  return defaultCentury_.startYear();
}

UBool ICU4XChineseCalendar::haveDefaultCentury() const { return true; }

UOBJECT_DEFINE_RTTI_IMPLEMENTATION(ICU4XChineseCalendar)

}  // namespace mozilla::intl::calendar

Messung V0.5 in Prozent
C=91 H=98 G=94

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.