MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / PointToName

Function PointToName

Libraries/unrar/pathfn.cpp:3–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "rar.hpp"
2
3wchar* PointToName(const wchar *Path)
4{
5 for (int I=(int)wcslen(Path)-1;I>=0;I--)
6 if (IsPathDiv(Path[I]))
7 return (wchar*)&Path[I+1];
8 return (wchar*)((*Path && IsDriveDiv(Path[1])) ? Path+2:Path);
9}
10
11
12wchar* PointToLastChar(const wchar *Path)

Callers 15

UpdateExistingShortNameFunction · 0.85
CmpNameFunction · 0.85
ExpandFolderMaskMethod · 0.85
GetFilteredMaskMethod · 0.85
GetNextMaskMethod · 0.85
FindProcMethod · 0.85
ScanErrorMethod · 0.85
uiAskReplaceExFunction · 0.85
NextMethod · 0.85
SetNameFunction · 0.85
GetExtFunction · 0.85
GetFilePathFunction · 0.85

Calls 2

IsPathDivFunction · 0.85
IsDriveDivFunction · 0.85

Tested by

no test coverage detected