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