|
template<typename ContainerT > |
void | deleteAll (ContainerT &container) |
|
template<typename AssociativeContainerT > |
void | deleteAllValues (AssociativeContainerT &container) |
|
bool | startsWith (std::string const &s, std::string const &prefix) |
|
bool | endsWith (std::string const &s, std::string const &suffix) |
|
bool | contains (std::string const &s, std::string const &infix) |
|
void | toLowerInPlace (std::string &s) |
|
std::string | toLower (std::string const &s) |
|
std::string | trim (std::string const &str) |
|
bool | replaceInPlace (std::string &str, std::string const &replaceThis, std::string const &withThis) |
|
std::ostream & | operator<< (std::ostream &os, SourceLineInfo const &info) |
|
bool | isTrue (bool value) |
|
bool | alwaysTrue () |
|
bool | alwaysFalse () |
|
void | throwLogicError (std::string const &message, SourceLineInfo const &locationInfo) |
|
void | seedRng (IConfig const &config) |
|
unsigned int | rngSeed () |
|
template<typename T > |
T const & | operator+ (T const &value, StreamEndStop) |
|
IGeneratorsForTest * | createGeneratorsForTest () |
|
IContext & | getCurrentContext () |
|
IMutableContext & | getCurrentMutableContext () |
|
void | cleanUpContext () |
|
Stream | createStream (std::string const &streamName) |
|
bool | matchTest (TestCase const &testCase, TestSpec const &testSpec, IConfig const &config) |
|
std::vector< TestCase > | filterTests (std::vector< TestCase > const &testCases, TestSpec const &testSpec, IConfig const &config) |
|
std::vector< TestCase > const & | getAllTestCasesSorted (IConfig const &config) |
|
void | registerTestCase (ITestCase *testCase, char const *className, NameAndDesc const &nameAndDesc, SourceLineInfo const &lineInfo) |
|
void | registerTestCaseFunction (TestFunction function, SourceLineInfo const &lineInfo, NameAndDesc const &nameAndDesc) |
|
bool | isOk (ResultWas::OfType resultType) |
|
bool | isJustInfo (int flags) |
|
ResultDisposition::Flags | operator| (ResultDisposition::Flags lhs, ResultDisposition::Flags rhs) |
|
bool | shouldContinueOnFailure (int flags) |
|
bool | isFalseTest (int flags) |
|
bool | shouldSuppressFailure (int flags) |
|
template<typename T > |
std::string | toString (T const &value) |
| converts any type to a string More...
|
|
std::string | toString (std::string const &value) |
|
std::string | toString (std::wstring const &value) |
|
std::string | toString (const char *const value) |
|
std::string | toString (char *const value) |
|
std::string | toString (const wchar_t *const value) |
|
std::string | toString (wchar_t *const value) |
|
std::string | toString (int value) |
|
std::string | toString (unsigned long value) |
|
std::string | toString (unsigned int value) |
|
std::string | toString (const double value) |
|
std::string | toString (const float value) |
|
std::string | toString (bool value) |
|
std::string | toString (char value) |
|
std::string | toString (signed char value) |
|
std::string | toString (unsigned char value) |
|
template<typename T , typename Allocator > |
std::string | toString (std::vector< T, Allocator > const &v) |
|
IResultCapture & | getResultCapture () |
|
bool | isDebuggerActive () |
|
void | writeToDebugConsole (std::string const &text) |
|
IRegistryHub & | getRegistryHub () |
|
IMutableRegistryHub & | getMutableRegistryHub () |
|
void | cleanUp () |
|
std::string | translateActiveException () |
|
template<> |
std::string | toString< Detail::Approx > (Detail::Approx const &value) |
|
TestCase | makeTestCase (ITestCase *testCase, std::string const &className, std::string const &name, std::string const &description, SourceLineInfo const &lineInfo) |
|
template<typename T >
std::string Catch::toString |
( |
T const & |
value | ) |
|
converts any type to a string
The default template forwards on to ostringstream - except when an ostringstream overload does not exist - in which case it attempts to detect that and writes {?}. Overload (not specialise) this template for custom typs that you don't want to provide an ostream overload for.
Definition at line 1774 of file catch.hpp.
1775 return StringMaker<T>::convert( value );
References Catch::Detail::StringMakerBase< Detail::IsStreamInsertable< T >::value >::convert().
Referenced by Pincode::action(), Setup_Colors::action(), Setup_Video::action(), CharSelectDialog::action(), KillStats::action(), Pincode::addButtons(), ChatWindow::addColors(), LocalPlayer::addJobMessage(), SkillDialog::addSkill(), LocalPlayer::addXpMessage(), ChatWindow::attributeChanged(), KillStats::attributeChanged(), ConfigManager::backupConfig(), Setup_Video::cancel(), Catch::ExpressionLhs< T >::captureExpression(), createGuiWindows(), debugCallback(), ResourceManager::deleteInstance(), ResourceManager::deleteResourceManager(), UpdaterWindow::download(), ItemContainer::draw(), ItemShortcutContainer::draw(), VirtShortcutContainer::draw(), EquipmentWindow::draw(), FloorItem::draw(), Viewport::drawPath(), EditServerDialog::EditServerDialog(), Catch::ExpressionLhs< T >::endExpression(), TestMain::exec(), Joystick::finishCalibration(), SetupItemDropDown::fromWidget(), SetupItemSlider::fromWidget(), SetupItemSlider2::fromWidget(), SetupItemSliderInt::fromWidget(), SetupActionDropDown::fromWidget(), KillStats::gainXp(), SDL::getAllVideoModes(), ItemPopup::getCardsString(), WorldListModel::getElementAt(), ScrollArea::getImageByState(), Loader::getImageSet(), ItemPopup::getOptionsString(), LocalPlayer::getPingTime(), Theme::getProgressColor(), Loader::getSprite(), Configuration::getStringValue(), Loader::getSubImage(), Loader::getSubImageSet(), PopupMenu::handleLink(), Map::initializeAmbientLayers(), KillStats::KillStats(), ItemShortcut::load(), ShortcutBase::load(), SetupItem::load(), OutfitWindow::load(), SpellManager::load(), MiniStatusWindow::loadBars(), WindowMenu::loadButtons(), ServerDialog::loadCustomServers(), loadQuest(), ChatWindow::loadState(), UpdaterWindow::logic(), ResourceManager::logResource(), ModeListModel::ModeListModel(), MiniStatusWindow::mouseMoved(), Joystick::open(), SpellManager::parseCommand(), EAthena::MessageIn::postInit(), TmwAthena::ChatRecv::processBeingChat(), TmwAthena::TradeRecv::processTradeItemAddResponse(), Catch::Detail::rangeToString(), Net::MessageIn::readCoordinatePair(), Net::MessageIn::readCoordinates(), MapReader::readTileset(), Configuration::removeOldKeys(), TmwAthena::BuySellHandler::requestBuyList(), GuildManager::requestGuildInfo(), TmwAthena::BuySellHandler::requestSellList(), ItemContainer::safeDraw(), ItemShortcutContainer::safeDraw(), VirtShortcutContainer::safeDraw(), EquipmentWindow::safeDraw(), EmoteShortcut::save(), ItemShortcut::save(), ShortcutBase::save(), OutfitWindow::save(), SpellManager::save(), MiniStatusWindow::saveBars(), WindowMenu::saveButtons(), ServerDialog::saveCustomServers(), PlayerInfo::saveProtectedItems(), ChatWindow::saveState(), ChatWindow::saveTab(), Being::setAction(), CharCreateDialog::setAttributes(), Setup_Colors::setEntry(), Setup_Video::Setup_Video(), Setup_Visual::Setup_Visual(), IntTextField::setValue(), Configuration::setValue(), Configuration::setValueInt(), Being::showName(), QuestsWindow::showQuest(), Pincode::shuffle(), Net::MessageIn::skip(), Net::MessageIn::skipToEnd(), GuildManager::slowLogic(), InputManager::store(), Being::takeDamage(), Catch::Detail::Approx::toString(), AttrDisplay::update(), ChangeDisplay::update(), KillStats::update(), SkillInfo::update(), StatusWindow::updateArrowsBar(), ShopItem::updateDisplayName(), StatusWindow::updateHPBar(), StatusWindow::updateMPBar(), ActorManager::updateNameId(), UpdaterWindow::updateProgress(), StatusWindow::updateProgressBar(), CharCreateDialog::updateSliders(), WhoIsOnline::updateWindow(), anonymous_namespace{playerrelations.cpp}::PlayerConfSerialiser::writeConfigItem(), and PacketLimiter::writePacketLimits().