ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
equal_to_string_ignore_case< TChar > Struct Template Reference

Description:

template<typename TChar = characters::character>
struct alib::strings::compatibility::std::equal_to_string_ignore_case< TChar >

Functor that can be used as an explicitly given replacement for std::equal_to with template types (containers) found in namespace std.
While the specialization of std::equal_to for type String, which is used by the default values of template arguments of the corresponding types in namespace std, performs a case-sensitive comparison, this version ignores the letter case of the characters of the given strings.

Note that this specialization can also be used in combination with derived string-types, like AString.

This functor is provided with the inclusion of header file alib/compatibility/std_strings_functional.hpp.

Note
While the documentation indicates namespace alib::strings::compatibility::std, the true location is namespace alib.
Template Parameters
TCharThe character type of the strings to compare. Defaults to character.

Definition at line 195 of file std_strings_functional.hpp.

#include <std_strings_functional.hpp>

Public Method Index:

bool operator() (const strings::TString< TChar > &lhs, const strings::TString< TChar > &rhs) const
 

Method Details:

◆ operator()()

template<typename TChar = characters::character>
bool operator() ( const strings::TString< TChar > & lhs,
const strings::TString< TChar > & rhs ) const
inline

Invokes String::Equals on lhs, passing rhs and returns the result.

Parameters
lhsThe first string object.
rhsThe second string object.
Returns
The result of the comparison.

Definition at line 203 of file std_strings_functional.hpp.


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