intl/icu/source/i18n/dangical.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /*
michael@0 2 *****************************************************************************
michael@0 3 * Copyright (C) 2013, International Business Machines Corporation
michael@0 4 * and others. All Rights Reserved.
michael@0 5 *****************************************************************************
michael@0 6 *
michael@0 7 * File DANGICAL.H
michael@0 8 *****************************************************************************
michael@0 9 */
michael@0 10
michael@0 11 #ifndef DANGICAL_H
michael@0 12 #define DANGICAL_H
michael@0 13
michael@0 14 #include "unicode/utypes.h"
michael@0 15
michael@0 16 #if !UCONFIG_NO_FORMATTING
michael@0 17
michael@0 18 #include "unicode/calendar.h"
michael@0 19 #include "unicode/timezone.h"
michael@0 20 #include "chnsecal.h"
michael@0 21
michael@0 22 U_NAMESPACE_BEGIN
michael@0 23
michael@0 24 /**
michael@0 25 * <p><code>DangiCalendar</code> is a concrete subclass of {@link Calendar}
michael@0 26 * that implements a traditional Korean lunisolar calendar.</p>
michael@0 27 *
michael@0 28 * <p>DangiCalendar usually should be instantiated using
michael@0 29 * {@link com.ibm.icu.util.Calendar#getInstance(ULocale)} passing in a <code>ULocale</code>
michael@0 30 * with the tag <code>"@calendar=dangi"</code>.</p>
michael@0 31 *
michael@0 32 * @internal
michael@0 33 */
michael@0 34 class DangiCalendar : public ChineseCalendar {
michael@0 35 public:
michael@0 36 //-------------------------------------------------------------------------
michael@0 37 // Constructors...
michael@0 38 //-------------------------------------------------------------------------
michael@0 39
michael@0 40 /**
michael@0 41 * Constructs a DangiCalendar based on the current time in the default time zone
michael@0 42 * with the given locale.
michael@0 43 *
michael@0 44 * @param aLocale The given locale.
michael@0 45 * @param success Indicates the status of DangiCalendar object construction.
michael@0 46 * Returns U_ZERO_ERROR if constructed successfully.
michael@0 47 * @internal
michael@0 48 */
michael@0 49 DangiCalendar(const Locale& aLocale, UErrorCode &success);
michael@0 50
michael@0 51 /**
michael@0 52 * Copy Constructor
michael@0 53 * @internal
michael@0 54 */
michael@0 55 DangiCalendar(const DangiCalendar& other);
michael@0 56
michael@0 57 /**
michael@0 58 * Destructor.
michael@0 59 * @internal
michael@0 60 */
michael@0 61 virtual ~DangiCalendar();
michael@0 62
michael@0 63 /**
michael@0 64 * Clone.
michael@0 65 * @internal
michael@0 66 */
michael@0 67 virtual Calendar* clone() const;
michael@0 68
michael@0 69 //----------------------------------------------------------------------
michael@0 70 // Internal methods & astronomical calculations
michael@0 71 //----------------------------------------------------------------------
michael@0 72
michael@0 73 private:
michael@0 74
michael@0 75 const TimeZone* getDangiCalZoneAstroCalc(void) const;
michael@0 76
michael@0 77 // UObject stuff
michael@0 78 public:
michael@0 79 /**
michael@0 80 * @return The class ID for this object. All objects of a given class have the
michael@0 81 * same class ID. Objects of other classes have different class IDs.
michael@0 82 * @internal
michael@0 83 */
michael@0 84 virtual UClassID getDynamicClassID(void) const;
michael@0 85
michael@0 86 /**
michael@0 87 * Return the class ID for this class. This is useful only for comparing to a return
michael@0 88 * value from getDynamicClassID(). For example:
michael@0 89 *
michael@0 90 * Base* polymorphic_pointer = createPolymorphicObject();
michael@0 91 * if (polymorphic_pointer->getDynamicClassID() ==
michael@0 92 * Derived::getStaticClassID()) ...
michael@0 93 *
michael@0 94 * @return The class ID for all objects of this class.
michael@0 95 * @internal
michael@0 96 */
michael@0 97 U_I18N_API static UClassID U_EXPORT2 getStaticClassID(void);
michael@0 98
michael@0 99 /**
michael@0 100 * return the calendar type, "dangi".
michael@0 101 *
michael@0 102 * @return calendar type
michael@0 103 * @internal
michael@0 104 */
michael@0 105 const char * getType() const;
michael@0 106
michael@0 107
michael@0 108 private:
michael@0 109
michael@0 110 DangiCalendar(); // default constructor not implemented
michael@0 111 };
michael@0 112
michael@0 113 U_NAMESPACE_END
michael@0 114
michael@0 115 #endif
michael@0 116 #endif
michael@0 117
michael@0 118
michael@0 119

mercurial