MCPcopy Create free account
hub / github.com/TASEmulators/fceux / StripPath

Function StripPath

src/utils/xstring.cpp:789–793  ·  view source on GitHub ↗

strips the path off a filename

Source from the content-addressed store, hash-verified

787
788//strips the path off a filename
789std::string StripPath(std::string filename)
790{
791 int x = filename.find_last_of("\\") + 1;
792 return filename.substr(x, filename.length() - x);
793}

Callers 1

SetMainWindowTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected