MCPcopy Create free account
hub / github.com/RenderKit/embree / getFileName

Function getFileName

tutorials/common/tutorial/benchmark.cpp:89–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89std::string getFileName(std::string const &path)
90{
91 const size_t b = (path.rfind("/") == std::string::npos) ? 0 : path.rfind("/") + 1;
92 return path.substr(b, path.rfind(".") - b);
93}
94
95void printCommandLine(int argc, char** argv)
96{

Callers 1

mainMethod · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected