Resolve relative file paths

Implemented path normalization so relative paths can be correctly
resolved
This commit is contained in:
x1nixmzeng
2015-02-11 01:11:52 +00:00
parent dbfd0b0f7b
commit 4351f48c7b
4 changed files with 94 additions and 8 deletions

View File

@@ -45,6 +45,8 @@ std::wstring join_paths(const std::wstring& left, const std::wstring& right,
// separators.
std::wstring fix_path_separators(const std::wstring& source,
wchar_t new_sep = poly::path_separator);
std::string fix_path_separators(const std::string& source,
char new_sep = poly::path_separator);
} // namespace poly