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

Synopsis

Declared in <absl/strings/match.h>

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

Return Value

true if needle is found in haystack, false otherwise.

Parameters

Name

Description

haystack

The string to search within.

needle

The character to search for.

Created with MrDocs