| 943 | } |
| 944 | |
| 945 | void 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 |
nothing calls this directly
no test coverage detected