MCPcopy Create free account
hub / github.com/PrismLauncher/PrismLauncher / appendLine

Method appendLine

launcher/logs/LogParser.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using namespace Qt::Literals::StringLiterals;
26
27void LogParser::appendLine(QAnyStringView data)
28{
29 if (!m_partialData.isEmpty()) {
30 m_buffer = QString(m_partialData);
31 m_buffer.append("\n");
32 m_partialData.clear();
33 }
34 m_buffer.append(data.toString());
35}
36
37std::optional<LogParser::Error> LogParser::getError()
38{

Callers 2

parseXmlLogsMethod · 0.80
parseLinesFunction · 0.80

Calls 5

appendMethod · 0.80
QStringClass · 0.50
isEmptyMethod · 0.45
clearMethod · 0.45
toStringMethod · 0.45

Tested by 1

parseLinesFunction · 0.64