MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / ImTextCharToUtf8

Function ImTextCharToUtf8

plugins/Cardinal/src/DearImGui/imgui.cpp:1782–1787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1780}
1781
1782const char* ImTextCharToUtf8(char out_buf[5], unsigned int c)
1783{
1784 int count = ImTextCharToUtf8_inline(out_buf, 5, c);
1785 out_buf[count] = 0;
1786 return out_buf;
1787}
1788
1789// Not optimal but we very rarely use this function.
1790int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end)

Callers 1

DebugNodeFontMethod · 0.70

Calls 1

ImTextCharToUtf8_inlineFunction · 0.85

Tested by

no test coverage detected