MCPcopy Create free account
hub / github.com/PDAL/PDAL / getFilename

Function getFilename

pdal/util/FileUtils.cpp:385–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383
384
385std::string getFilename(const std::string& path)
386{
387#ifdef _WIN32
388 std::string pathsep("\\/");
389#else
390 char pathsep = Utils::dirSeparator;
391#endif
392
393 std::string::size_type pos = path.find_last_of(pathsep);
394 if (pos == std::string::npos)
395 return path;
396 return path.substr(pos + 1);
397}
398
399
400// Get the directory part of a filename.

Callers 8

initializeMethod · 0.85
TESTFunction · 0.85
runOgrWriterInfoFunction · 0.85
readyFileMethod · 0.85
createFileMethod · 0.85
writeMethod · 0.85
validPluginFunction · 0.85
stemFunction · 0.85

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.68
runOgrWriterInfoFunction · 0.68
readyFileMethod · 0.68