cpp-terminal 1.0.0
Small C++ library for writing multiplatform terminal applications
Loading...
Searching...
No Matches
prompt.cpp File Reference

Go to the source code of this file.

Functions

char32_t UU (const std::string &s)
 

Function Documentation

◆ UU()

char32_t UU ( const std::string & s)

Definition at line 168 of file prompt.cpp.

169{
170 std::u32string s2 = Term::Private::utf8_to_utf32(s);
171 if(s2.size() != 1) throw Term::Exception("U(s): s not a codepoint.");
172 return s2[0];
173}
std::u32string utf8_to_utf32(const std::string &str)