diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2016-03-31 19:38:49 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2016-03-31 19:46:33 +0200 |
| commit | 135eeef23be2372bd1821d19d17bfcd187b2da05 (patch) | |
| tree | 1fb178138e8f39d6684abf6268ce3c6e5610790f /src/Util.hpp | |
| parent | bb5431ba4d88018275d459b16dfdc129ab133b45 (diff) | |
| download | manager-135eeef23be2372bd1821d19d17bfcd187b2da05.tar.gz manager-135eeef23be2372bd1821d19d17bfcd187b2da05.zip | |
Move ConfigBase and Util into a separate qt-config repo for reuse
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 |
