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, 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
 

Detailed Description

Definition at line 14 of file MsxChar2Unicode.hh.

Constructor & Destructor Documentation

◆ MsxChar2Unicode()

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

Member Function Documentation

◆ msxToUtf8() [1/2]

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

Definition at line 188 of file MsxChar2Unicode.cc.

References msxToUtf8().

◆ msxToUtf8() [2/2]

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().

◆ utf8ToMsx() [1/2]

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

Definition at line 193 of file MsxChar2Unicode.cc.

References utf8ToMsx().

◆ utf8ToMsx() [2/2]

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().


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