From 9bfcdbf2131ae6c08040226be6e92447db625b18 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Mon, 26 Oct 2026 21:27:00 +0800 Subject: feat(tui): add reusable text input component --- src/tui/text.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tui/text.hh') diff --git a/src/tui/text.hh b/src/tui/text.hh index 3c0b103..eb0a2bb 100644 --- a/src/tui/text.hh +++ b/src/tui/text.hh @@ -69,6 +69,7 @@ class TextService public: explicit TextService( std::size_t glyph_capacity ); TextAnalysis analyze( std::string_view utf8, bool line_breaks, bool tabs ) const; + std::string encode( std::u32string_view input ) const; private: std::size_t glyph_capacity_; -- cgit v1.2.3