Audacity 3.2.0
Functions
Util.h File Reference
#include <locale>
#include <codecvt>
Include dependency graph for Util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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)
 

Function Documentation

◆ 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}