mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-12-27 01:27:22 +01:00
12 lines
242 B
C++
12 lines
242 B
C++
|
#include "pch.h"
|
||
|
|
||
|
#include <codecvt>
|
||
|
|
||
|
#include "Utils.h"
|
||
|
|
||
|
std::wstring to_wstring(const std::string_view& sourceString)
|
||
|
{
|
||
|
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
|
||
|
|
||
|
return converter.from_bytes(sourceString.data());
|
||
|
}
|