MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / get_range

Function get_range

src/plugins/reversedebug/taskwindow.cpp:383–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383static bool get_range(const QString& range, int* begin, int* end)
384{
385 bool ok;
386 int pos = range.indexOf(QLatin1Char(','));
387 if (pos > 0) {
388 *begin = range.left(pos).toInt(&ok, 10);
389 if (!ok) return false;
390 *end = range.mid(pos+1).toInt(&ok, 10);
391 if (!ok) return false;
392 }
393 else {
394 *begin = range.toInt(&ok, 10);
395 if (!ok) return false;
396 *end = *begin;
397 }
398
399 return (*begin >= 0 && *begin <= *end);
400}
401
402void TaskWindow::execCommand(void)
403{

Callers 1

execCommandMethod · 0.70

Calls 2

leftMethod · 0.80
indexOfMethod · 0.45

Tested by

no test coverage detected