MCPcopy Create free account
hub / github.com/comaps/comaps / GetNameFromFullPath

Function GetNameFromFullPath

libs/base/file_name_utils.cpp:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void GetNameFromFullPath(string & name)
27{
28 string::size_type const i = name.find_last_of("/\\");
29 if (i != string::npos)
30 name = name.substr(i + 1);
31}
32
33std::string FileNameFromFullPath(std::string path)
34{

Callers 5

FileNameFromFullPathFunction · 0.85
UNIT_TESTFunction · 0.85
MakeTemporaryMethod · 0.85

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.68