absl::StrContainsIgnoreCase

StrContainsIgnoreCase overloads

Synopses

Declared in <absl/strings/match.h>

Returns whether a given ASCII string haystack contains the ASCII character needle, ignoring case in the comparison.

bool
StrContainsIgnoreCase(
    std::string_view haystack,
    char needle) noexcept;
» more...

Returns whether a given ASCII string haystack contains the ASCII substring needle, ignoring case in the comparison.

bool
StrContainsIgnoreCase(
    std::string_view haystack,
    std::string_view needle) noexcept;
» more...

Return Value

true if needle is found in haystack, false otherwise.

Parameters

NameDescription
haystackThe string to search within.
needleThe character to search for.