MCPcopy Create free account
hub / github.com/QNapi/qnapi / joinArguments

Method joinArguments

gui/src/qcumber/qmanagedrequest.cpp:89–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89QByteArray QManagedRequest::joinArguments(const QString& cmd,
90 const QStringList& l) {
91 QByteArray msg;
92
93 msg += cmd.toUtf8();
94
95 foreach (QString a, l) {
96 if (a.isEmpty()) continue;
97
98 if (a.contains(QRegExp("\\s"))) a = "\"" + a + "\"";
99
100 msg += " ";
101 msg += a.toUtf8();
102 }
103
104 return msg;
105}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected