Changeset View
Changeset View
Standalone View
Standalone View
src/holidayregion.cpp
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | This file is part of the kholidays library. | 2 | This file is part of the kholidays library. | ||
3 | 3 | | |||
4 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 4 | SPDX-FileCopyrightText: 2001 Cornelius Schumacher <schumacher@kde.org> | ||
5 | Copyright (c) 2004 Allen Winter <winter@kde.org> | 5 | SPDX-FileCopyrightText: 2004 Allen Winter <winter@kde.org> | ||
6 | Copyright (c) 2008 David Jarvie <djarvie@kde.org> | 6 | SPDX-FileCopyrightText: 2008 David Jarvie <djarvie@kde.org> | ||
7 | Copyright 2010 John Layt <john@layt.net> | 7 | SPDX-FileCopyrightText: 2010 John Layt <john@layt.net> | ||
8 | 8 | | |||
9 | The functions languageToCode(), codeToLanguage(), countryToCode() and codeToCounty() are | 9 | The functions languageToCode(), codeToLanguage(), countryToCode() and codeToCounty() are copyright by | ||
10 | Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). | 10 | SPDX-FileCopyrightText: 2014 Digia Plc and/or its subsidiary(-ies). | ||
11 | 11 | | |||
12 | This library is free software; you can redistribute it and/or | 12 | SPDX-License-Identifier: LGPL-2.0-or-later | ||
13 | modify it under the terms of the GNU Library General Public | | |||
14 | License as published by the Free Software Foundation; either | | |||
15 | version 2 of the License, or (at your option) any later version. | | |||
16 | | ||||
17 | This library is distributed in the hope that it will be useful, | | |||
18 | but WITHOUT ANY WARRANTY; without even the implied warranty of | | |||
19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | |||
20 | GNU Library General Public License for more details. | | |||
21 | | ||||
22 | You should have received a copy of the GNU Library General Public License | | |||
23 | along with this library; see the file COPYING.LIB. If not, write to the | | |||
24 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | | |||
25 | Boston, MA 02110-1301, USA. | | |||
26 | */ | 13 | */ | ||
27 | 14 | | |||
28 | #include "holidayregion.h" | 15 | #include "holidayregion.h" | ||
29 | 16 | | |||
30 | #include <QLocale> | 17 | #include <QLocale> | ||
31 | #include <QDirIterator> | 18 | #include <QDirIterator> | ||
32 | #include <QFile> | 19 | #include <QFile> | ||
33 | #include <QFileInfo> | 20 | #include <QFileInfo> | ||
34 | #include <QSharedData> | 21 | #include <QSharedData> | ||
35 | #include <QStandardPaths> | 22 | #include <QStandardPaths> | ||
36 | #include <QCoreApplication> | 23 | #include <QCoreApplication> | ||
37 | 24 | | |||
38 | #include "holiday_p.h" | 25 | #include "holiday_p.h" | ||
39 | #include "parsers/plan2/holidayparserdriverplan_p.h" | 26 | #include "parsers/plan2/holidayparserdriverplan_p.h" | ||
40 | 27 | | |||
41 | using namespace KHolidays; | 28 | using namespace KHolidays; | ||
42 | 29 | | |||
43 | // Copied from qlocale_data_p.h and qlocale.h | 30 | // Copied from qlocale_data_p.h and qlocale.h, see copyright information at top of file | ||
krop: I don't think it should be changed here | |||||
44 | // Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). | | |||
45 | // To later be replaced by OpenCodes or public Qt api | 31 | // To later be replaced by OpenCodes or public Qt api | ||
46 | static const unsigned char country_code_list[] = | 32 | static const unsigned char country_code_list[] = | ||
47 | "ZZ\0" // AnyCountry | 33 | "ZZ\0" // AnyCountry | ||
48 | "AF\0" // Afghanistan | 34 | "AF\0" // Afghanistan | ||
49 | "AL\0" // Albania | 35 | "AL\0" // Albania | ||
50 | "DZ\0" // Algeria | 36 | "DZ\0" // Algeria | ||
51 | "AS\0" // AmericanSamoa | 37 | "AS\0" // AmericanSamoa | ||
52 | "AD\0" // Andorra | 38 | "AD\0" // Andorra | ||
▲ Show 20 Lines • Show All 1151 Lines • Show Last 20 Lines |
I don't think it should be changed here