openMSX
Classes | Functions
zstring_view.hh File Reference
#include <cassert>
#include <cstring>
#include <string>
#include <string_view>
#include <type_traits>
Include dependency graph for zstring_view.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  zstring_view
 Like std::string_view, but with the extra guarantee that it refers to a zero-terminated string. More...
 

Functions

constexpr auto begin (const zstring_view &x)
 
constexpr auto end (const zstring_view &x)
 
constexpr bool operator== (const zstring_view &x, const zstring_view &y)
 
bool operator== (const zstring_view &x, const std::string &y)
 
bool operator== (const std::string &x, const zstring_view &y)
 
constexpr bool operator== (const zstring_view &x, const std::string_view &y)
 
constexpr bool operator== (const std::string_view &x, const zstring_view &y)
 
constexpr bool operator== (const zstring_view &x, const char *y)
 
constexpr bool operator== (const char *x, const zstring_view &y)
 
constexpr bool operator!= (const zstring_view &x, const zstring_view &y)
 
bool operator!= (const zstring_view &x, const std::string &y)
 
bool operator!= (const std::string &x, const zstring_view &y)
 
constexpr bool operator!= (const zstring_view &x, const std::string_view &y)
 
constexpr bool operator!= (const std::string_view &x, const zstring_view &y)
 
constexpr bool operator!= (const zstring_view &x, const char *y)
 
constexpr bool operator!= (const char *x, const zstring_view &y)
 

Function Documentation

◆ begin()

constexpr auto begin ( const zstring_view x)
constexpr

Definition at line 82 of file zstring_view.hh.

References openmsx::x.

Referenced by openmsx::MSXMultiMemDevice::add(), openmsx::TclObject::addListElements(), openmsx::OSDWidget::addWidget(), ranges::all_of(), ranges::any_of(), detail::append(), append(), view::detail::Drop< Range >::begin(), view::detail::DropBack< Range >::begin(), view::detail::Transform< Range, UnaryOp >::begin(), ranges::binary_search(), openmsx::Completer::completeString(), concat(), contains(), ranges::copy(), ranges::copy_if(), openmsx::IPSPatch::copyBlock(), ranges::count(), ranges::count_if(), view::detail::DropBack< Range >::end(), enumerate(), ranges::equal_range(), ranges::fill(), cstd::fill(), openmsx::Completer::filter(), ranges::find(), ranges::find_if(), find_if_unguarded(), find_unguarded(), ranges::generate(), openmsx::OggReader::getAudio(), openmsx::WatchIO::getDevice(), openmsx::ClockPin::getTicksBetween(), ranges::iota(), openmsx::IPSPatch::IPSPatch(), ranges::is_sorted(), ranges::lower_bound(), max_value(), min_value(), ranges::none_of(), openmsx::CollectionSaver< TC >::operator()(), partition_copy_remove(), ranges::remove(), ranges::remove_if(), ranges::replace(), cstd::replace(), ranges::replace_if(), openmsx::OggReader::seek(), ranges::set_difference(), utf8::unchecked::size(), ranges::sort(), StringOp::split_view(), ranges::stable_sort(), utf8::unchecked::substr(), sum(), detail::sum_of_sizes(), TEST_CASE(), openmsx::MSXCPUInterface::testUnsetExpanded(), to_vector(), ranges::transform(), transform_in_place(), ranges::unique(), and ranges::upper_bound().

◆ end()

constexpr auto end ( const zstring_view x)
constexpr

Definition at line 83 of file zstring_view.hh.

References openmsx::x.

Referenced by openmsx::TclObject::addListElements(), openmsx::AviRecorder::addWave(), utf8::advance(), ranges::all_of(), ranges::any_of(), detail::append(), append(), view::detail::Drop< Range >::begin(), ranges::binary_search(), openmsx::Completer::completeString(), contains(), ranges::copy(), ranges::copy_if(), ranges::count(), ranges::count_if(), openmsx::LastDeltaBlocks::createNew(), openmsx::LastDeltaBlocks::createNullDiff(), view::detail::Drop< Range >::end(), view::detail::DropBack< Range >::end(), view::detail::Transform< Range, UnaryOp >::end(), enumerate(), ranges::equal_range(), openmsx::RomDatabase::fetchRomInfo(), ranges::fill(), cstd::fill(), openmsx::Completer::filter(), ranges::find(), ranges::find_if(), find_if_unguarded(), utf8::find_invalid(), find_unguarded(), openmsx::XMLElement::findAttribute(), openmsx::OSDTopWidget::findByName(), openmsx::XMLElement::findChild(), openmsx::XMLElement::findChildWithAttribute(), openmsx::MSXCommandController::findCommand(), openmsx::PluggingController::findConnector(), openmsx::MSXMotherBoard::findDevice(), openmsx::MSXMixer::findDevice(), openmsx::MSXMotherBoard::findExtension(), openmsx::PluggingController::findPluggable(), openmsx::Debugger::findProbe(), openmsx::SettingsManager::findSetting(), openmsx::UserSettings::findSetting(), openmsx::EnumSettingBase::fromStringBase(), ranges::generate(), openmsx::TTFFontPool::get(), openmsx::UnicodeKeymap::get(), openmsx::OggReader::getAudio(), openmsx::OggReader::getChapter(), openmsx::Keys::getCode(), openmsx::ResampleCoeffs::getCoeffs(), openmsx::Reactor::getHwConfigs(), openmsx::HDImageCLI::getImageForId(), openmsx::ClockPin::getTicksBetween(), ranges::iota(), openmsx::IPSPatch::IPSPatch(), ranges::is_sorted(), utf8::is_valid(), ranges::lower_bound(), max_value(), min_value(), utf8::next(), ranges::none_of(), openmsx::CollectionSaver< TC >::operator()(), openmsx::CommandLineParser::parse(), partition_copy_remove(), utf8::peek_next(), openmsx::ImagePrinter::printVisibleCharacter(), utf8::prior(), openmsx::DiskManipulator::registerDrive(), openmsx::GlobalCommandController::registerProxyCommand(), openmsx::GlobalCommandController::registerProxySetting(), openmsx::WavImageCache::release(), ranges::remove(), ranges::remove_if(), openmsx::XMLElement::removeAttribute(), openmsx::OSDTopWidget::removeName(), openmsx::MSXCPUInterface::removeWatchPoint(), openmsx::Display::repaintImpl(), ranges::replace(), cstd::replace(), ranges::replace_if(), utf8::replace_invalid(), openmsx::InputArchiveBase2::resetSharedPtr(), openmsx::OggReader::seek(), ranges::set_difference(), openmsx::XMLElement::setAttribute(), utf8::unchecked::size(), ranges::sort(), StringOp::split_view(), ranges::stable_sort(), utf8::unchecked::substr(), sum(), detail::sum_of_sizes(), openmsx::EventDelay::sync(), TEST_CASE(), openmsx::MSXCPUInterface::testUnsetExpanded(), to_vector(), openmsx::TigerHash::toString(), ranges::transform(), transform_in_place(), ranges::unique(), openmsx::DiskManipulator::unregisterDrive(), openmsx::GlobalCommandController::unregisterProxyCommand(), openmsx::GlobalCommandController::unregisterProxySetting(), openmsx::RawTrack::updateCrc(), ranges::upper_bound(), utf8::utf16to8(), utf8::unchecked::utf16to8(), utf8::utf32to8(), utf8::unchecked::utf32to8(), utf8::utf8to16(), utf8::unchecked::utf8to16(), utf8::utf8to32(), utf8::unchecked::utf8to32(), utf8::internal::validate_next(), openmsx::RawTrack::write(), and openmsx::CompressedFileAdapter::~CompressedFileAdapter().

◆ operator!=() [1/7]

constexpr bool operator!= ( const char *  x,
const zstring_view y 
)
constexpr

Definition at line 124 of file zstring_view.hh.

References openmsx::x.

◆ operator!=() [2/7]

bool operator!= ( const std::string &  x,
const zstring_view y 
)
inline

Definition at line 112 of file zstring_view.hh.

References openmsx::x.

◆ operator!=() [3/7]

constexpr bool operator!= ( const std::string_view &  x,
const zstring_view y 
)
constexpr

Definition at line 118 of file zstring_view.hh.

References openmsx::x.

◆ operator!=() [4/7]

constexpr bool operator!= ( const zstring_view x,
const char *  y 
)
constexpr

Definition at line 121 of file zstring_view.hh.

References openmsx::x.

◆ operator!=() [5/7]

bool operator!= ( const zstring_view x,
const std::string &  y 
)
inline

Definition at line 109 of file zstring_view.hh.

References openmsx::x.

◆ operator!=() [6/7]

constexpr bool operator!= ( const zstring_view x,
const std::string_view &  y 
)
constexpr

Definition at line 115 of file zstring_view.hh.

References openmsx::x.

◆ operator!=() [7/7]

constexpr bool operator!= ( const zstring_view x,
const zstring_view y 
)
constexpr

Definition at line 106 of file zstring_view.hh.

References openmsx::x.

◆ operator==() [1/7]

constexpr bool operator== ( const char *  x,
const zstring_view y 
)
constexpr

Definition at line 103 of file zstring_view.hh.

References openmsx::x.

◆ operator==() [2/7]

bool operator== ( const std::string &  x,
const zstring_view y 
)
inline

Definition at line 91 of file zstring_view.hh.

References openmsx::x.

◆ operator==() [3/7]

constexpr bool operator== ( const std::string_view &  x,
const zstring_view y 
)
constexpr

Definition at line 97 of file zstring_view.hh.

References openmsx::x.

◆ operator==() [4/7]

constexpr bool operator== ( const zstring_view x,
const char *  y 
)
constexpr

Definition at line 100 of file zstring_view.hh.

References openmsx::x.

◆ operator==() [5/7]

bool operator== ( const zstring_view x,
const std::string &  y 
)
inline

Definition at line 88 of file zstring_view.hh.

References openmsx::x.

◆ operator==() [6/7]

constexpr bool operator== ( const zstring_view x,
const std::string_view &  y 
)
constexpr

Definition at line 94 of file zstring_view.hh.

References openmsx::x.

◆ operator==() [7/7]

constexpr bool operator== ( const zstring_view x,
const zstring_view y 
)
constexpr

Definition at line 85 of file zstring_view.hh.

References openmsx::x.