2017-12-20 14:39:09 +01:00
|
|
|
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
2014-06-06 16:00:42 +02:00
|
|
|
*
|
2016-12-08 18:09:52 +01:00
|
|
|
* Copyright 2013-2016, Teo Mrnjavac <teo@kde.org>
|
2018-06-15 11:59:11 +02:00
|
|
|
* Copyright 2018, Adriaan de Groot <groot@kde.org>
|
2014-06-06 16:00:42 +02:00
|
|
|
*
|
|
|
|
* Originally from Tomahawk, portions:
|
|
|
|
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
|
|
|
* Copyright 2010-2011, Leo Franchi <lfranchi@kde.org>
|
|
|
|
* Copyright 2010-2012, Jeff Mitchell <jeff@tomahawk-player.org>
|
|
|
|
*
|
|
|
|
* Calamares is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Calamares is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2019-04-29 12:48:01 +02:00
|
|
|
#ifndef UTILS_STRING_H
|
|
|
|
#define UTILS_STRING_H
|
2014-06-06 16:00:42 +02:00
|
|
|
|
|
|
|
#include "DllMacro.h"
|
|
|
|
|
2019-04-29 12:48:01 +02:00
|
|
|
#include <QString>
|
2014-06-06 16:00:42 +02:00
|
|
|
|
2017-03-01 13:34:48 +01:00
|
|
|
/**
|
|
|
|
* @brief The CalamaresUtils namespace contains utility functions.
|
|
|
|
*/
|
2014-06-06 16:00:42 +02:00
|
|
|
namespace CalamaresUtils
|
|
|
|
{
|
2019-08-04 21:22:54 +02:00
|
|
|
/**
|
|
|
|
* @brief removeDiacritics replaces letters with diacritics and ligatures with
|
|
|
|
* alternative forms and digraphs.
|
|
|
|
* @param string the string to transform.
|
|
|
|
* @return the output string with plain characters.
|
|
|
|
*/
|
|
|
|
DLLEXPORT QString removeDiacritics( const QString& string );
|
2015-09-25 15:24:35 +02:00
|
|
|
|
2019-08-04 21:22:54 +02:00
|
|
|
/**
|
|
|
|
* @brief obscure is a bidirectional obfuscation function, from KStringHandler.
|
|
|
|
* @param string the input string.
|
|
|
|
* @return the obfuscated string.
|
|
|
|
*/
|
|
|
|
DLLEXPORT QString obscure( const QString& string );
|
|
|
|
} // namespace CalamaresUtils
|
2014-06-06 16:00:42 +02:00
|
|
|
|
2019-04-29 12:12:18 +02:00
|
|
|
#endif
|