14#if U_SHOW_CPLUSPLUS_API
21#if !UCONFIG_NO_FORMATTING
91 DateTimeRule(int32_t month, int32_t weekInMonth, int32_t dayOfWeek,
216 int32_t fWeekInMonth;
217 int32_t fMillisInDay;
DateTimeRule * clone() const
Clone this DateTimeRule object polymorphically.
int32_t getRuleDayOfWeek(void) const
Gets the rule day of week.
TimeRuleType getTimeRuleType(void) const
Gets the time rule type.
DateRuleType
Date rule type constants.
@ DOW
The Nth occurrence of the day of week, for example, 2nd Sunday in March.
@ DOW_GEQ_DOM
The first occurrence of the day of week on or after the day of monnth, for example,...
@ DOW_LEQ_DOM
The last occurrence of the day of week on or before the day of month, for example,...
@ DOM
The exact day of month, for example, March 11.
bool operator==(const DateTimeRule &that) const
Return true if the given DateTimeRule objects are semantically equal.
int32_t getRuleWeekInMonth(void) const
Gets the ordinal number of the occurrence of the day of week in the month.
static UClassID getStaticClassID(void)
Return the class ID for this class.
DateTimeRule(const DateTimeRule &source)
Copy constructor.
DateTimeRule & operator=(const DateTimeRule &right)
Assignment operator.
int32_t getRuleMonth(void) const
Gets the rule month.
DateTimeRule(int32_t month, int32_t weekInMonth, int32_t dayOfWeek, int32_t millisInDay, TimeRuleType timeType)
Constructs a DateTimeRule by the day of week and its ordinal number and the time rule.
TimeRuleType
Time rule type constants.
@ STANDARD_TIME
The local standard time.
@ WALL_TIME
The local wall clock time.
virtual UClassID getDynamicClassID(void) const override
Returns a unique class ID POLYMORPHICALLY.
DateRuleType getDateRuleType(void) const
Gets the date rule type, such as DOM
bool operator!=(const DateTimeRule &that) const
Return true if the given DateTimeRule objects are semantically unequal.
~DateTimeRule()
Destructor.
int32_t getRuleMillisInDay(void) const
Gets the rule time in the rule day.
DateTimeRule(int32_t month, int32_t dayOfMonth, int32_t millisInDay, TimeRuleType timeType)
Constructs a DateTimeRule by the day of month and the time rule.
DateTimeRule(int32_t month, int32_t dayOfMonth, int32_t dayOfWeek, UBool after, int32_t millisInDay, TimeRuleType timeType)
Constructs a DateTimeRule by the first/last day of week on or after/before the day of month and the t...
int32_t getRuleDayOfMonth(void) const
Gets the rule day of month.
UObject is the common ICU "boilerplate" class.
int8_t UBool
The ICU boolean type, a signed-byte integer.
C++ API: Common ICU base class UObject.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Basic definitions for ICU, for both C and C++ APIs.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.