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  ICU4XDangiCalendar.h

  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/. */

#ifndef intl_components_calendar_ICU4XDangiCalendar_h_
#define intl_components_calendar_ICU4XDangiCalendar_h_

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

#include <stdint.h>
#include <string_view>

#include "unicode/uobject.h"

namespace mozilla::intl::calendar {

/**
 * Dangi (traditional Korean) calendar implementation.
 *
 * Overrides the same methods as icu::DangiCalendar to ensure compatible
 * behavior even when using ICU4X as the underlying calendar implementation.
 */

class ICU4XDangiCalendar : public ICU4XChineseBasedCalendar {
 public:
  ICU4XDangiCalendar() = delete;
  ICU4XDangiCalendar(const icu::Locale& locale, UErrorCode& success);
  ICU4XDangiCalendar(const icu::TimeZone& timeZone, const icu::Locale& locale,
                     UErrorCode& success);
  ICU4XDangiCalendar(const ICU4XDangiCalendar& other);

  virtual ~ICU4XDangiCalendar();

  ICU4XDangiCalendar* clone() const override;

  const char* getType() const override;

 protected:
  std::string_view eraName(int32_t extendedYear) const override;

 public:
  UClassID getDynamicClassID() const override;
  static UClassID U_EXPORT2 getStaticClassID();

 protected:
  DECLARE_OVERRIDE_SYSTEM_DEFAULT_CENTURY

  struct SystemDefaultCenturyLocale {
    static inline const char* identifier = "@calendar=dangi";
  };
  static inline SystemDefaultCentury<ICU4XDangiCalendar,
                                     SystemDefaultCenturyLocale>
      defaultCentury_{};
};

}  // namespace mozilla::intl::calendar

#endif

Messung V0.5 in Prozent
C=95 H=98 G=96

¤ 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.