MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / ImTextCharToUtf8

Function ImTextCharToUtf8

TheForceEngine/TFE_Ui/imGUI/imgui.cpp:2370–2375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2368}
2369
2370const char* ImTextCharToUtf8(char out_buf[5], unsigned int c)
2371{
2372 int count = ImTextCharToUtf8_inline(out_buf, 5, c);
2373 out_buf[count] = 0;
2374 return out_buf;
2375}
2376
2377// Not optimal but we very rarely use this function.
2378int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end)

Callers 2

DebugNodeFontMethod · 0.85

Calls 1

ImTextCharToUtf8_inlineFunction · 0.85

Tested by

no test coverage detected