absl::EndsWithIgnoreCase

Returns whether a given ASCII string text ends with suffix, ignoring case in the comparison.

Synopsis

Declared in <absl/strings/match.h>

bool
EndsWithIgnoreCase(
    std::string_view text,
    std::string_view suffix) noexcept;

Return Value

true if text ends with suffix ignoring case, false otherwise.

Parameters

NameDescription
textThe string to test.
suffixThe suffix to look for.