cpp-terminal 1.0.0
Small C++ library for writing multiplatform terminal applications
|
Classes | |
class | BlockingQueue |
class | Errno |
class | ErrnoException |
class | FileHandler |
class | FileInitializer |
class | Input |
class | InputFileHandler |
class | OutputFileHandler |
class | Signals |
class | Sigwinch |
class | WindowsError |
class | WindowsException |
Enumerations | |
enum class | ExceptionDestination : std::uint8_t { MessageBox = 0 , StdErr } |
Functions | |
std::uint8_t | utf8_decode_step (std::uint8_t state, std::uint8_t octet, std::uint32_t *cpp) |
std::u32string | utf8_to_utf32 (const std::string &str) |
bool | is_valid_utf8_code_unit (const std::string &str) |
std::pair< bool, std::string > | getenv (const std::string &env) |
Value of an environment variables. | |
void | ExceptionHandler (const ExceptionDestination &destination=ExceptionDestination::StdErr) noexcept |
std::string | ask (const std::string &str) |
std::string | to_narrow (const std::wstring &wstr) |
std::wstring | to_wide (const std::string &str) |
std::string | utf32_to_utf8 (const char32_t &codepoint, const bool &exception=false) |
Encode a codepoint using UTF-8 std::string . | |
std::string | utf32_to_utf8 (const std::u32string &str, const bool &exception=false) |
Encode a std::u32string into UTF-8 std::string . | |
Variables | |
InputFileHandler & | in = reinterpret_cast<Term::Private::InputFileHandler&>(stdin_buffer) |
OutputFileHandler & | out = reinterpret_cast<Term::Private::OutputFileHandler&>(stdout_buffer) |
volatile std::sig_atomic_t | m_signalStatus {0} |
|
strong |
Enumerator | |
---|---|
MessageBox | |
StdErr |
Definition at line 87 of file exception.hpp.
std::string Term::Private::ask | ( | const std::string & | str | ) |
|
noexcept |
Definition at line 175 of file exception.cpp.
std::pair< bool, std::string > Term::Private::getenv | ( | const std::string & | env | ) |
Value of an environment variables.
env | The environment variable. |
Definition at line 14 of file env.cpp.
bool Term::Private::is_valid_utf8_code_unit | ( | const std::string & | str | ) |
Definition at line 55 of file conversion.cpp.
std::string Term::Private::to_narrow | ( | const std::wstring & | wstr | ) |
Definition at line 26 of file unicode.cpp.
std::wstring Term::Private::to_wide | ( | const std::string & | str | ) |
Definition at line 40 of file unicode.cpp.
std::string Term::Private::utf32_to_utf8 | ( | const char32_t & | codepoint, |
const bool & | exception = false ) |
Encode a codepoint using UTF-8 std::string .
codepoint | The codepoint ( char32_t ) on range [0,0x10FFFF] to convert. |
exception | If true throw exception on error, otherwise change the out of range codepoint to "replacement character" � . |
Definition at line 55 of file unicode.cpp.
std::string Term::Private::utf32_to_utf8 | ( | const std::u32string & | str, |
const bool & | exception = false ) |
Encode a std::u32string into UTF-8 std::string .
str | The std::u32string to convert. |
exception | If true throw exception on error, otherwise change the out of range codepoint to "replacement character" � . |
Definition at line 75 of file unicode.cpp.
std::uint8_t Term::Private::utf8_decode_step | ( | std::uint8_t | state, |
std::uint8_t | octet, | ||
std::uint32_t * | cpp ) |
Definition at line 25 of file conversion.cpp.
std::u32string Term::Private::utf8_to_utf32 | ( | const std::string & | str | ) |
Definition at line 40 of file conversion.cpp.
|
extern |
volatile std::sig_atomic_t Term::Private::m_signalStatus {0} |
Definition at line 28 of file sigwinch.cpp.
|
extern |