openMSX
Classes | Functions
zstring_view.hh File Reference
#include <cassert>
#include <cstring>
#include <iostream>
#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 auto operator< (const zstring_view &x, const zstring_view &y)
 
auto operator< (const zstring_view &x, const std::string &y)
 
constexpr auto operator< (const zstring_view &x, const std::string_view &y)
 
constexpr auto operator< (const zstring_view &x, const char *y)
 
constexpr auto operator<= (const zstring_view &x, const zstring_view &y)
 
auto operator<= (const zstring_view &x, const std::string &y)
 
constexpr auto operator<= (const zstring_view &x, const std::string_view &y)
 
constexpr auto operator<= (const zstring_view &x, const char *y)
 
constexpr auto operator> (const zstring_view &x, const zstring_view &y)
 
auto operator> (const zstring_view &x, const std::string &y)
 
constexpr auto operator> (const zstring_view &x, const std::string_view &y)
 
constexpr auto operator> (const zstring_view &x, const char *y)
 
constexpr auto operator>= (const zstring_view &x, const zstring_view &y)
 
auto operator>= (const zstring_view &x, const std::string &y)
 
constexpr auto operator>= (const zstring_view &x, const std::string_view &y)
 
constexpr auto operator>= (const zstring_view &x, const char *y)
 

Function Documentation

◆ begin()

constexpr auto begin ( const zstring_view x)
constexpr

◆ end()

constexpr auto end ( const zstring_view x)
constexpr

Definition at line 131 of file zstring_view.hh.

References zstring_view::end().

Referenced by utf8::advance(), openmsx::Completer::completeString(), openmsx::LastDeltaBlocks::createNew(), openmsx::LastDeltaBlocks::createNullDiff(), escape_newline::decode(), enumerate(), openmsx::Completer::filter(), utf8::find_invalid(), openmsx::OSDTopWidget::findByName(), openmsx::MSXCommandController::findCommand(), openmsx::PluggingController::findConnector(), openmsx::MSXMotherBoard::findDevice(), openmsx::MSXMixer::findDeviceInfo(), openmsx::MSXMotherBoard::findExtension(), openmsx::PluggingController::findPluggable(), openmsx::SettingsManager::findSetting(), openmsx::UserSettings::findSetting(), openmsx::TTFFontPool::get(), openmsx::OggReader::getAudio(), openmsx::ResampleCoeffs::getCoeffs(), openmsx::DiskManipulator::getDrive(), openmsx::ReverseManager::getEnd(), openmsx::Reactor::getHwConfigs(), openmsx::HDImageCLI::getImageForId(), openmsx::ClockPin::getTicksBetween(), im::ID(), im::ID(), utf8::is_valid(), utf8::next(), openmsx::XMLElement::numAttributes(), openmsx::XMLElement::numChildren(), openmsx::CollectionSaver< TC >::operator()(), openmsx::ImGuiConsole::paint(), openmsx::ParsedSlotCond::ParsedSlotCond(), utf8::peek_next(), openmsx::ImagePrinter::printVisibleCharacter(), utf8::prior(), ObjectPool< T >::ptr2Index(), openmsx::DiskManipulator::registerDrive(), openmsx::GlobalCommandController::registerProxyCommand(), openmsx::GlobalCommandController::registerProxySetting(), openmsx::OutputBuffer::release(), openmsx::WavImageCache::release(), openmsx::OSDTopWidget::removeName(), openmsx::MSXCPUInterface::removeWatchPoint(), openmsx::Display::repaintImpl(), utf8::replace_invalid(), utf8::replace_invalid(), openmsx::InputArchiveBase2::resetSharedPtr(), openmsx::OggReader::seek(), IterableBitSet< N >::setRange(), utf8::unchecked::size(), StringOp::split_view(), openmsx::ReverseManager::stopReplay(), utf8::unchecked::substr(), openmsx::EventDelay::sync(), TEST_CASE(), TEST_CASE(), ImGui::TextUnformatted(), ImGui::TextUnformatted(), openmsx::DiskManipulator::unregisterDrive(), openmsx::GlobalCommandController::unregisterProxyCommand(), openmsx::GlobalCommandController::unregisterProxySetting(), openmsx::RawTrack::updateCrc(), utf8::utf16to8(), utf8::unchecked::utf16to8(), utf8::utf32to8(), utf8::unchecked::utf32to8(), utf8::utf8to16(), utf8::unchecked::utf8to16(), utf8::utf8to32(), utf8::unchecked::utf8to32(), utf8::internal::validate_next(), utf8::internal::validate_next(), XMLOutputStream< Operations >::with_tag(), openmsx::RawTrack::write(), and openmsx::CompressedFileAdapter::~CompressedFileAdapter().

◆ operator<() [1/4]

constexpr auto operator< ( const zstring_view x,
const char *  y 
)
constexpr

Definition at line 144 of file zstring_view.hh.

◆ operator<() [2/4]

auto operator< ( const zstring_view x,
const std::string &  y 
)
inline

Definition at line 138 of file zstring_view.hh.

◆ operator<() [3/4]

constexpr auto operator< ( const zstring_view x,
const std::string_view &  y 
)
constexpr

Definition at line 141 of file zstring_view.hh.

◆ operator<() [4/4]

constexpr auto operator< ( const zstring_view x,
const zstring_view y 
)
constexpr

Definition at line 135 of file zstring_view.hh.

◆ operator<=() [1/4]

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

Definition at line 156 of file zstring_view.hh.

◆ operator<=() [2/4]

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

Definition at line 150 of file zstring_view.hh.

◆ operator<=() [3/4]

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

Definition at line 153 of file zstring_view.hh.

◆ operator<=() [4/4]

constexpr auto operator<= ( const zstring_view x,
const zstring_view y 
)
constexpr

Definition at line 147 of file zstring_view.hh.

◆ operator>() [1/4]

constexpr auto operator> ( const zstring_view x,
const char *  y 
)
constexpr

Definition at line 168 of file zstring_view.hh.

◆ operator>() [2/4]

auto operator> ( const zstring_view x,
const std::string &  y 
)
inline

Definition at line 162 of file zstring_view.hh.

◆ operator>() [3/4]

constexpr auto operator> ( const zstring_view x,
const std::string_view &  y 
)
constexpr

Definition at line 165 of file zstring_view.hh.

◆ operator>() [4/4]

constexpr auto operator> ( const zstring_view x,
const zstring_view y 
)
constexpr

Definition at line 159 of file zstring_view.hh.

◆ operator>=() [1/4]

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

Definition at line 180 of file zstring_view.hh.

◆ operator>=() [2/4]

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

Definition at line 174 of file zstring_view.hh.

◆ operator>=() [3/4]

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

Definition at line 177 of file zstring_view.hh.

◆ operator>=() [4/4]

constexpr auto operator>= ( const zstring_view x,
const zstring_view y 
)
constexpr

Definition at line 171 of file zstring_view.hh.