MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / AddInputCharactersUTF8

Method AddInputCharactersUTF8

examples/ThirdPartyLibs/imgui/imgui.cpp:945–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

943}
944
945void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars)
946{
947 // We can't pass more wchars than ImGuiIO::InputCharacters[] can hold so don't convert more
948 const int wchars_buf_len = sizeof(ImGuiIO::InputCharacters) / sizeof(ImWchar);
949 ImWchar wchars[wchars_buf_len];
950 ImTextStrFromUtf8(wchars, wchars_buf_len, utf8_chars, NULL);
951 for (int i = 0; i < wchars_buf_len && wchars[i] != 0; i++)
952 AddInputCharacter(wchars[i]);
953}
954
955//-----------------------------------------------------------------------------
956// HELPERS

Callers

nothing calls this directly

Calls 1

ImTextStrFromUtf8Function · 0.85

Tested by

no test coverage detected