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

Function utf32ToUtf8

Source/Falcor/Utils/StringUtils.h:185–189  ·  view source on GitHub ↗

* Convert a UTF-32 codepoint to a UTF-8 string */

Source from the content-addressed store, hash-verified

183 * Convert a UTF-32 codepoint to a UTF-8 string
184 */
185inline std::string utf32ToUtf8(uint32_t codepoint)
186{
187 std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> cvt;
188 return cvt.to_bytes(codepoint);
189}
190
191/**
192 * Encode data into base 64 encoding.

Callers 1

onKeyboardEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected