Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Matchers::StdString::CasedString Struct Reference

#include <catch_matchers_string.h>

Collaboration diagram for Catch::Matchers::StdString::CasedString:

Public Member Functions

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

Public Attributes

CaseSensitive::Choice m_caseSensitivity
 
std::string m_str
 

Detailed Description

Definition at line 3136 of file catch.hpp.

Constructor & Destructor Documentation

◆ CasedString() [1/2]

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

Definition at line 20 of file catch_matchers_string.cpp.

21 : m_caseSensitivity( caseSensitivity ),
22 m_str( adjustString( str ) )
23 {}
std::string adjustString(std::string const &str) const

◆ CasedString() [2/2]

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

Member Function Documentation

◆ adjustString() [1/2]

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

Definition at line 24 of file catch_matchers_string.cpp.

24 {
26 ? toLower( str )
27 : str;
28 }
return str
Definition CLI11.hpp:1359
std::string toLower(std::string const &s)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ adjustString() [2/2]

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

◆ caseSensitivitySuffix() [1/2]

std::string Catch::Matchers::StdString::CasedString::caseSensitivitySuffix ( ) const

Definition at line 29 of file catch_matchers_string.cpp.

29 {
31 ? " (case insensitive)"
32 : std::string();
33 }
Here is the caller graph for this function:

◆ caseSensitivitySuffix() [2/2]

std::string Catch::Matchers::StdString::CasedString::caseSensitivitySuffix ( ) const

Member Data Documentation

◆ m_caseSensitivity

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

Definition at line 26 of file catch_matchers_string.h.

◆ m_str

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

Definition at line 27 of file catch_matchers_string.h.


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