BloombergLP::bdlb::StringRefUtil::areEqualCaseless

Return true if lhs and rhs compare equal ignoring case.

Synopsis

Declared in <bdlb_stringrefutil.h>

static
bool
areEqualCaseless(
    bslstl::StringRef const& lhs,
    bslstl::StringRef const& rhs);

Description

Compare (the referent data of) the specified lhs and rhs. Return true if lhs and rhs are equal up to a case conversion, and false otherwise. See {Caseless Comparisons}.

Return Value

true if equal ignoring case, and false otherwise

Parameters

NameDescription
lhsleft-hand string to compare
rhsright-hand string to compare