[#BloombergLP-bdlb-StringRefUtil-upperCaseCmp] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/StringRefUtil.adoc[StringRefUtil]::upperCaseCmp :relfileprefix: ../../../ :mrdocs: Compare `lhs` and `rhs` after converting both to upper case. == Synopsis Declared in `<bdlb_stringrefutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int upperCaseCmp( xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& lhs, xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& rhs); ---- == Description Compare (the referent data of) the specified `lhs` and `rhs`. Return 1 if, after a conversion to upper 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 [cols="1,4"] |=== | Name| Description | *lhs* | left‐hand string to compare | *rhs* | right‐hand string to compare |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#