BloombergLP::bdlb::StringViewUtil::areEqualCaseless

Return true if lhs and rhs are equal ignoring case.

Synopsis

Declared in <bdlb_stringviewutil.h>

static
bool
areEqualCaseless(
    std::string_view const& lhs,
    std::string_view 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 view
rhsright-hand string view