File indexing completed on 2024-04-21 14:55:26

0001 /*  -*- c++ -*-
0002     Copyright (c) 2005 Ingo Kloecker <kloecker@kde.org>
0003 
0004     This library is free software; you can redistribute it and/or
0005     modify it under the terms of the GNU Library General Public
0006     License as published by the Free Software Foundation; either
0007     version 2 of the License, or (at your option) any later version.
0008 
0009     This library is distributed in the hope that it will be useful,
0010     but WITHOUT ANY WARRANTY; without even the implied warranty of
0011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012     Library General Public License for more details.
0013 
0014     You should have received a copy of the GNU Library General Public License
0015     along with this library; see the file COPYING.LIB.  If not, write to
0016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0017     Boston, MA 02110-1301, USA.
0018 */
0019 
0020 #ifndef KASCII_H
0021 #define KASCII_H
0022 
0023 #include <kdelibs4support_export.h>
0024 
0025 /**
0026  * Locale-independent qstricmp. Use this for comparing ascii keywords
0027  * in a case-insensitive way.
0028  * qstricmp failed in Qt3 with e.g. the Turkish locale where 'I'.toLower() != 'i'
0029  * This is fixed in Qt4/Qt5.
0030  * @deprecated use qstricmp
0031  */
0032 KDELIBS4SUPPORT_DEPRECATED_EXPORT int kasciistricmp(const char *str1, const char *str2);
0033 
0034 /**
0035   Locale-independent function to convert ASCII strings to lower case ASCII
0036   strings. This means that it affects @em only the ASCII characters A-Z.
0037 
0038   @param str  pointer to the string which should be converted to lower case
0039   @return     pointer to the converted string (same as @a str)
0040   @deprecated use QChar::toLower or QByteArray::toLower
0041 */
0042 KDELIBS4SUPPORT_DEPRECATED_EXPORT char *kAsciiToLower(char *str);
0043 
0044 /**
0045   Locale-independent function to convert ASCII strings to upper case ASCII
0046   strings. This means that it affects @em only the ASCII characters a-z.
0047 
0048   @param str  pointer to the string which should be converted to upper case
0049   @return     pointer to the converted string (same as @a str)
0050   @deprecated use QChar::toUpper or QByteArray::toUpper
0051 */
0052 KDELIBS4SUPPORT_DEPRECATED_EXPORT char *kAsciiToUpper(char *str);
0053 
0054 #endif