absl::EqualsIgnoreCase

Returns whether given ASCII strings piece1 and piece2 are equal, ignoring case in the comparison.

Synopsis

Declared in <absl/strings/match.h>

bool
EqualsIgnoreCase(
    std::string_view piece1,
    std::string_view piece2) noexcept;

Return Value

true if the strings are equal ignoring case, false otherwise.

Parameters

NameDescription
piece1The first string to compare.
piece2The second string to compare.