#include <locale>
#include <codecvt>
Go to the source code of this file.
|
template<typename StringType > |
std::enable_if< std::is_same< StringType, std::string >::value, StringType >::type | makeFilePath (const std::string &pathUTF8) |
|
template<typename StringType > |
std::enable_if<!std::is_same< StringType, std::string >::value, StringType >::type | makeFilePath (const std::string &pathUTF8) |
|
◆ makeFilePath() [1/2]
template<typename StringType >
std::enable_if< std::is_same< StringType, std::string >::value, StringType >::type makeFilePath |
( |
const std::string & |
pathUTF8 | ) |
|
Definition at line 8 of file Util.h.
9{
10 return pathUTF8;
11}
◆ makeFilePath() [2/2]
template<typename StringType >
std::enable_if<!std::is_same< StringType, std::string >::value, StringType >::type makeFilePath |
( |
const std::string & |
pathUTF8 | ) |
|
Definition at line 15 of file Util.h.
16{
17 return std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>, wchar_t>{}.from_bytes(pathUTF8);
18}