MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / ImTextCountUtf8BytesFromChar

Function ImTextCountUtf8BytesFromChar

lib/imgui/imgui.cpp:1685–1689  ·  view source on GitHub ↗

Not optimal but we very rarely use this function.

Source from the content-addressed store, hash-verified

1683
1684// Not optimal but we very rarely use this function.
1685int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end)
1686{
1687 unsigned int dummy = 0;
1688 return ImTextCharFromUtf8(&dummy, in_text, in_text_end);
1689}
1690
1691static inline int ImTextCountUtf8BytesFromChar(unsigned int c)
1692{

Callers 2

RenderTextEllipsisMethod · 0.85

Calls 1

ImTextCharFromUtf8Function · 0.85

Tested by

no test coverage detected