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

Method name

common/sys/filename.cpp:72–78  ·  view source on GitHub ↗

! returns the basename without extension */

Source from the content-addressed store, hash-verified

70
71 /*! returns the basename without extension */
72 std::string FileName::name() const {
73 size_t start = filename.find_last_of(path_sep);
74 if (start == std::string::npos) start = 0; else start++;
75 size_t end = filename.find_last_of('.');
76 if (end == std::string::npos || end < start) end = filename.size();
77 return filename.substr(start, end - start);
78 }
79
80 /*! replaces the extension */
81 FileName FileName::setExt(const std::string& ext) const {

Callers

nothing calls this directly

Calls 2

substrMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected