AUtf8ConstIterator#
UTF-8 forward iterator for AString
| Header: | #include <AUI/Common/AUtf8.hpp> |
| CMake: | aui_link(my_target PUBLIC aui::core) |
Examples#
examples/ui/embedded_sdl/src/main.cpp
SDL3 — This code demonstrates how to integrate the AUI Framework with SDL3 to create a window with OpenGL rendering.
window.onKeyReleased(sdlToAInput(event->key.key));
break;
case SDL_EVENT_TEXT_INPUT: {
std::string_view text(event->text.text);
AUtf8ConstIterator it(text);
AUtf8ConstIterator it_end(text, text.size());
for (; it != it_end; ++it) {
const AChar ch = *it;
window.onCharEntered(ch);
}