| 124 | return QString().setNum(start) + QLatin1Char(',') + QString().setNum(count); |
| 125 | } |
| 126 | std::pair<uint, uint> parseRange(QStringView range) |
| 127 | { |
| 128 | int commaPos = range.indexOf(QLatin1Char(',')); |
| 129 | if (commaPos > -1) { |
| 130 | return {range.first(commaPos).toInt(), range.sliced(commaPos + 1).toInt()}; |
| 131 | } |
| 132 | return { range.toInt(), 1 }; |
| 133 | } |
| 134 | |
| 135 | /* Creates a hunk header line (starting with @@) |
| 136 | * |
no test coverage detected