1 /* -*- c++ -*- 2 Copyright (c) 2005 Ingo Kloecker <kloecker@kde.org> 3 4 This library is free software; you can redistribute it and/or 5 modify it under the terms of the GNU Library General Public 6 License as published by the Free Software Foundation; either 7 version 2 of the License, or (at your option) any later version. 8 9 This library is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 Library General Public License for more details. 13 14 You should have received a copy of the GNU Library General Public License 15 along with this library; see the file COPYING.LIB. If not, write to 16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef KASCII_H 21 #define KASCII_H 22 23 #include <kdelibs4support_export.h> 24 25 /** 26 * Locale-independent qstricmp. Use this for comparing ascii keywords 27 * in a case-insensitive way. 28 * qstricmp failed in Qt3 with e.g. the Turkish locale where 'I'.toLower() != 'i' 29 * This is fixed in Qt4/Qt5. 30 * @deprecated use qstricmp 31 */ 32 KDELIBS4SUPPORT_DEPRECATED_EXPORT int kasciistricmp(const char *str1, const char *str2); 33 34 /** 35 Locale-independent function to convert ASCII strings to lower case ASCII 36 strings. This means that it affects @em only the ASCII characters A-Z. 37 38 @param str pointer to the string which should be converted to lower case 39 @return pointer to the converted string (same as @a str) 40 @deprecated use QChar::toLower or QByteArray::toLower 41 */ 42 KDELIBS4SUPPORT_DEPRECATED_EXPORT char *kAsciiToLower(char *str); 43 44 /** 45 Locale-independent function to convert ASCII strings to upper case ASCII 46 strings. This means that it affects @em only the ASCII characters a-z. 47 48 @param str pointer to the string which should be converted to upper case 49 @return pointer to the converted string (same as @a str) 50 @deprecated use QChar::toUpper or QByteArray::toUpper 51 */ 52 KDELIBS4SUPPORT_DEPRECATED_EXPORT char *kAsciiToUpper(char *str); 53 54 #endif 55