Return whether two C‐style strings compare equal ignoring case.
Synopsis
Declared in <bdlb_string.h>
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. Return true if lhsString is equal to rhsString, and false otherwise. The behavior is undefined unless 0 <= lhsLength and 0 <= rhsLength (if specified), and lhsString.size() <= INT_MAX and rhsString.size() <= INT_MAX (if applicable). See {`bdlb_stringviewutil`} for an identically named method having the same semantics taking bsl::string_view.
Return Value
true if the strings compare equal ignoring case
Parameters
Name |
Description |
lhsString |
left‐hand null‐terminated string |
rhsString |
right‐hand null‐terminated string |
Created with MrDocs