Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
CaseInsensitiveStringEqual Struct Reference

Public Member Functions

bool operator() (const string &a, const string &b) const
 Performs a case-insensitive comparison of two strings.
 

Detailed Description

Definition at line 1489 of file ah-functional.cc.

Member Function Documentation

◆ operator()()

bool CaseInsensitiveStringEqual::operator() ( const string &  a,
const string &  b 
) const
inline

Performs a case-insensitive comparison of two strings.

Compares the two strings for equality by checking that they have the same length and that each corresponding character is equal after conversion with std::tolower (characters are cast to unsigned char before conversion).

Parameters
aFirst string to compare.
bSecond string to compare.
Returns
true if both strings have the same length and are equal ignoring case, false otherwise.

Definition at line 1501 of file ah-functional.cc.

References Aleph::divide_and_conquer_partition_dp().


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