| 1 | #include "rar.hpp" |
| 2 | |
| 3 | wchar* 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 | |
| 12 | wchar* PointToLastChar(const wchar *Path) |
no test coverage detected