Returns the given file path, minus the extension
| 73 | |
| 74 | // Returns the given file path, minus the extension |
| 75 | std::wstring GetFilePathWithoutExtension(const wchar* filePath_) |
| 76 | { |
| 77 | Assert_(filePath_); |
| 78 | |
| 79 | std::wstring filePath(filePath_); |
| 80 | size_t idx = filePath.rfind(L'.'); |
| 81 | if (idx != std::wstring::npos) |
| 82 | return filePath.substr(0, idx); |
| 83 | else |
| 84 | return std::wstring(L""); |
| 85 | } |
| 86 | |
| 87 | // Returns the extension of the file path |
| 88 | std::wstring GetFileExtension(const wchar* filePath_) |
no outgoing calls
no test coverage detected