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

Function GetFileExtension

libs/base/file_name_utils.cpp:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20string GetFileExtension(string const & name)
21{
22 size_t const pos = name.find_last_of("./\\");
23 return ((pos != string::npos && name[pos] == '.') ? name.substr(pos) : string());
24}
25
26void GetNameFromFullPath(string & name)
27{

Callers 6

ForEachTrackFileFunction · 0.85
UNIT_TESTFunction · 0.85
GetLowercaseFileExtFunction · 0.85
SaveKmlFileByExtFunction · 0.85
GetReaderMethod · 0.85

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.68