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 >
auto 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 (std::string_view utf8)
 
std::string_view substr (std::string_view utf8, std::string_view::size_type first=0, std::string_view::size_type len=std::string_view::npos)
 

Function Documentation

◆ advance()

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

Definition at line 108 of file utf8_unchecked.hh.

References next().

Referenced by utf8::unchecked::iterator< octet_iterator >::operator++(), and substr().

◆ append()

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

Definition at line 39 of file utf8_unchecked.hh.

Referenced by utf16to8(), and utf32to8().

◆ distance()

template<typename octet_iterator >
auto utf8::unchecked::distance ( octet_iterator  first,
octet_iterator  last 
)

Definition at line 116 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 94 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 ( std::string_view  utf8)
inline

Definition at line 227 of file utf8_unchecked.hh.

References distance().

Referenced by openmsx::StretchScalerOutputBase< Pixel >::acquireLine(), openmsx::MSXMultiMemDevice::add(), openmsx::AviWriter::addFrame(), openmsx::DeltaBlockCopy::apply(), openmsx::DeltaBlockDiff::apply(), openmsx::RawTrack::calcCrc(), strCatImpl::calcTotalSizeHelper(), openmsx::MSXMultiMemDevice::canAdd(), openmsx::V9990VRAM::clear(), openmsx::RawTrack::clear(), openmsx::DeltaBlockCopy::compress(), openmsx::LastDeltaBlocks::createNew(), openmsx::LastDeltaBlocks::createNullDiff(), openmsx::DeltaBlockCopy::DeltaBlockCopy(), openmsx::DeltaBlockDiff::DeltaBlockDiff(), openmsx::MSXDevice::fillDeviceRCache(), openmsx::MSXDevice::fillDeviceRWCache(), openmsx::MSXDevice::fillDeviceWCache(), openmsx::MSXCPUInterface::fillRCache(), openmsx::MSXCPU::fillRCache(), openmsx::MSXCPUInterface::fillRWCache(), openmsx::MSXCPU::fillRWCache(), openmsx::MSXCPUInterface::fillWCache(), openmsx::MSXCPU::fillWCache(), openmsx::SettingsManager::findSetting(), openmsx::OggReader::getAudio(), openmsx::Reactor::getHwConfigs(), openmsx::VRAMWindow::getReadArea(), openmsx::VRAMWindow::getReadAreaPlanar(), openmsx::CheckedRam::getRWCacheLines(), openmsx::FileOperations::getSystemDataDir(), openmsx::MSXDevice::getVisibleMemRegion(), openmsx::InputBuffer::InputBuffer(), openmsx::MSXCPU::invalidateAllSlotsRWCache(), openmsx::MSXDevice::invalidateDeviceRCache(), openmsx::MSXDevice::invalidateDeviceRWCache(), openmsx::MSXDevice::invalidateDeviceWCache(), openmsx::MSXCPUInterface::invalidateRCache(), openmsx::MSXCPUInterface::invalidateRWCache(), openmsx::MSXCPUInterface::invalidateWCache(), openmsx::VRAMWindow::isContinuous(), openmsx::XMLLoader::load(), openmsx::MemoryOps::mallocAligned(), openmsx::SRAM::memset(), openmsx::FileBase::mmap(), openmsx::LocalFile::mmap(), openmsx::MSXSCCPlusCart::MSXSCCPlusCart(), openmsx::ConsoleLine::numChars(), openmsx::CollectionSaver< TC >::operator()(), openmsx::CollectionLoader< TC >::operator()(), openmsx::OSDWidget::paintGLRecursive(), openmsx::OSDWidget::paintSDLRecursive(), openmsx::RamDSKDiskImage::RamDSKDiskImage(), openmsx::RawTrack::RawTrack(), openmsx::RawTrack::readBlock(), openmsx::MSXCPUInterface::registerMemDevice(), openmsx::OutputBuffer::release(), openmsx::MemOutputArchive::releaseBuffer(), openmsx::MSXMultiMemDevice::remove(), openmsx::MemBuffer< const byte * >::resize(), openmsx::RomAscii16_2::RomAscii16_2(), openmsx::RomAscii8_8::RomAscii8_8(), openmsx::RomColecoMegaCart::RomColecoMegaCart(), openmsx::RomDatabase::RomDatabase(), openmsx::MemOutputArchive::save(), openmsx::SDLOffScreenSurface::SDLOffScreenSurface(), SDLSurfacePtr::SDLSurfacePtr(), openmsx::SDLVisibleSurface::SDLVisibleSurface(), openmsx::RomBlocks< BANK_SIZE_ >::setExtraMemory(), span< const uint8_t >::span(), strCat(), TEST_CASE(), openmsx::File::truncate(), openmsx::LocalFile::truncate(), openmsx::MSXCPUInterface::unregisterMemDevice(), openmsx::CRC16::update(), openmsx::RawTrack::updateCrc(), openmsx::Wav16Writer::write(), openmsx::RawTrack::writeBlock(), and openmsx::AviWriter::~AviWriter().

◆ substr()

std::string_view utf8::unchecked::substr ( std::string_view  utf8,
std::string_view::size_type  first = 0,
std::string_view::size_type  len = std::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 159 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 169 of file utf8_unchecked.hh.

References next().