INNER CODE UNIT · C++
begin
DecodeGenetics/graphtyper · src/graph/genomic_region.cpp:96
begin = stoi64(region.substr(colon + 1, region.size() - colon));
}
else
{
std::size_t const dash = region.find('-', colon + 1);
begin = stoi64(region.substr(colon + 1, dash - colon));
end = stoi64(region.substr(dash + 1, region.size() - dash));
}
}
if (begin != 0)
{
// Switch to 0-based indexing
--begin;
}
}