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

Method dropExt

common/sys/filename.cpp:65–69  ·  view source on GitHub ↗

! returns the extension */

Source from the content-addressed store, hash-verified

63
64 /*! returns the extension */
65 FileName FileName::dropExt() const {
66 size_t pos = filename.find_last_of('.');
67 if (pos == std::string::npos) return filename;
68 return filename.substr(0,pos);
69 }
70
71 /*! returns the basename without extension */
72 std::string FileName::name() const {

Callers

nothing calls this directly

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected