MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Blast / addSlashToPath

Function addSlashToPath

tools/common/Utils.cpp:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50//////////////////////////////////////////////////////////////////////////////
51
52static void addSlashToPath(std::string& path)
53{
54 if (path[path.length() - 1] != '/' && path[path.length() - 1] != '\\')
55 {
56 path.append("/");
57 }
58}
59
60FileUtils::FileUtils()
61{

Callers 2

FileUtilsMethod · 0.85
addAbsolutePathMethod · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected