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

Function wstring_2_string

Source/Falcor/Utils/StringUtils.h:175–180  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

173 * Convert a UTF-8 wstring to an ASCII string
174 */
175inline std::string wstring_2_string(const std::wstring& ws)
176{
177 std::wstring_convert<std::codecvt_utf8<wchar_t>> cvt;
178 std::string s = cvt.to_bytes(ws);
179 return s;
180}
181
182/**
183 * Convert a UTF-32 codepoint to a UTF-8 string

Callers 3

MonitorEnumProcFunction · 0.85
setThreadAffinityFunction · 0.85
setThreadPriorityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected