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

Function GenerateValidAndUniqueFilePathForKML

libs/map/bookmark_helpers.cpp:349–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349std::string GenerateValidAndUniqueFilePathForKML(std::string const & fileName)
350{
351 std::string filePath = RemoveInvalidSymbols(fileName);
352 if (filePath.empty())
353 filePath = kDefaultBookmarksFileName;
354
355 return GenerateUniqueFileName(GetBookmarksDirectory(), std::move(filePath), kKmlExtension);
356}
357
358std::string GenerateValidAndUniqueFilePathForGPX(std::string const & fileName)
359{

Calls 4

RemoveInvalidSymbolsFunction · 0.85
GenerateUniqueFileNameFunction · 0.85
GetBookmarksDirectoryFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected