ManaPlus
Public Member Functions | Data Fields
Catch::Matchers::Impl::StdString::CasedString Struct Reference

#include <catch.hpp>

Public Member Functions

 CasedString (std::string const &str, CaseSensitive::Choice caseSensitivity)
 
std::string adjustString (std::string const &str) const
 
std::string toStringSuffix () const
 

Data Fields

CaseSensitive::Choice m_caseSensitivity
 
std::string m_str
 

Detailed Description

Definition at line 1050 of file catch.hpp.

Constructor & Destructor Documentation

◆ CasedString()

Catch::Matchers::Impl::StdString::CasedString::CasedString ( std::string const &  str,
CaseSensitive::Choice  caseSensitivity 
)
inline

Definition at line 1052 of file catch.hpp.

1053  : m_caseSensitivity( caseSensitivity ),
1054  m_str( adjustString( str ) )
1055  {}
std::string adjustString(std::string const &str) const
Definition: catch.hpp:1056

Member Function Documentation

◆ adjustString()

std::string Catch::Matchers::Impl::StdString::CasedString::adjustString ( std::string const &  str) const
inline

Definition at line 1056 of file catch.hpp.

1056  {
1058  ? toLower( str )
1059  : str;
1060 
1061  }
std::string toLower(std::string const &s)

References Catch::CaseSensitive::No, and Catch::toLower().

◆ toStringSuffix()

std::string Catch::Matchers::Impl::StdString::CasedString::toStringSuffix ( ) const
inline

Definition at line 1062 of file catch.hpp.

1063  {
1065  ? " (case insensitive)"
1066  : "";
1067  }

References Catch::CaseSensitive::No.

Field Documentation

◆ m_caseSensitivity

CaseSensitive::Choice Catch::Matchers::Impl::StdString::CasedString::m_caseSensitivity

Definition at line 1068 of file catch.hpp.

◆ m_str

std::string Catch::Matchers::Impl::StdString::CasedString::m_str

Definition at line 1069 of file catch.hpp.


The documentation for this struct was generated from the following file: