MCPcopy Create free account
hub / github.com/MhLiao/TextBoxes_plusplus / CodePointToUtf8

Function CodePointToUtf8

src/gtest/gtest-all.cpp:2738–2769  ·  view source on GitHub ↗

Converts a Unicode code point to a narrow string in UTF-8 encoding. code_point parameter is of type UInt32 because wchar_t may not be wide enough to contain a code point. The output buffer str must containt at least 32 characters. The function returns the address of the output buffer. If the code_point is not a valid Unicode code point (i.e. outside of Unicode range U+0 to U+10FFFF) it will be out

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

WideStringToUtf8Function · 0.85

Calls 2

ChopLowBitsFunction · 0.85
StrNCpyFunction · 0.85

Tested by

no test coverage detected