openMSX
|
#include <MsxChar2Unicode.hh>
Public Member Functions | |
MsxChar2Unicode (std::string_view mappingName) | |
std::string | msxToUtf8 (std::span< const uint8_t > msx, const std::function< uint32_t(uint8_t)> &fallback) const |
TODO. | |
std::vector< uint8_t > | utf8ToMsx (std::string_view utf8, const std::function< uint8_t(uint32_t)> &fallback) const |
TODO. | |
std::string | msxToUtf8 (std::span< const uint8_t > msx, char fallback) const |
std::vector< uint8_t > | utf8ToMsx (std::string_view utf8, char fallback) const |
Definition at line 14 of file MsxChar2Unicode.hh.
|
explicit |
Definition at line 19 of file MsxChar2Unicode.cc.
References ranges::fill(), openmsx::File::mmap(), openmsx::FileContext::resolve(), openmsx::systemFileContext(), and tmpStrCat().
std::string openmsx::MsxChar2Unicode::msxToUtf8 | ( | std::span< const uint8_t > | msx, |
char | fallback | ||
) | const |
Definition at line 188 of file MsxChar2Unicode.cc.
References msxToUtf8().
std::string openmsx::MsxChar2Unicode::msxToUtf8 | ( | std::span< const uint8_t > | msx, |
const std::function< uint32_t(uint8_t)> & | fallback | ||
) | const |
TODO.
Definition at line 161 of file MsxChar2Unicode.cc.
References utf8::unchecked::append().
Referenced by msxToUtf8().
std::vector< uint8_t > openmsx::MsxChar2Unicode::utf8ToMsx | ( | std::string_view | utf8, |
char | fallback | ||
) | const |
Definition at line 193 of file MsxChar2Unicode.cc.
References utf8ToMsx().
std::vector< uint8_t > openmsx::MsxChar2Unicode::utf8ToMsx | ( | std::string_view | utf8, |
const std::function< uint8_t(uint32_t)> & | fallback | ||
) | const |
TODO.
Definition at line 175 of file MsxChar2Unicode.cc.
References binary_find(), and utf8::unchecked::next().
Referenced by utf8ToMsx().