diff options
Diffstat (limited to 'src/Util.hpp')
| l---------[-rw-r--r--] | src/Util.hpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/Util.hpp b/src/Util.hpp index f90e108..bcc063c 100644..120000 --- a/src/Util.hpp +++ b/src/Util.hpp @@ -1,18 +1 @@ -#pragma once - -#include <QString> -#include <QMap> - -namespace Util { - static const QMap<QChar, QChar> unescapeChars { - {'n', '\n'}, - }; - - QString trimQuotes(QString string, bool& trimmed); - QString unescape(const QString& string, const QChar escapeChar = '\\'); - QString escape(const QString& string, const QChar escapeChar = '\\', const QString& escapeChars = ""); - QString joinEscape(const QStringList& list, const QChar joinChar, const QChar escapeChar = '\\'); - QStringList splitEscaped(const QString& joined, const QChar splitChar, const QChar escapeChar = '\\'); - QString& unescapeClonkString(QString&& string); - int indexOfEscaped(const QString& string, const QChar subject, int startPos = 0, const QChar escapeChar = '\\'); -} +qt-config/Util.hpp
\ No newline at end of file |
