* @brief Splits text into lines while preserving the trailing-newline shape. */
| 520 | * @brief Splits text into lines while preserving the trailing-newline shape. |
| 521 | */ |
| 522 | static 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. |
no outgoing calls
no test coverage detected