diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-01-30 10:15:46 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-02-17 14:55:42 +0100 |
commit | c8e00e4f7333ada3cd47282efc3c47eee32e7160 (patch) | |
tree | dcf28a5aca563c5e8853838b885d6a9cdb27f3b8 /src/corelib/time | |
parent | ed2b110b6add650954dc102a0317c14ff826c677 (diff) |
Use char16_t in favor of ushort for locale data tables
Change-Id: I890dd2b52c1b786db1081744c8ca343baba93de4
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/time')
-rw-r--r-- | src/corelib/time/qcalendarbackend_p.h | 2 | ||||
-rw-r--r-- | src/corelib/time/qhijricalendar.cpp | 4 | ||||
-rw-r--r-- | src/corelib/time/qhijricalendar_data_p.h | 4 | ||||
-rw-r--r-- | src/corelib/time/qhijricalendar_p.h | 4 | ||||
-rw-r--r-- | src/corelib/time/qjalalicalendar.cpp | 4 | ||||
-rw-r--r-- | src/corelib/time/qjalalicalendar_data_p.h | 4 | ||||
-rw-r--r-- | src/corelib/time/qjalalicalendar_p.h | 4 | ||||
-rw-r--r-- | src/corelib/time/qromancalendar.cpp | 4 | ||||
-rw-r--r-- | src/corelib/time/qromancalendar_data_p.h | 4 | ||||
-rw-r--r-- | src/corelib/time/qromancalendar_p.h | 4 |
10 files changed, 19 insertions, 19 deletions
diff --git a/src/corelib/time/qcalendarbackend_p.h b/src/corelib/time/qcalendarbackend_p.h index 24dd08873d..ea837a4804 100644 --- a/src/corelib/time/qcalendarbackend_p.h +++ b/src/corelib/time/qcalendarbackend_p.h @@ -137,7 +137,7 @@ protected: // Locale support: virtual const QCalendarLocale *localeMonthIndexData() const = 0; - virtual const ushort *localeMonthData() const = 0; + virtual const char16_t *localeMonthData() const = 0; bool registerAlias(const QString &name); diff --git a/src/corelib/time/qhijricalendar.cpp b/src/corelib/time/qhijricalendar.cpp index b5d89fbc5c..c0f7662c0d 100644 --- a/src/corelib/time/qhijricalendar.cpp +++ b/src/corelib/time/qhijricalendar.cpp @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2019 The Qt Company Ltd. +** Copyright (C) 2020 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtCore module of the Qt Toolkit. @@ -118,7 +118,7 @@ const QCalendarLocale *QHijriCalendar::localeMonthIndexData() const return locale_data; } -const ushort *QHijriCalendar::localeMonthData() const +const char16_t *QHijriCalendar::localeMonthData() const { return months_data; } diff --git a/src/corelib/time/qhijricalendar_data_p.h b/src/corelib/time/qhijricalendar_data_p.h index a05a9aadae..2708db66be 100644 --- a/src/corelib/time/qhijricalendar_data_p.h +++ b/src/corelib/time/qhijricalendar_data_p.h @@ -59,7 +59,7 @@ QT_BEGIN_NAMESPACE // GENERATED PART STARTS HERE /* - This part of the file was generated on 2020-01-28 from the + This part of the file was generated on 2020-01-30 from the Common Locale Data Repository v36 http://www.unicode.org/cldr/ @@ -668,7 +668,7 @@ static const QCalendarLocale locale_data[] = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },// trailing zeros }; -static const ushort months_data[] = { +static const char16_t months_data[] = { 0x4d, 0x75, 0x68, 0x61, 0x72, 0x72, 0x61, 0x6d, 0x3b, 0x53, 0x61, 0x66, 0x61, 0x72, 0x3b, 0x52, 0x61, 0x62, 0x69, 0x2bb, 0x20, 0x49, 0x3b, 0x52, 0x61, 0x62, 0x69, 0x2bb, 0x20, 0x49, 0x49, 0x3b, 0x4a, 0x75, 0x6d, 0x61, 0x64, 0x61, 0x20, 0x49, 0x3b, 0x4a, 0x75, 0x6d, 0x61, 0x64, 0x61, 0x20, 0x49, 0x49, 0x3b, 0x52, 0x61, 0x6a, 0x61, 0x62, 0x3b, 0x53, 0x68, 0x61, diff --git a/src/corelib/time/qhijricalendar_p.h b/src/corelib/time/qhijricalendar_p.h index 60820488b4..abe2ade3e8 100644 --- a/src/corelib/time/qhijricalendar_p.h +++ b/src/corelib/time/qhijricalendar_p.h @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2019 The Qt Company Ltd. +** Copyright (C) 2020 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtCore module of the Qt Toolkit. @@ -72,7 +72,7 @@ public: protected: const QCalendarLocale *localeMonthIndexData() const override; - const ushort *localeMonthData() const override; + const char16_t *localeMonthData() const override; // (The INTEGRITY compiler got upset at: using QCalendarBackend:QCalendarBackend;) QHijriCalendar(const QString &name, QCalendar::System id = QCalendar::System::User) : QCalendarBackend(name, id) {} diff --git a/src/corelib/time/qjalalicalendar.cpp b/src/corelib/time/qjalalicalendar.cpp index be9246d7db..17588aff6c 100644 --- a/src/corelib/time/qjalalicalendar.cpp +++ b/src/corelib/time/qjalalicalendar.cpp @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2018 The Qt Company Ltd. +** Copyright (C) 2020 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtCore module of the Qt Toolkit. @@ -204,7 +204,7 @@ const QCalendarLocale *QJalaliCalendar::localeMonthIndexData() const return locale_data; } -const ushort *QJalaliCalendar::localeMonthData() const +const char16_t *QJalaliCalendar::localeMonthData() const { return months_data; } diff --git a/src/corelib/time/qjalalicalendar_data_p.h b/src/corelib/time/qjalalicalendar_data_p.h index 951890a79b..cc0d23da1f 100644 --- a/src/corelib/time/qjalalicalendar_data_p.h +++ b/src/corelib/time/qjalalicalendar_data_p.h @@ -59,7 +59,7 @@ QT_BEGIN_NAMESPACE // GENERATED PART STARTS HERE /* - This part of the file was generated on 2020-01-28 from the + This part of the file was generated on 2020-01-30 from the Common Locale Data Repository v36 http://www.unicode.org/cldr/ @@ -668,7 +668,7 @@ static const QCalendarLocale locale_data[] = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },// trailing zeros }; -static const ushort months_data[] = { +static const char16_t months_data[] = { 0x46, 0x61, 0x72, 0x76, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x3b, 0x4f, 0x72, 0x64, 0x69, 0x62, 0x65, 0x68, 0x65, 0x73, 0x68, 0x74, 0x3b, 0x4b, 0x68, 0x6f, 0x72, 0x64, 0x61, 0x64, 0x3b, 0x54, 0x69, 0x72, 0x3b, 0x4d, 0x6f, 0x72, 0x64, 0x61, 0x64, 0x3b, 0x53, 0x68, 0x61, 0x68, 0x72, 0x69, 0x76, 0x61, 0x72, 0x3b, 0x4d, 0x65, 0x68, 0x72, 0x3b, 0x41, 0x62, 0x61, 0x6e, diff --git a/src/corelib/time/qjalalicalendar_p.h b/src/corelib/time/qjalalicalendar_p.h index 5b94dada9f..77b87a36b3 100644 --- a/src/corelib/time/qjalalicalendar_p.h +++ b/src/corelib/time/qjalalicalendar_p.h @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2018 The Qt Company Ltd. +** Copyright (C) 2020 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtCore module of the Qt Toolkit. @@ -78,7 +78,7 @@ public: protected: // locale support: const QCalendarLocale *localeMonthIndexData() const override; - const ushort *localeMonthData() const override; + const char16_t *localeMonthData() const override; }; QT_END_NAMESPACE diff --git a/src/corelib/time/qromancalendar.cpp b/src/corelib/time/qromancalendar.cpp index c3cd134490..98b53eb9cf 100644 --- a/src/corelib/time/qromancalendar.cpp +++ b/src/corelib/time/qromancalendar.cpp @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2019 The Qt Company Ltd. +** Copyright (C) 2020 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtCore module of the Qt Toolkit. @@ -97,7 +97,7 @@ const QCalendarLocale *QRomanCalendar::localeMonthIndexData() const return locale_data; } -const ushort *QRomanCalendar::localeMonthData() const +const char16_t *QRomanCalendar::localeMonthData() const { return months_data; } diff --git a/src/corelib/time/qromancalendar_data_p.h b/src/corelib/time/qromancalendar_data_p.h index ff1d840f51..94b8fe0d18 100644 --- a/src/corelib/time/qromancalendar_data_p.h +++ b/src/corelib/time/qromancalendar_data_p.h @@ -59,7 +59,7 @@ QT_BEGIN_NAMESPACE // GENERATED PART STARTS HERE /* - This part of the file was generated on 2020-01-28 from the + This part of the file was generated on 2020-01-30 from the Common Locale Data Repository v36 http://www.unicode.org/cldr/ @@ -668,7 +668,7 @@ static const QCalendarLocale locale_data[] = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },// trailing zeros }; -static const ushort months_data[] = { +static const char16_t months_data[] = { 0x4a, 0x61, 0x6e, 0x75, 0x61, 0x72, 0x79, 0x3b, 0x46, 0x65, 0x62, 0x72, 0x75, 0x61, 0x72, 0x79, 0x3b, 0x4d, 0x61, 0x72, 0x63, 0x68, 0x3b, 0x41, 0x70, 0x72, 0x69, 0x6c, 0x3b, 0x4d, 0x61, 0x79, 0x3b, 0x4a, 0x75, 0x6e, 0x65, 0x3b, 0x4a, 0x75, 0x6c, 0x79, 0x3b, 0x41, 0x75, 0x67, 0x75, 0x73, 0x74, 0x3b, 0x53, 0x65, 0x70, 0x74, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x3b, diff --git a/src/corelib/time/qromancalendar_p.h b/src/corelib/time/qromancalendar_p.h index 49efb3df89..4ba699ffa6 100644 --- a/src/corelib/time/qromancalendar_p.h +++ b/src/corelib/time/qromancalendar_p.h @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2019 The Qt Company Ltd. +** Copyright (C) 2020 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtCore module of the Qt Toolkit. @@ -68,7 +68,7 @@ public: protected: // locale support: const QCalendarLocale *localeMonthIndexData() const override; - const ushort *localeMonthData() const override; + const char16_t *localeMonthData() const override; // (The INTEGRITY compiler got upset at: using QCalendarBackend:QCalendarBackend;) QRomanCalendar(const QString &name, QCalendar::System id = QCalendar::System::User) : QCalendarBackend(name, id) {} |