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

Function reprocess

launcher/LoggedProcess.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

on_stdErrMethod · 0.85
on_stdOutMethod · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected