fs/Path: add method ToUTF8Throw()

This commit is contained in:
Max Kellermann
2018-07-18 16:30:46 +02:00
parent f87265a4d5
commit 32290d5eb8
10 changed files with 43 additions and 29 deletions

View File

@@ -25,12 +25,18 @@ std::string
Path::ToUTF8() const noexcept
{
try {
return ::PathToUTF8(c_str());
return ToUTF8Throw();
} catch (...) {
return std::string();
}
}
std::string
Path::ToUTF8Throw() const
{
return ::PathToUTF8(c_str());
}
Path::const_pointer_type
Path::GetSuffix() const noexcept
{