| 142 | } |
| 143 | |
| 144 | DiffRange parseRange(const QString &range) |
| 145 | { |
| 146 | int commaPos = range.indexOf(u','); |
| 147 | if (commaPos > -1) { |
| 148 | return {QStringView(range).sliced(0, commaPos).toUInt(), QStringView(range).sliced(commaPos + 1).toUInt()}; |
| 149 | } |
| 150 | return {range.toUInt(), 1}; |
| 151 | } |
| 152 | |
| 153 | /* Creates a hunk header line (starting with @@) |
| 154 | * |
no test coverage detected