[#BloombergLP-bdlb-String-areEqualCaseless-09d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/String.adoc[String]::areEqualCaseless
:relfileprefix: ../../../
:mrdocs:

Return whether two C&hyphen;style strings compare equal ignoring case&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;string&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
areEqualCaseless(
    char const* lhsString,
    char const* rhsString);
----

== Description

Compare for equality the specified `lhsString` and `rhsString` having the optionally specified `lhsLength` and `rhsLength`, respectively, _as if_ the strings were converted to lower case before the equality comparison&period; Return `true` if `lhsString` is equal to `rhsString`, and `false` otherwise&period; The behavior is undefined unless `0 &lt;&equals; lhsLength` and `0 &lt;&equals; rhsLength` (if specified), and `lhsString&period;size() &lt;&equals; INT&lowbar;MAX` and `rhsString&period;size() &lt;&equals; INT&lowbar;MAX` (if applicable)&period; See &lcub;`bdlb&lowbar;stringviewutil`&rcub; for an identically named method having the same semantics taking `bsl&colon;&colon;string&lowbar;view`&period;

== Return Value

`true` if the strings compare equal ignoring case

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhsString*
| left&hyphen;hand null&hyphen;terminated string
| *rhsString*
| right&hyphen;hand null&hyphen;terminated string
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
