// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright ( C ) 2003 - 2013 , International Business Machines Corporation and *
* others . All Rights Reserved . *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
#ifndef COPTCCAL_H
#define COPTCCAL_H
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
#include "unicode/calendar.h"
#include "cecal.h"
U_NAMESPACE_BEGIN
/**
* Implement the Coptic calendar system .
* @ internal
*/
class CopticCalendar : public CECalendar {
public:
/**
* Useful constants for CopticCalendar .
* @ internal
*/
enum EMonths {
/**
* Constant for & # x03c9 ; & # x03bf ; & # x03b3 ; & # x03c4 ; / & # x062a ; &pan># xfeee ; & # xfe97 ; ,
* the 1 st month of the Coptic year .
*/
TOUT,
/**
* Constant for & # x03a0 ; & # x03b1 ; & # x03bf ; & # x03c0 ; & # x03b9 ; / &pan># xfeea ; & # xfe91 ; & # xfe8e ; & # xfe91 ; ,
* the 2 nd month of the Coptic year .
*/
BABA,
/**
* Constant for & # x0391 ; & # x03b8 ; & # x03bf ; & # x03c1 ; / & # x0631 ; &pan># xfeee ; & # xfe97 ; & # xfe8e ; & # xfeeb ; ,
* the 3 rd month of the Coptic year .
*/
HATOR,
/**
* Constant for & # x03a7 ; & # x03bf ; & # x03b9 ; & # x03b1 ; & # x03ba ; / &pan># xfeda ; & # xfeec ; & # xfef4 ; & # xfedb ; ,
* the 4 th month of the Coptic year .
*/
KIAHK,
/**
* Constant for & # x03a4 ; & # x03c9 ; & # x03b2 ; & # x03b9 ; / & # x0637 ; &pan># xfeee ; & # xfe92 ; & # xfeeb ; ,
* the 5 th month of the Coptic year .
*/
TOBA,
/**
* Constant for & # x039c ; & # x03b5 ; & # x03e3 ; & # x03b9 ; & # x03c1 ; / &pan># xfeae ; & # xfef4 ; & # xfeb8 ; & # xfee3 ; & # x0623 ; ,
* the 6 th month of the Coptic year .
*/
AMSHIR,
/**
* Constant for & # x03a0 ; & # x03b1 ; & # x03c1 ; & # x03b5 ; & # x03bc ; &an># x03e9 ; & # x03b1 ; & # x03c4 ; / & # x062a ; & # xfe8e ; & # xfeec ; & ># xfee3 ; & # xfeae ; & # xfe91 ; ,
* the 7 th month of the Coptic year .
*/
BARAMHAT,
/**
* Constant for & # x03a6 ; & # x03b1 ; & # x03c1 ; & # x03bc ; & # x03bf ; &an># x03b8 ; & # x03b9 ; / & # x0647 ; & # x062f ; & # xfeee ; & # xfee3 ; & ># xfeae ; & # xfe91 ; ,
* the 8 th month of the Coptic year .
*/
BARAMOUDA,
/**
* Constant for & # x03a0 ; & # x03b1 ; & # x03e3 ; & # x03b1 ; & # x03bd ; / &pan># xfeb2 ; & # xfee8 ; & # xfeb8 ; & # xfe91 ; ,
* the 9 th month of the Coptic year .
*/
BASHANS,
/**
* Constant for & # x03a0 ; & # x03b1 ; & # x03c9 ; & # x03bd ; & # x03b9 ; / &pan># xfeea ; & # xfee7 ; & # x0624 ; & # xfeee ; & # xfe91 ; ,
* the 10 th month of the Coptic year .
*/
PAONA,
/**
* Constant for & # x0395 ; & # x03c0 ; & # x03b7 ; & # x03c0 ; / & # xfe90 ; &pan># xfef4 ; & # xfe91 ; & # x0623 ; ,
* the 11 th month of the Coptic year .
*/
EPEP,
/**
* Constant for & # x039c ; & # x03b5 ; & # x03f2 ; & # x03c9 ; & # x03c1 ; &an># x03b7 ; / & # x0649 ; & # xfeae ; & # xfeb4 ; & # xfee3 ; ,
* the 12 th month of the Coptic year .
*/
MESRA,
/**
* Constant for & # x03a0 ; & # x03b9 ; & # x03ba ; & # x03bf ; & # x03b3 ; &an># x03eb ; & # x03b9 ;
* & # x03bc ; & # x03b1 ; & # x03b2 ; & # x03bf ; & # x03c4 ; / & # xfeae ; &</span># xfef4 ; & # xfed0 ; & # xfebc ; & # xfedf ; & # x0627 ;
* & # xfeae ; & # xfeec ; & # xfeb8 ; & # xfedf ; & # x0627 ; ,
* the 13 th month of the Coptic year .
*/
NASIE
};
enum EEras {
BCE, // Before the epoch
CE // After the epoch
};
/**
* Constructs a CopticCalendar based on the current time in the default time zone
* with the given locale .
*
* @ param aLocale The given locale .
* @ param success Indicates the status of CopticCalendar object construction .
* Returns U_ZERO_ERROR if constructed successfully .
* @ internal
*/
CopticCalendar(const Locale& aLocale, UErrorCode& success);
/**
* Copy Constructor
* @ internal
*/
CopticCalendar (const CopticCalendar& other);
/**
* Destructor .
* @ internal
*/
virtual ~CopticCalendar();
/**
* Create and return a polymorphic copy of this calendar .
* @ return return a polymorphic copy of this calendar .
* @ internal
*/
virtual CopticCalendar* clone() const override;
/**
* return the calendar type , " coptic "
* @ return calendar type
* @ internal
*/
const char * getType() const override;
protected :
//-------------------------------------------------------------------------
// Calendar framework
//-------------------------------------------------------------------------
/**
* @ internal
*/
int32_t getRelatedYearDifference() const override;
/**
* Return the extended year defined by the current fields .
* @ internal
*/
virtual int32_t handleGetExtendedYear(UErrorCode& status) override;
/**
* Calculate the limit for a specified type of limit and field
* @ internal
*/
virtual int32_t handleGetLimit(UCalendarDateFields field, ELimitType limitType) const override;
DECLARE_OVERRIDE_SYSTEM_DEFAULT_CENTURY
/**
* Return the date offset from Julian
* @ internal
*/
int32_t getJDEpochOffset() const override;
/**
* Compute the era from extended year .
* @ internal
*/
int32_t extendedYearToEra(int32_t extendedYear) const override;
/**
* Compute the year from extended year .
* @ internal
*/
int32_t extendedYearToYear(int32_t extendedYear) const override;
public:
/**
* Override Calendar Returns a unique class ID POLYMORPHICALLY . Pure virtual
* override . This method is to implement a simple version of RTTI , since not all C + +
* compilers support genuine RTTI . Polymorphic operator = = ( ) and clone ( ) methods call
* this method .
*
* @ return The class ID for this object . All objects of a given class have the
* same class ID . Objects of other classes have different class IDs .
* @ internal
*/
virtual UClassID getDynamicClassID() const override;
/**
* Return the class ID for this class . This is useful only for comparing to a return
* value from getDynamicClassID ( ) . For example :
*
* Base * polymorphic_pointer = createPolymorphicObject ( ) ;
* if ( polymorphic_pointer - > getDynamicClassID ( ) = =
* Derived : : getStaticClassID ( ) ) . . .
*
* @ return The class ID for all objects of this class .
* @ internal
*/
U_I18N_API static UClassID U_EXPORT2 getStaticClassID();
};
U_NAMESPACE_END
#endif /* #if !UCONFIG_NO_FORMATTING */
#endif /* COPTCCAL_H */
//eof
Messung V0.5 in Prozent C=88 H=100 G=94
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-08-26)
¤
*© Formatika GbR, Deutschland