MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / toStdWString

Method toStdWString

src/Base/FileInfo.cpp:237–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237std::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
249std::string FileInfo::extension() const
250{

Callers 15

saveToFileMethod · 0.80
qstringToPathFunction · 0.80
RedirectionMethod · 0.80
InitMiniDumpWriterFunction · 0.80
ZipFileMethod · 0.80
ZipOutputStreamMethod · 0.80
ZipInputStreamMethod · 0.80
runFileMethod · 0.80
openMethod · 0.80
openMethod · 0.80
LoadDocumentMethod · 0.80
SaveDocumentMethod · 0.80

Calls 1

ConvertToWideStringFunction · 0.85

Tested by

no test coverage detected