MCPcopy Create free account
hub / github.com/cinder/Cinder / ImTextCharToUtf8

Function ImTextCharToUtf8

src/imgui/imgui.cpp:2606–2611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2604}
2605
2606int ImTextCharToUtf8(char out_buf[5], unsigned int c)
2607{
2608 int count = ImTextCharToUtf8_inline(out_buf, 5, c);
2609 out_buf[count] = 0;
2610 return count;
2611}
2612
2613// Not optimal but we very rarely use this function.
2614int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end)

Callers 4

DebugNodeFontMethod · 0.85
OnCharPressedMethod · 0.85
InputTextExMethod · 0.85

Calls 1

ImTextCharToUtf8_inlineFunction · 0.85

Tested by

no test coverage detected