BloombergLP::bdlb::StringRefUtil::lowerCaseCmp

Compare lhs and rhs after converting both to lower case.

Synopsis

Declared in <bdlb_stringrefutil.h>

static
int
lowerCaseCmp(
    bslstl::StringRef const& lhs,
    bslstl::StringRef const& rhs);

Description

Compare (the referent data of) the specified lhs and rhs. Return 1 if, after a conversion to lower case, lhs is greater than rhs, 0 if lhs and rhs are equal up to a case conversion, and -1 otherwise. See {Caseless Comparisons}.

Return Value

1 if lhs is greater, 0 if equal, and -1 otherwise

Parameters

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