From 135eeef23be2372bd1821d19d17bfcd187b2da05 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Thu, 31 Mar 2016 19:38:49 +0200 Subject: Move ConfigBase and Util into a separate qt-config repo for reuse --- src/Util.hpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) mode change 100644 => 120000 src/Util.hpp (limited to 'src/Util.hpp') diff --git a/src/Util.hpp b/src/Util.hpp deleted file mode 100644 index f90e108..0000000 --- a/src/Util.hpp +++ /dev/null @@ -1,18 +0,0 @@ -#pragma once - -#include -#include - -namespace Util { - static const QMap 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 = '\\'); -} diff --git a/src/Util.hpp b/src/Util.hpp new file mode 120000 index 0000000..bcc063c --- /dev/null +++ b/src/Util.hpp @@ -0,0 +1 @@ +qt-config/Util.hpp \ No newline at end of file -- cgit v1.2.3-54-g00ecf