MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / unquote

Function unquote

launcher/settings/INIFile.cpp:103–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103QString unquote(QString str)
104{
105 if ((str.contains(QChar(';')) || str.contains(QChar('=')) || str.contains(QChar(','))) && str.endsWith("\"") && str.startsWith("\"")) {
106#if QT_VERSION < QT_VERSION_CHECK(6, 5, 0)
107 str = str.remove(0, 1);
108 str = str.remove(str.size() - 1, 1);
109#else
110 str = str.removeFirst().removeLast();
111#endif
112 }
113 return str;
114}
115
116bool parseOldFileFormat(QIODevice& device, QSettings::SettingsMap& map)
117{

Callers 2

parseOldFileFormatFunction · 0.85
loadFileMethod · 0.85

Calls 3

containsMethod · 0.45
removeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected