openMSX
Classes | Functions
utf8::unchecked Namespace Reference

Classes

class  iterator
 

Functions

template<typename octet_iterator >
octet_iterator append (uint32_t cp, octet_iterator result)
 
template<typename octet_iterator >
uint32_t next (octet_iterator &it)
 
template<typename octet_iterator >
uint32_t peek_next (octet_iterator it)
 
template<typename octet_iterator >
uint32_t prior (octet_iterator &it)
 
template<typename octet_iterator , typename distance_type >
void advance (octet_iterator &it, distance_type n)
 
template<typename octet_iterator >
std::iterator_traits< octet_iterator >::difference_type distance (octet_iterator first, octet_iterator last)
 
template<typename u16bit_iterator , typename octet_iterator >
octet_iterator utf16to8 (u16bit_iterator start, u16bit_iterator end, octet_iterator result)
 
template<typename u16bit_iterator , typename octet_iterator >
u16bit_iterator utf8to16 (octet_iterator start, octet_iterator end, u16bit_iterator result)
 
template<typename octet_iterator , typename u32bit_iterator >
octet_iterator utf32to8 (u32bit_iterator start, u32bit_iterator end, octet_iterator result)
 
template<typename octet_iterator , typename u32bit_iterator >
u32bit_iterator utf8to32 (octet_iterator start, octet_iterator end, u32bit_iterator result)
 
size_t size (string_view utf8)
 
string_view substr (string_view utf8, string_view::size_type first=0, string_view::size_type len=string_view::npos)
 

Function Documentation

◆ advance()

template<typename octet_iterator , typename distance_type >
void utf8::unchecked::advance ( octet_iterator &  it,
distance_type  n 
)

◆ append()

template<typename octet_iterator >
octet_iterator utf8::unchecked::append ( uint32_t  cp,
octet_iterator  result 
)

Definition at line 40 of file utf8_unchecked.hh.

Referenced by AdhocCliCommParser::parse(), utf16to8(), and utf32to8().

◆ distance()

template<typename octet_iterator >
std::iterator_traits<octet_iterator>::difference_type utf8::unchecked::distance ( octet_iterator  first,
octet_iterator  last 
)

Definition at line 118 of file utf8_unchecked.hh.

References next().

Referenced by size().

◆ next()

template<typename octet_iterator >
uint32_t utf8::unchecked::next ( octet_iterator &  it)

◆ peek_next()

template<typename octet_iterator >
uint32_t utf8::unchecked::peek_next ( octet_iterator  it)

Definition at line 95 of file utf8_unchecked.hh.

References next().

◆ prior()

template<typename octet_iterator >
uint32_t utf8::unchecked::prior ( octet_iterator &  it)

◆ size()

size_t utf8::unchecked::size ( string_view  utf8)
inline

Definition at line 229 of file utf8_unchecked.hh.

References begin(), distance(), and end().

Referenced by openmsx::StretchScalerOutputBase< Pixel >::acquireLine(), openmsx::AviWriter::addFrame(), openmsx::DeltaBlockCopy::apply(), openmsx::V9990VRAM::clear(), circular_buffer< std::unique_ptr< openmsx::Frame > >::clear(), openmsx::comp< 8 >(), openmsx::Completer::Completer(), openmsx::DeltaBlockCopy::compress(), openmsx::RomFactory::create(), openmsx::LastDeltaBlocks::createNew(), openmsx::LastDeltaBlocks::createNullDiff(), openmsx::DeltaBlockCopy::DeltaBlockCopy(), openmsx::DeltaBlockDiff::DeltaBlockDiff(), openmsx::MSXMultiMemDevice::empty(), circular_buffer< std::unique_ptr< openmsx::Frame > >::empty(), openmsx::IDECDROM::executeCommand(), openmsx::CasImage::fillBuffer(), openmsx::SettingsManager::findSetting(), openmsx::WavWriter::flush(), circular_buffer< std::unique_ptr< openmsx::Frame > >::full(), openmsx::OggReader::getAudio(), openmsx::OSDWidget::getChildren(), openmsx::FilePool::getFile(), openmsx::MSXDevice::getHardwareConfig(), openmsx::RawTrack::getIdamBuffer(), TclParser::getLast(), openmsx::HD::getMotherBoard(), openmsx::Debugger::getMotherBoard(), openmsx::DummyOutputRectangle::getOutputSize(), openmsx::MSXDevice::getPluggingController(), openmsx::OutputBuffer::getPosition(), openmsx::HD::getTigerTreeHash(), openmsx::MegaFlashRomSCCPlusSD::getWriteCacheLine(), openmsx::GLHQLiteScaler::GLHQLiteScaler(), openmsx::GLHQScaler::GLHQScaler(), openmsx::GZFileAdapter::GZFileAdapter(), openmsx::File::is_open(), openmsx::XMLLoader::load(), openmsx::LocalFileReference::LocalFileReference(), openmsx::SRAM::memset(), openmsx::FileBase::mmap(), openmsx::MSXKanji::MSXKanji(), openmsx::MSXKanji12::MSXKanji12(), openmsx::MSXSCCPlusCart::MSXSCCPlusCart(), openmsx::ConsoleLine::numChars(), openmsx::Scale_1on2< Pixel >::operator()(), openmsx::CollectionSaver< TC >::operator()(), openmsx::CollectionLoader< TC >::operator()(), openmsx::OSDWidget::paintGLRecursive(), openmsx::OSDWidget::paintSDLRecursive(), openmsx::RawTrack::readBlock(), openmsx::MSXMixer::reInit(), openmsx::MSXCPUInterface::replace_IO_Out(), circular_buffer< std::unique_ptr< openmsx::Frame > >::reserve(), openmsx::SpriteChecker::reset(), openmsx::MemBuffer< char, SSE2_ALIGNMENT >::resize(), openmsx::RomAscii16_2::RomAscii16_2(), openmsx::RomAscii8_8::RomAscii8_8(), openmsx::RomColecoMegaCart::RomColecoMegaCart(), openmsx::RomDatabase::RomDatabase(), openmsx::MemOutputArchive::save(), openmsx::SCSIHD::SCSIHD(), openmsx::SDLImage::SDLImage(), openmsx::SDLOffScreenSurface::SDLOffScreenSurface(), SDLSurfacePtr::SDLSurfacePtr(), circular_buffer< std::unique_ptr< openmsx::Frame > >::set_capacity(), openmsx::RomBlocks< BANK_SIZE_ >::setBlockMask(), openmsx::RomBlocks< BANK_SIZE_ >::setExtraMemory(), openmsx::AviWriter::setFps(), openmsx::CPUCore< openmsx::Z80TYPE >::setInterface(), openmsx::ReverseManager::setReRecordCount(), TclParser::TclParser(), openmsx::OSDWidget::transformPos(), openmsx::UnicodeKeymap::UnicodeKeymap(), openmsx::CRC16::update(), openmsx::RawTrack::updateCrc(), openmsx::LocalFile::write(), openmsx::Wav16Writer::write(), openmsx::RawTrack::writeBlock(), openmsx::Carnivore2::writeMem(), openmsx::XSAExtractor::XSAExtractor(), openmsx::ZipFileAdapter::ZipFileAdapter(), openmsx::AviWriter::~AviWriter(), openmsx::MSXMultiMemDevice::~MSXMultiMemDevice(), openmsx::MSXtar::~MSXtar(), openmsx::OSDConsoleRenderer::~OSDConsoleRenderer(), openmsx::PreCacheFile::~PreCacheFile(), openmsx::SCSILS120::~SCSILS120(), and openmsx::Touchpad::~Touchpad().

◆ substr()

string_view utf8::unchecked::substr ( string_view  utf8,
string_view::size_type  first = 0,
string_view::size_type  len = string_view::npos 
)
inline

◆ utf16to8()

template<typename u16bit_iterator , typename octet_iterator >
octet_iterator utf8::unchecked::utf16to8 ( u16bit_iterator  start,
u16bit_iterator  end,
octet_iterator  result 
)

◆ utf32to8()

template<typename octet_iterator , typename u32bit_iterator >
octet_iterator utf8::unchecked::utf32to8 ( u32bit_iterator  start,
u32bit_iterator  end,
octet_iterator  result 
)

Definition at line 161 of file utf8_unchecked.hh.

References append().

◆ utf8to16()

template<typename u16bit_iterator , typename octet_iterator >
u16bit_iterator utf8::unchecked::utf8to16 ( octet_iterator  start,
octet_iterator  end,
u16bit_iterator  result 
)

◆ utf8to32()

template<typename octet_iterator , typename u32bit_iterator >
u32bit_iterator utf8::unchecked::utf8to32 ( octet_iterator  start,
octet_iterator  end,
u32bit_iterator  result 
)

Definition at line 171 of file utf8_unchecked.hh.

References next().