MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / reprocess

Function reprocess

launcher/LoggedProcess.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63QStringList reprocess(const QByteArray& data, QTextDecoder& decoder)
64{
65 auto str = decoder.toUnicode(data);
66#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
67 auto lines = str.remove(QChar::CarriageReturn).split(QChar::LineFeed, QString::SkipEmptyParts);
68#else
69 auto lines = str.remove(QChar::CarriageReturn).split(QChar::LineFeed, Qt::SkipEmptyParts);
70#endif
71 return lines;
72}
73
74void LoggedProcess::on_stdErr()
75{

Callers 2

on_stdErrMethod · 0.85
on_stdOutMethod · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected