| 235 | } |
| 236 | |
| 237 | std::wstring FileInfo::toStdWString() const |
| 238 | { |
| 239 | // As FileName is UTF-8 is encoded we have to convert it |
| 240 | // for Windows because the path names are UTF-16 encoded. |
| 241 | #ifdef FC_OS_WIN32 |
| 242 | return ConvertToWideString(FileName); |
| 243 | #else |
| 244 | // On other platforms it's discouraged to use wchar_t for file names |
| 245 | throw Base::FileException("Cannot use FileInfo::toStdWString() on this platform"); |
| 246 | #endif |
| 247 | } |
| 248 | |
| 249 | std::string FileInfo::extension() const |
| 250 | { |
no test coverage detected