aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/icu/i18n/dtrule.cpp
diff options
context:
space:
mode:
authorneksard <neksard@yandex-team.ru>2022-02-10 16:45:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:23 +0300
commit8f7cf138264e0caa318144bf8a2c950e0b0a8593 (patch)
tree83bf5c8c8047c42d8475e6095df90ccdc3d1b57f /contrib/libs/icu/i18n/dtrule.cpp
parentd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (diff)
downloadydb-8f7cf138264e0caa318144bf8a2c950e0b0a8593.tar.gz
Restoring authorship annotation for <neksard@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/icu/i18n/dtrule.cpp')
-rw-r--r--contrib/libs/icu/i18n/dtrule.cpp280
1 files changed, 140 insertions, 140 deletions
diff --git a/contrib/libs/icu/i18n/dtrule.cpp b/contrib/libs/icu/i18n/dtrule.cpp
index 6847f1d16e..40793c06f7 100644
--- a/contrib/libs/icu/i18n/dtrule.cpp
+++ b/contrib/libs/icu/i18n/dtrule.cpp
@@ -1,141 +1,141 @@
// © 2016 and later: Unicode, Inc. and others.
-// License & terms of use: http://www.unicode.org/copyright.html
-/*
-*******************************************************************************
-* Copyright (C) 2007-2012, International Business Machines Corporation and
-* others. All Rights Reserved.
-*******************************************************************************
-*/
-
-#include "utypeinfo.h" // for 'typeid' to work
-
-#include "unicode/utypes.h"
-
-#if !UCONFIG_NO_FORMATTING
-
-#include "unicode/dtrule.h"
-
-U_NAMESPACE_BEGIN
-
-UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateTimeRule)
-
-DateTimeRule::DateTimeRule(int32_t month,
- int32_t dayOfMonth,
- int32_t millisInDay,
- TimeRuleType timeType)
-: fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(0), fWeekInMonth(0), fMillisInDay(millisInDay),
- fDateRuleType(DateTimeRule::DOM), fTimeRuleType(timeType) {
-}
-
-DateTimeRule::DateTimeRule(int32_t month,
- int32_t weekInMonth,
- int32_t dayOfWeek,
- int32_t millisInDay,
- TimeRuleType timeType)
-: fMonth(month), fDayOfMonth(0), fDayOfWeek(dayOfWeek), fWeekInMonth(weekInMonth), fMillisInDay(millisInDay),
- fDateRuleType(DateTimeRule::DOW), fTimeRuleType(timeType) {
-}
-
-DateTimeRule::DateTimeRule(int32_t month,
- int32_t dayOfMonth,
- int32_t dayOfWeek,
- UBool after,
- int32_t millisInDay,
- TimeRuleType timeType)
-: UObject(),
- fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(dayOfWeek), fWeekInMonth(0), fMillisInDay(millisInDay),
- fTimeRuleType(timeType) {
- if (after) {
- fDateRuleType = DateTimeRule::DOW_GEQ_DOM;
- } else {
- fDateRuleType = DateTimeRule::DOW_LEQ_DOM;
- }
-}
-
-DateTimeRule::DateTimeRule(const DateTimeRule& source)
-: UObject(source),
- fMonth(source.fMonth), fDayOfMonth(source.fDayOfMonth), fDayOfWeek(source.fDayOfWeek),
- fWeekInMonth(source.fWeekInMonth), fMillisInDay(source.fMillisInDay),
- fDateRuleType(source.fDateRuleType), fTimeRuleType(source.fTimeRuleType) {
-}
-
-DateTimeRule::~DateTimeRule() {
-}
-
-DateTimeRule*
-DateTimeRule::clone() const {
- return new DateTimeRule(*this);
-}
-
-DateTimeRule&
-DateTimeRule::operator=(const DateTimeRule& right) {
- if (this != &right) {
- fMonth = right.fMonth;
- fDayOfMonth = right.fDayOfMonth;
- fDayOfWeek = right.fDayOfWeek;
- fWeekInMonth = right.fWeekInMonth;
- fMillisInDay = right.fMillisInDay;
- fDateRuleType = right.fDateRuleType;
- fTimeRuleType = right.fTimeRuleType;
- }
- return *this;
-}
-
-UBool
-DateTimeRule::operator==(const DateTimeRule& that) const {
- return ((this == &that) ||
- (typeid(*this) == typeid(that) &&
- fMonth == that.fMonth &&
- fDayOfMonth == that.fDayOfMonth &&
- fDayOfWeek == that.fDayOfWeek &&
- fWeekInMonth == that.fWeekInMonth &&
- fMillisInDay == that.fMillisInDay &&
- fDateRuleType == that.fDateRuleType &&
- fTimeRuleType == that.fTimeRuleType));
-}
-
-UBool
-DateTimeRule::operator!=(const DateTimeRule& that) const {
- return !operator==(that);
-}
-
-DateTimeRule::DateRuleType
-DateTimeRule::getDateRuleType(void) const {
- return fDateRuleType;
-}
-
-DateTimeRule::TimeRuleType
-DateTimeRule::getTimeRuleType(void) const {
- return fTimeRuleType;
-}
-
-int32_t
-DateTimeRule::getRuleMonth(void) const {
- return fMonth;
-}
-
-int32_t
-DateTimeRule::getRuleDayOfMonth(void) const {
- return fDayOfMonth;
-}
-
-int32_t
-DateTimeRule::getRuleDayOfWeek(void) const {
- return fDayOfWeek;
-}
-
-int32_t
-DateTimeRule::getRuleWeekInMonth(void) const {
- return fWeekInMonth;
-}
-
-int32_t
-DateTimeRule::getRuleMillisInDay(void) const {
- return fMillisInDay;
-}
-
-U_NAMESPACE_END
-
-#endif /* #if !UCONFIG_NO_FORMATTING */
-
-//eof
+// License & terms of use: http://www.unicode.org/copyright.html
+/*
+*******************************************************************************
+* Copyright (C) 2007-2012, International Business Machines Corporation and
+* others. All Rights Reserved.
+*******************************************************************************
+*/
+
+#include "utypeinfo.h" // for 'typeid' to work
+
+#include "unicode/utypes.h"
+
+#if !UCONFIG_NO_FORMATTING
+
+#include "unicode/dtrule.h"
+
+U_NAMESPACE_BEGIN
+
+UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateTimeRule)
+
+DateTimeRule::DateTimeRule(int32_t month,
+ int32_t dayOfMonth,
+ int32_t millisInDay,
+ TimeRuleType timeType)
+: fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(0), fWeekInMonth(0), fMillisInDay(millisInDay),
+ fDateRuleType(DateTimeRule::DOM), fTimeRuleType(timeType) {
+}
+
+DateTimeRule::DateTimeRule(int32_t month,
+ int32_t weekInMonth,
+ int32_t dayOfWeek,
+ int32_t millisInDay,
+ TimeRuleType timeType)
+: fMonth(month), fDayOfMonth(0), fDayOfWeek(dayOfWeek), fWeekInMonth(weekInMonth), fMillisInDay(millisInDay),
+ fDateRuleType(DateTimeRule::DOW), fTimeRuleType(timeType) {
+}
+
+DateTimeRule::DateTimeRule(int32_t month,
+ int32_t dayOfMonth,
+ int32_t dayOfWeek,
+ UBool after,
+ int32_t millisInDay,
+ TimeRuleType timeType)
+: UObject(),
+ fMonth(month), fDayOfMonth(dayOfMonth), fDayOfWeek(dayOfWeek), fWeekInMonth(0), fMillisInDay(millisInDay),
+ fTimeRuleType(timeType) {
+ if (after) {
+ fDateRuleType = DateTimeRule::DOW_GEQ_DOM;
+ } else {
+ fDateRuleType = DateTimeRule::DOW_LEQ_DOM;
+ }
+}
+
+DateTimeRule::DateTimeRule(const DateTimeRule& source)
+: UObject(source),
+ fMonth(source.fMonth), fDayOfMonth(source.fDayOfMonth), fDayOfWeek(source.fDayOfWeek),
+ fWeekInMonth(source.fWeekInMonth), fMillisInDay(source.fMillisInDay),
+ fDateRuleType(source.fDateRuleType), fTimeRuleType(source.fTimeRuleType) {
+}
+
+DateTimeRule::~DateTimeRule() {
+}
+
+DateTimeRule*
+DateTimeRule::clone() const {
+ return new DateTimeRule(*this);
+}
+
+DateTimeRule&
+DateTimeRule::operator=(const DateTimeRule& right) {
+ if (this != &right) {
+ fMonth = right.fMonth;
+ fDayOfMonth = right.fDayOfMonth;
+ fDayOfWeek = right.fDayOfWeek;
+ fWeekInMonth = right.fWeekInMonth;
+ fMillisInDay = right.fMillisInDay;
+ fDateRuleType = right.fDateRuleType;
+ fTimeRuleType = right.fTimeRuleType;
+ }
+ return *this;
+}
+
+UBool
+DateTimeRule::operator==(const DateTimeRule& that) const {
+ return ((this == &that) ||
+ (typeid(*this) == typeid(that) &&
+ fMonth == that.fMonth &&
+ fDayOfMonth == that.fDayOfMonth &&
+ fDayOfWeek == that.fDayOfWeek &&
+ fWeekInMonth == that.fWeekInMonth &&
+ fMillisInDay == that.fMillisInDay &&
+ fDateRuleType == that.fDateRuleType &&
+ fTimeRuleType == that.fTimeRuleType));
+}
+
+UBool
+DateTimeRule::operator!=(const DateTimeRule& that) const {
+ return !operator==(that);
+}
+
+DateTimeRule::DateRuleType
+DateTimeRule::getDateRuleType(void) const {
+ return fDateRuleType;
+}
+
+DateTimeRule::TimeRuleType
+DateTimeRule::getTimeRuleType(void) const {
+ return fTimeRuleType;
+}
+
+int32_t
+DateTimeRule::getRuleMonth(void) const {
+ return fMonth;
+}
+
+int32_t
+DateTimeRule::getRuleDayOfMonth(void) const {
+ return fDayOfMonth;
+}
+
+int32_t
+DateTimeRule::getRuleDayOfWeek(void) const {
+ return fDayOfWeek;
+}
+
+int32_t
+DateTimeRule::getRuleWeekInMonth(void) const {
+ return fWeekInMonth;
+}
+
+int32_t
+DateTimeRule::getRuleMillisInDay(void) const {
+ return fMillisInDay;
+}
+
+U_NAMESPACE_END
+
+#endif /* #if !UCONFIG_NO_FORMATTING */
+
+//eof