Changeset View
Changeset View
Standalone View
Standalone View
src/parsers/qcalendarsystem.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 2014 John Layt <john@layt.net> | 4 | SPDX-FileCopyrightText: 2014 John Layt <john@layt.net> | ||
5 | 5 | | |||
6 | This library is free software; you can redistribute it and/or | 6 | SPDX-License-Identifier: LGPL-2.0-or-later | ||
7 | modify it under the terms of the GNU Library General Public | | |||
8 | License as published by the Free Software Foundation; either | | |||
9 | version 2 of the License, or (at your option) any later version. | | |||
10 | | ||||
11 | This library is distributed in the hope that it will be useful, | | |||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | | |||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | |||
14 | GNU Library General Public License for more details. | | |||
15 | | ||||
16 | You should have received a copy of the GNU Library General Public License | | |||
17 | along with this library; see the file COPYING.LIB. If not, write to the | | |||
18 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | | |||
19 | Boston, MA 02110-1301, USA. | | |||
20 | */ | 7 | */ | ||
21 | 8 | | |||
22 | #include "qcalendarsystem_p.h" | 9 | #include "qcalendarsystem_p.h" | ||
23 | 10 | | |||
24 | #include <QDate> | 11 | #include <QDate> | ||
25 | #include <QSharedData> | 12 | #include <QSharedData> | ||
26 | 13 | | |||
27 | #include "qdebug.h" | 14 | #include "qdebug.h" | ||
▲ Show 20 Lines • Show All 810 Lines • ▼ Show 20 Line(s) | 822 | if (isValid(date)) { | |||
838 | return weekNumber(year, month, day, yearNum); | 825 | return weekNumber(year, month, day, yearNum); | ||
839 | } else { | 826 | } else { | ||
840 | return 0; | 827 | return 0; | ||
841 | } | 828 | } | ||
842 | } | 829 | } | ||
843 | 830 | | |||
844 | /* | 831 | /* | ||
845 | \legalese | 832 | \legalese | ||
846 | Copyright (c) 1989 The Regents of the University of California. | 833 | SPDX-FileCopyrightText: 1989 The Regents of the University of California . | ||
krop: also looks wrong | |||||
I did them intense code-digging and found the source of this snippet cordlandwehr: I did them intense code-digging and found the source of this snippet | |||||
847 | All rights reserved. | 834 | All rights reserved. | ||
848 | 835 | | |||
849 | Redistribution and use in source and binary forms are permitted | 836 | Redistribution and use in source and binary forms are permitted | ||
850 | provided that the above copyright notice and this paragraph are | 837 | provided that the above copyright notice and this paragraph are | ||
851 | duplicated in all such forms and that any documentation, | 838 | duplicated in all such forms and that any documentation, | ||
852 | advertising materials, and other materials related to such | 839 | advertising materials, and other materials related to such | ||
853 | distribution and use acknowledge that the software was developed | 840 | distribution and use acknowledge that the software was developed | ||
854 | by the University of California, Berkeley. The name of the | 841 | by the University of California, Berkeley. The name of the | ||
▲ Show 20 Lines • Show All 417 Lines • Show Last 20 Lines |
also looks wrong