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

Function formatRange

apps/lib/diff/gitdiff.cpp:137–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135Q_GLOBAL_STATIC_WITH_ARGS(const QRegularExpression, CONFLICT_RE, (QLatin1String("(^>>>>>>>)|(^=======)|(^<<<<<<<)")))
136
137static QString formatRange(uint start, uint count)
138{
139 if (count == 1)
140 return QString().setNum(start);
141 return QString().setNum(start) + u',' + QString().setNum(count);
142}
143
144DiffRange parseRange(const QString &range)
145{

Callers 1

formatHeaderMethod · 0.85

Calls 1

QStringClass · 0.70

Tested by

no test coverage detected