Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  coptccal.h

  Sprache: C
 

// © 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 ωογτ/ت&pan>#xfeee;ﺗ,
         * the 1st month of the Coptic year. 
         */

        TOUT,
        
        /** 
         * Constant for Παοπι/&pan>#xfeea;ﺑﺎﺑ,
         * the 2nd month of the Coptic year. 
         */

        BABA,

        /** 
         * Constant for Αθορ/ر&pan>#xfeee;ﺗﺎﻫ,
         * the 3rd month of the Coptic year. 
         */

        HATOR,

        /** 
         * Constant for Χοιακ/&pan>#xfeda;ﻬﻴﻛ,
         * the 4th month of the Coptic year. 
         */

        KIAHK,

        /** 
         * Constant for Τωβι/ط&pan>#xfeee;ﺒﻫ,
         * the 5th month of the Coptic year. 
         */

        TOBA,

        /** 
         * Constant for Μεϣιρ/&pan>#xfeae;ﻴﺸﻣأ,
         * the 6th month of the Coptic year. 
         */

        AMSHIR,

        /** 
         * Constant for Παρεμ&an>#x03e9;ατ/تﺎﻬ&>#xfee3;ﺮﺑ,
         * the 7th month of the Coptic year. 
         */

        BARAMHAT,

        /** 
         * Constant for Φαρμο&an>#x03b8;ι/هدﻮﻣ&>#xfeae;ﺑ, 
         * the 8th month of the Coptic year. 
         */

        BARAMOUDA,

        /** 
         * Constant for Παϣαν/&pan>#xfeb2;ﻨﺸﺑ,
         * the 9th month of the Coptic year. 
         */

        BASHANS,

        /** 
         * Constant for Παωνι/&pan>#xfeea;ﻧؤﻮﺑ,
         * the 10th month of the Coptic year. 
         */

        PAONA,

        /** 
         * Constant for Επηπ/ﺐ&pan>#xfef4;ﺑأ,
         * the 11th month of the Coptic year. 
         */

        EPEP,

        /** 
         * Constant for Μεϲωρ&an>#x03b7;/ىﺮﺴﻣ,
         * the 12th month of the Coptic year. 
         */

        MESRA,

        /** 
         * Constant for Πικογ&an>#x03eb;ι
         * &#x03bc;&#x03b1;&#x03b2;&#x03bf;&#x03c4;/&#xfeae;&</span>#xfef4;&#xfed0;&#xfebc;&#xfedf;&#x0627;
         * &#xfeae;&#xfeec;&#xfeb8;&#xfedf;&#x0627;,
         * the 13th 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.7 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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=655579