fs/Path: add method ToUTF8Throw()
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user