MCPcopy Create free account
hub / github.com/KDE/kate / parseRange

Function parseRange

apps/lib/diff/gitdiff.cpp:144–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144DiffRange 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 *

Callers 3

parseAndShowDiffMethod · 0.70
parseHunksFunction · 0.70

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected