[#absl-StrContains-07] = xref:absl.adoc[absl]::StrContains :relfileprefix: ../ :mrdocs: Returns whether a given string `haystack` contains the substring `needle`. == Synopsis Declared in `<absl/strings/match.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool StrContains( std::string_view haystack, std::string_view needle) noexcept; ---- == Return Value `true` if `needle` is found in `haystack`, `false` otherwise. == Parameters [cols="1,4"] |=== | Name| Description | *haystack* | The string to search within. | *needle* | The substring to search for. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#