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

Function stem

pdal/util/FileUtils.cpp:408–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406
407
408std::string stem(const std::string& path)
409{
410 std::string f = getFilename(path);
411 if (f != "." && f != "..")
412 {
413 std::string::size_type pos = f.find_last_of(".");
414 if (pos != std::string::npos)
415 f = f.substr(0, pos);
416 }
417 return f;
418}
419
420
421// Determine if the path represents a directory.

Callers 5

unwrapMethod · 0.85
parseArgsMethod · 0.85
TESTFunction · 0.85
runOgrWriterInfoFunction · 0.85
addStacMetadataFunction · 0.85

Calls 1

getFilenameFunction · 0.85

Tested by 2

TESTFunction · 0.68
runOgrWriterInfoFunction · 0.68