MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/openvdb / getExt

Function getExt

openvdb_cmd/vdb_tool/include/Util.h:89–93  ·  view source on GitHub ↗

@return the file extension, i.e. "ext" if input is "path/base0123.ext"

Source from the content-addressed store, hash-verified

87
88/// @return the file extension, i.e. "ext" if input is "path/base0123.ext"
89inline std::string getExt(const std::string &str)
90{
91 const size_t pos = str.find_last_of('.');
92 return pos >= str.length() ? "" : str.substr(pos + 1);
93}
94
95/// @brief Turns all characters in a string into lower case
96inline std::string &toLowerCase(std::string &str)

Callers 4

TEST_FFunction · 0.85
findFileExtFunction · 0.85
ProcessorMethod · 0.85
renderMethod · 0.85

Calls 1

lengthMethod · 0.45

Tested by 1

TEST_FFunction · 0.68