1 /* This file is part of the KDE libraries
2    Copyright (C) 1999 Ian Zepp (icszepp@islc.net)
3    Copyright (C) 2000 Rik Hemsley (rikkus) <rik@kde.org>
4    Copyright (C) 2006 by Dominic Battre <dominic@battre.de>
5    Copyright (C) 2006 by Martin Pool <mbp@canonical.com>
6 
7    This library is free software; you can redistribute it and/or
8    modify it under the terms of the GNU Library General Public
9    License version 2 as published by the Free Software Foundation.
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 GNU
14    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
18    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19    Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef KSTRINGHANDLER_DEPRECATED_H
23 #define KSTRINGHANDLER_DEPRECATED_H
24 
25 #include <QString>
26 #include <kdelibs4support_export.h>
27 
28 namespace KStringHandler
29 {
30 
31 /**
32   Does a natural comparing of the strings. A negative value is returned if \a a
33   is smaller than \a b. A positive value is returned if \a a is greater than \a b. 0
34   is returned if both values are equal.
35 
36   @param a first string to compare
37   @param b second string to compare
38   @param caseSensitivity whether to use case sensitive compare or not
39 
40   @since 4.1
41   @deprecated Should use QCollator instead
42  */
43 KDELIBS4SUPPORT_DEPRECATED_EXPORT int naturalCompare(const QString &a, const QString &b, Qt::CaseSensitivity caseSensitivity = Qt::CaseSensitive);
44 }
45 
46 #endif
47