MCPcopy Create free account
hub / github.com/Twinklebear/ChameleonRT / GetFilePathExtension

Function GetFilePathExtension

util/tiny_gltf.h:2031–2035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2029}
2030
2031static std::string GetFilePathExtension(const std::string &FileName) {
2032 if (FileName.find_last_of(".") != std::string::npos)
2033 return FileName.substr(FileName.find_last_of(".") + 1);
2034 return "";
2035}
2036
2037static std::string GetBaseDir(const std::string &filepath) {
2038 if (filepath.find_last_of("/\\") != std::string::npos)

Callers 2

WriteImageDataFunction · 0.85
UpdateImageObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected