MCPcopy Create free account
hub / github.com/comaps/comaps / RemoveIndexFromMwmName

Function RemoveIndexFromMwmName

tools/poly_borders/borders_data.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39std::string RemoveIndexFromMwmName(std::string const & mwmName)
40{
41 auto const pos = mwmName.find(BordersData::kBorderExtension);
42 CHECK_NOT_EQUAL(pos, std::string::npos, ());
43 auto const end = mwmName.begin() + pos + BordersData::kBorderExtension.size();
44 std::string result(mwmName.cbegin(), end);
45 return result;
46}
47
48bool IsReversedIntervals(size_t fromDst, size_t toDst, size_t fromSrc, size_t toSrc)
49{

Callers 1

DumpPolyFilesMethod · 0.85

Calls 4

findMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45
cbeginMethod · 0.45

Tested by

no test coverage detected