MCPcopy Create free account
hub / github.com/beefytech/Beef / GetFileName

Method GetFileName

BeefySysLib/Common.cpp:1031–1037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029}
1030
1031String Beefy::GetFileName(const StringImpl& path)
1032{
1033 int slashPos = BF_MAX((int)path.LastIndexOf('\\'), (int)path.LastIndexOf('/'));
1034 if (slashPos == -1)
1035 return path;
1036 return path.Substring(slashPos + 1);
1037}
1038
1039String Beefy::GetFileExtension(const StringImpl& path)
1040{

Callers

nothing calls this directly

Calls 2

SubstringMethod · 0.80
LastIndexOfMethod · 0.45

Tested by

no test coverage detected