MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / splitLines

Function splitLines

app/src/DataModel/Editors/CodeFormatter.cpp:522–525  ·  view source on GitHub ↗

* @brief Splits text into lines while preserving the trailing-newline shape. */

Source from the content-addressed store, hash-verified

520 * @brief Splits text into lines while preserving the trailing-newline shape.
521 */
522static QStringList splitLines(const QString& text)
523{
524 return text.split(QLatin1Char('\n'), Qt::KeepEmptyParts);
525}
526
527/**
528 * @brief Returns line stripped of trailing whitespace and any '\r' from CRLF normalization.

Callers 2

formatDocumentFunction · 0.85
formatLineRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected