40 for (std::size_t i = 0; i < u.size(); ++i)
42 if (u[i] ==
static_cast<char32_t>(aMnemonicPrefix) && i < u.size() - 1 && u[i + 1] !=
static_cast<char32_t>(aMnemonicPrefix))
virtual std::string mnemonic() const =0
virtual i_widget & mnemonic_widget()=0
virtual void mnemonic_execute()=0
std::string mnemonic_from_text(std::string const &aText, char aMnemonicPrefix='&')
std::string utf32_to_utf8(const std::u32string &aString)
std::u32string utf8_to_utf32(std::string_view const &aStringView, Callback aCallback, bool aCodePageFallback=false)