openMSX
Classes | Public Member Functions | List of all members
openmsx::MsxChar2Unicode Class Reference

#include <MsxChar2Unicode.hh>

Public Member Functions

 MsxChar2Unicode (std::string_view mappingName)
 
std::string msxToUtf8 (std::span< const uint8_t > msx, std::function< uint32_t(uint8_t)> fallback) const
 TODO. More...
 
std::vector< uint8_t > utf8ToMsx (std::string_view utf8, std::function< uint8_t(uint32_t)> fallback) const
 TODO. More...
 

Detailed Description

Definition at line 13 of file MsxChar2Unicode.hh.

Constructor & Destructor Documentation

◆ MsxChar2Unicode()

openmsx::MsxChar2Unicode::MsxChar2Unicode ( std::string_view  mappingName)

Member Function Documentation

◆ msxToUtf8()

std::string openmsx::MsxChar2Unicode::msxToUtf8 ( std::span< const uint8_t >  msx,
std::function< uint32_t(uint8_t)>  fallback 
) const

TODO.

Definition at line 157 of file MsxChar2Unicode.cc.

References utf8::unchecked::append().

◆ utf8ToMsx()

std::vector< uint8_t > openmsx::MsxChar2Unicode::utf8ToMsx ( std::string_view  utf8,
std::function< uint8_t(uint32_t)>  fallback 
) const

TODO.

Definition at line 171 of file MsxChar2Unicode.cc.

References end(), ranges::lower_bound(), and utf8::unchecked::next().


The documentation for this class was generated from the following files: