Returns whether a given string haystack contains the character needle.
Declared in <absl/strings/match.h>
bool
StrContains(
std::string_view haystack,
char needle) noexcept;
true if needle is found in haystack, false otherwise.
| Name | Description |
|---|---|
| haystack | The string to search within. |
| needle | The character to search for. |