MCPcopy Create free account
hub / github.com/MultiMC/Launcher / reprocess

Function reprocess

launcher/LoggedProcess.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23QStringList reprocess(const QByteArray & data, QString & leftover)
24{
25 QString str = leftover + QString::fromLocal8Bit(data);
26
27 str.remove('\r');
28 QStringList lines = str.split("\n");
29 leftover = lines.takeLast();
30 return lines;
31}
32
33void LoggedProcess::on_stdErr()
34{

Callers 2

on_stdErrMethod · 0.85
on_stdOutMethod · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected