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

Method GetPath

libs/platform/local_country_file_utils.cpp:369–379  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

367
368// static
369string CountryIndexes::GetPath(LocalCountryFile const & localFile, Index index)
370{
371 char const * ext = nullptr;
372 switch (index)
373 {
374 case Index::Bits: ext = kBitsExt; break;
375 case Index::Nodes: ext = kNodesExt; break;
376 case Index::Offsets: ext = kOffsetsExt; break;
377 }
378 return base::JoinPath(IndexesDir(localFile), localFile.GetCountryName() + ext);
379}
380
381// static
382void CountryIndexes::GetIndexesExts(std::vector<string> & exts)

Callers 1

GetCountryReaderFunction · 0.45

Calls 2

JoinPathFunction · 0.85
GetCountryNameMethod · 0.45

Tested by

no test coverage detected