27std::string
toUtf8(
const char* s);
std::string fromUtf8(const char *s)
Convert a UTF-8 string to CP437 bytes (unmapped chars dropped).
std::string toUtf8(const char *s)
Convert CP437 bytes to a UTF-8 string.
uint8_t fromUnicode(uint32_t cp)
Map a Unicode codepoint to its CP437 byte, or 0 if it has none.
uint32_t toUnicode(uint8_t b)
Map a CP437 byte to its Unicode codepoint. 0x00-0x7F is ASCII.