MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / string_2_wstring

Function string_2_wstring

Source/Falcor/Utils/StringUtils.h:165–170  ·  view source on GitHub ↗

* Convert an ASCII string to a UTF-8 wstring */

Source from the content-addressed store, hash-verified

163 * Convert an ASCII string to a UTF-8 wstring
164 */
165inline std::wstring string_2_wstring(const std::string& s)
166{
167 std::wstring_convert<std::codecvt_utf8<wchar_t>> cvt;
168 std::wstring ws = cvt.from_bytes(s);
169 return ws;
170}
171
172/**
173 * Convert a UTF-8 wstring to an ASCII string

Callers 1

FilterSpecMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected