MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / writeStringArray

Method writeStringArray

sources/tomlSerializer/TomlWriter.cpp:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void TomlWriter::writeStringArray(const QString &key, const QStringList &values)
93{
94 writeKeyPrefix(key);
95 m_out += QLatin1Char('[');
96 bool first = true;
97 for (const QString &v : values) {
98 if (!first)
99 m_out += QLatin1String(", ");
100 m_out += QLatin1Char('"');
101 m_out += escapeBasic(v);
102 m_out += QLatin1Char('"');
103 first = false;
104 }
105 m_out += QLatin1String("]\n");
106}
107
108void TomlWriter::writeJsonPrimitives(const QJsonObject &obj)
109{

Callers 2

writeLaunchBlockMethod · 0.80
saveMethod · 0.80

Calls 1

escapeBasicFunction · 0.85

Tested by

no test coverage detected