MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / ImTextCharToUtf8

Function ImTextCharToUtf8

extern/imgui/imgui.cpp:2146–2151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2144}
2145
2146const char* ImTextCharToUtf8(char out_buf[5], unsigned int c)
2147{
2148 int count = ImTextCharToUtf8_inline(out_buf, 5, c);
2149 out_buf[count] = 0;
2150 return out_buf;
2151}
2152
2153// Not optimal but we very rarely use this function.
2154int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end)

Callers 1

DebugNodeFontMethod · 0.85

Calls 1

ImTextCharToUtf8_inlineFunction · 0.85

Tested by

no test coverage detected