MCPcopy Create free account
hub / github.com/Anttwo/SuGaR / string getFileName

Method string getFileName

gaussian_splatting/SIBR_viewers/src/core/system/String.cpp:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 SIBR_SYSTEM_EXPORT std::string getFileName(const std::string & str)
70 {
71 const std::string::size_type pos = str.find_last_of("/\\");
72 if (pos == std::string::npos) {
73 return str;
74 }
75 return str.substr(pos+1);
76 }
77
78 bool strContainsOnlyDigits(const std::string& str)
79 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected