File indexing completed on 2023-10-03 03:16:29
0001 /* This file is part of the KDE libraries 0002 Copyright (C) 1999 Ian Zepp (icszepp@islc.net) 0003 Copyright (C) 2000 Rik Hemsley (rikkus) <rik@kde.org> 0004 Copyright (C) 2006 by Dominic Battre <dominic@battre.de> 0005 Copyright (C) 2006 by Martin Pool <mbp@canonical.com> 0006 0007 This library is free software; you can redistribute it and/or 0008 modify it under the terms of the GNU Library General Public 0009 License version 2 as published by the Free Software Foundation. 0010 0011 This library is distributed in the hope that it will be useful, 0012 but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0014 Library General Public License for more details. 0015 0016 You should have received a copy of the GNU Library General Public License 0017 along with this library; see the file COPYING.LIB. If not, write to 0018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0019 Boston, MA 02110-1301, USA. 0020 */ 0021 0022 #ifndef KSTRINGHANDLER_DEPRECATED_H 0023 #define KSTRINGHANDLER_DEPRECATED_H 0024 0025 #include <QString> 0026 #include <kdelibs4support_export.h> 0027 0028 namespace KStringHandler 0029 { 0030 0031 /** 0032 Does a natural comparing of the strings. A negative value is returned if \a a 0033 is smaller than \a b. A positive value is returned if \a a is greater than \a b. 0 0034 is returned if both values are equal. 0035 0036 @param a first string to compare 0037 @param b second string to compare 0038 @param caseSensitivity whether to use case sensitive compare or not 0039 0040 @since 4.1 0041 @deprecated Should use QCollator instead 0042 */ 0043 KDELIBS4SUPPORT_DEPRECATED_EXPORT int naturalCompare(const QString &a, const QString &b, Qt::CaseSensitivity caseSensitivity = Qt::CaseSensitive); 0044 } 0045 0046 #endif