openMSX
|
#include "TemporaryString.hh"
#include "ranges.hh"
#include "xrange.hh"
#include "zstring_view.hh"
#include <array>
#include <climits>
#include <limits>
#include <span>
#include <sstream>
#include <string>
#include <string_view>
#include <tuple>
#include <utility>
Go to the source code of this file.
Namespaces | |
namespace | strCatImpl |
Typedefs | |
template<typename T > | |
using | strCatImpl::FastUnsigned = typename FastUnsignedImpl< T >::type |
Enumerations | |
enum class | HexCase { lower , upper } |
Functions | |
template<typename... Ts> | |
std::string | strCat (Ts &&...ts) |
template<typename... Ts> | |
TemporaryString | tmpStrCat (Ts &&... ts) |
template<typename... Ts> | |
void | strAppend (std::string &result, Ts &&...ts) |
template<std::unsigned_integral T> | |
FastUnsigned< T > | strCatImpl::absHelper (T t) |
template<typename T > | |
auto | strCatImpl::makeConcatUnit (const T &t) |
auto | strCatImpl::makeConcatUnit (const std::string &s) |
auto | strCatImpl::makeConcatUnit (const char *s) |
auto | strCatImpl::makeConcatUnit (char *s) |
auto | strCatImpl::makeConcatUnit (const TemporaryString &s) |
auto | strCatImpl::makeConcatUnit (zstring_view s) |
auto | strCatImpl::makeConcatUnit (signed char c) |
auto | strCatImpl::makeConcatUnit (unsigned char c) |
auto | strCatImpl::makeConcatUnit (short s) |
auto | strCatImpl::makeConcatUnit (unsigned short s) |
auto | strCatImpl::makeConcatUnit (int i) |
auto | strCatImpl::makeConcatUnit (unsigned u) |
auto | strCatImpl::makeConcatUnit (long l) |
auto | strCatImpl::makeConcatUnit (unsigned long l) |
auto | strCatImpl::makeConcatUnit (long long l) |
auto | strCatImpl::makeConcatUnit (unsigned long long l) |
template<HexCase Case, std::integral T> | |
auto | strCatImpl::makeConcatUnit (const ConcatVariableWidthHexIntegral< Case, T > &t) |
template<size_t N, HexCase Case, std::integral T> | |
auto | strCatImpl::makeConcatUnit (const ConcatFixedWidthHexIntegral< N, Case, T > &t) |
template<size_t N, std::integral T> | |
auto | strCatImpl::makeConcatUnit (const ConcatFixedWidthBinIntegral< N, T > &t) |
template<size_t N, std::integral T> | |
auto | strCatImpl::makeConcatUnit (const ConcatFixedWidthDecIntegral< N, T > &t) |
auto | strCatImpl::makeConcatUnit (const ConcatSpaces &t) |
template<typename Tuple , size_t... Is> | |
size_t | strCatImpl::calcTotalSizeHelper (const Tuple &t, std::index_sequence< Is... >) |
template<typename... Ts> | |
size_t | strCatImpl::calcTotalSize (const std::tuple< Ts... > &t) |
template<typename Tuple , size_t... Is> | |
void | strCatImpl::copyUnitsHelper (char *dst, const Tuple &t, std::index_sequence< Is... >) |
template<typename... Ts> | |
void | strCatImpl::copyUnits (char *dst, const std::tuple< Ts... > &t) |
std::string | strCatImpl::to_string (std::integral auto x) |
template<typename... Ts> | |
std::string | strCat (std::string &&first, Ts &&...ts) |
std::string | strCat () |
std::string | strCat (const std::string &x) |
std::string | strCat (std::string &&x) |
std::string | strCat (const char *x) |
std::string | strCat (char x) |
std::string | strCat (std::string_view x) |
std::string | strCat (signed char x) |
std::string | strCat (unsigned char x) |
std::string | strCat (short x) |
std::string | strCat (unsigned short x) |
std::string | strCat (int x) |
std::string | strCat (unsigned x) |
std::string | strCat (long x) |
std::string | strCat (unsigned long x) |
std::string | strCat (long long x) |
std::string | strCat (unsigned long long x) |
std::string | strCat (const std::string &x, const std::string &y) |
std::string | strCat (const char *x, const std::string &y) |
std::string | strCat (char x, const std::string &y) |
std::string | strCat (const std::string &x, const char *y) |
std::string | strCat (const std::string &x, char y) |
std::string | strCat (std::string &&x, const std::string &y) |
std::string | strCat (const std::string &x, std::string &&y) |
std::string | strCat (std::string &&x, std::string &&y) |
std::string | strCat (const char *x, std::string &&y) |
std::string | strCat (char x, std::string &&y) |
std::string | strCat (std::string &&x, const char *y) |
std::string | strCat (std::string &&x, char y) |
void | strAppend (std::string &) |
void | strAppend (std::string &x, const std::string &y) |
void | strAppend (std::string &x, const char *y) |
void | strAppend (std::string &x, std::string_view y) |
template<HexCase Case = HexCase::lower, std::integral T> | |
strCatImpl::ConcatVariableWidthHexIntegral< Case, T > | hex_string (Digits n, T t) |
template<size_t N, HexCase Case = HexCase::lower, std::integral T> | |
auto | hex_string (T t) |
template<size_t N, std::integral T> | |
auto | bin_string (T t) |
template<size_t N, std::integral T> | |
auto | dec_string (T t) |
auto | spaces (size_t n) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 801 of file strCat.hh.
Referenced by strCatImpl::ConcatFixedWidthDecIntegral< N, T >::copy(), TEST_CASE(), and TEST_CASE().
void strAppend | ( | std::string & | result, |
Ts &&... | ts | ||
) |
Definition at line 752 of file strCat.hh.
References strCatImpl::calcTotalSize(), strCatImpl::copyUnits(), strCatImpl::makeConcatUnit(), and t.
Referenced by openmsx::ConsoleLine::addLine(), openmsx::appendAddrAsHex(), openmsx::XmlInputArchive::beginTag(), openmsx::dasm(), openmsx::DebuggableEditor::DebuggableEditor(), openmsx::MSXtar::dir(), openmsx::NowindCommand::execute(), openmsx::Version::full(), openmsx::CartridgeSlotManager::getPsSsString(), openmsx::getShortCutForCommand(), openmsx::Display::getWindowTitle(), openmsx::ImGuiBitmapViewer::ImGuiBitmapViewer(), openmsx::ImGuiCharacter::ImGuiCharacter(), openmsx::ImGuiSpriteViewer::ImGuiSpriteViewer(), openmsx::ImGuiConsole::paint(), openmsx::ImGuiDiskManipulator::paint(), openmsx::parseAllConfigFiles(), openmsx::parseBooleanInput(), openmsx::ImGuiMedia::printDatabase(), openmsx::Rom::Rom(), openmsx::RomDatabase::RomDatabase(), openmsx::ImGuiMedia::slotAndNameForHardwareConfig(), strCat(), TEST_CASE(), TEST_CASE(), openmsx::MSXDevice::testRemove(), openmsx::MSXCPUInterface::testUnsetExpanded(), openmsx::ParsedSlotCond::toDisplayString(), and openmsx::ParsedSlotCond::toTclExpression().
|
inline |
|
inline |
|
inline |
Definition at line 703 of file strCat.hh.
Referenced by openmsx::Checkbox(), openmsx::configFileContext(), openmsx::NowindCommand::createDiskChanger(), openmsx::JoyTap::createPorts(), openmsx::NowindCommand::execute(), openmsx::DiskImageUtils::formatAttrib(), openmsx::Version::full(), openmsx::DiskManipulator::getDriveNamesForCurrentMachine(), openmsx::BreakPointBase< Derived >::getIdStr(), openmsx::getKeyChordName(), openmsx::FileOperations::getNextNumberedFileName(), openmsx::CartridgeSlotManager::getPsSsString(), openmsx::MSXMotherBoard::getUserName(), openmsx::FileOperations::getUserOpenMSXDir(), openmsx::DiskCommand::help(), openmsx::CDXCommand::help(), openmsx::LSXCommand::help(), openmsx::ConfigInfo::help(), openmsx::FileOperations::join(), openmsx::ImGuiCheatFinder::paint(), openmsx::ImGuiDiskManipulator::paint(), openmsx::ImGuiManager::paintImGui(), openmsx::FileOperations::parseCommandFileArgument(), openmsx::HardwareConfig::parseSlots(), openmsx::parseTclArgs(), openmsx::DiskManipulator::registerDrive(), openmsx::ImGuiDebugger::showMenu(), openmsx::ImGuiHelp::showMenu(), openmsx::ImGuiMedia::showMenu(), openmsx::ImGuiReverseBar::showMenu(), openmsx::ImGuiSettings::showMenu(), openmsx::ImGuiMedia::slotAndNameForHardwareConfig(), openmsx::JoystickId::str(), openmsx::GlobalCommandController::tabCompletion(), TEST_CASE(), TEST_CASE(), openmsx::MSXCPUInterface::testUnsetExpanded(), openmsx::ParsedSlotCond::toDisplayString(), openmsx::toString(), openmsx::ParsedSlotCond::toTclExpression(), openmsx::userDataFileContext(), and openmsx::userFileContext().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 722 of file strCat.hh.
References strCatImpl::to_string().
|
inline |
Definition at line 726 of file strCat.hh.
References strCatImpl::to_string().
|
inline |
Definition at line 724 of file strCat.hh.
References strCatImpl::to_string().
|
inline |
Definition at line 720 of file strCat.hh.
References strCatImpl::to_string().
|
inline |
Definition at line 718 of file strCat.hh.
References strCatImpl::to_string().
std::string strCat | ( | std::string && | first, |
Ts &&... | ts | ||
) |
Definition at line 696 of file strCat.hh.
References strAppend().
|
inline |
|
inline |
|
inline |
std::string strCat | ( | Ts &&... | ts | ) |
Definition at line 674 of file strCat.hh.
References strCatImpl::calcTotalSize(), strCatImpl::copyUnits(), strCatImpl::makeConcatUnit(), and t.
|
inline |
Definition at line 719 of file strCat.hh.
References strCatImpl::to_string().
|
inline |
Definition at line 727 of file strCat.hh.
References strCatImpl::to_string().
|
inline |
Definition at line 725 of file strCat.hh.
References strCatImpl::to_string().
|
inline |
Definition at line 721 of file strCat.hh.
References strCatImpl::to_string().
|
inline |
Definition at line 723 of file strCat.hh.
References strCatImpl::to_string().
TemporaryString tmpStrCat | ( | Ts &&... | ts | ) |
Definition at line 742 of file strCat.hh.
References strCatImpl::calcTotalSize(), strCatImpl::copyUnits(), strCatImpl::makeConcatUnit(), and t.
Referenced by openmsx::XmlOutputArchive::attributeImpl(), openmsx::comboHexSequence(), openmsx::Interpreter::createNamespace(), openmsx::createNew< BreakPoint >(), openmsx::HardwareConfig::createRomConfig(), openmsx::Interpreter::deleteNamespace(), openmsx::DiskChanger::DiskChanger(), openmsx::ImGuiMedia::displayNameForDriveContent(), openmsx::DiskCommand::execute(), openmsx::CassettePlayerCommand::execute(), openmsx::HDCommand::execute(), openmsx::CDXCommand::execute(), openmsx::LSXCommand::execute(), openmsx::SettingsManager::findSetting(), openmsx::SettingsManager::findSetting(), openmsx::JoyMega::getDefaultConfig(), openmsx::MSXJoystick::getDefaultConfig(), openmsx::DiskManipulator::getDrive(), openmsx::FilePoolCore::getFile(), openmsx::AfterCmd::getIdStr(), openmsx::GLScaler::GLScaler(), openmsx::IDEHD::IDEHD(), TclParser::isProc(), openmsx::KeyboardSettings::KeyboardSettings(), openmsx::LedStatus::LedStatus(), openmsx::TclCallbackMessages::log(), openmsx::MsxChar2Unicode::MsxChar2Unicode(), openmsx::ImGuiReverseBar::paint(), openmsx::ImGuiSpriteViewer::paint(), openmsx::ImGuiSymbols::paint(), openmsx::ImGuiManager::paintImGui(), openmsx::ParsedSlotCond::ParsedSlotCond(), openmsx::DiskImageCLI::parseFileType(), openmsx::CliComm::printError(), openmsx::ImGuiManager::printError(), openmsx::CliComm::printInfo(), openmsx::CliComm::printWarning(), openmsx::MSXMixer::registerSound(), openmsx::ImGuiMedia::save(), openmsx::XmlOutputArchive::saveImpl(), openmsx::BaseSetting::setPrefix(), openmsx::ImGuiConnector::showMenu(), openmsx::ImGuiSettings::showMenu(), ImGui::StrCat(), openmsx::toTclList(), and openmsx::UnicodeKeymap::UnicodeKeymap().