| 1001 | } |
| 1002 | |
| 1003 | bool |
| 1004 | get_bare_filename(LPCWSTR filepath, wstring& filename) |
| 1005 | { |
| 1006 | size_t len = wcslen(filepath); |
| 1007 | |
| 1008 | if (len < 1) |
| 1009 | return false; |
| 1010 | |
| 1011 | const WCHAR *lastslash = wcsrchr(filepath, '\\'); |
| 1012 | |
| 1013 | if (!lastslash) |
| 1014 | return true; |
| 1015 | |
| 1016 | filename = filepath; |
| 1017 | |
| 1018 | filename = filename.substr(lastslash - filepath + 1); |
| 1019 | |
| 1020 | return true; |
| 1021 | } |
| 1022 | |
| 1023 | bool |
| 1024 | get_file_directory(LPCWSTR filepath, wstring& dirpath) |
no outgoing calls
no test coverage detected