[#BloombergLP-bdlb-StringRefUtil-strstr] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/StringRefUtil.adoc[StringRefUtil]::strstr :relfileprefix: ../../../ :mrdocs: Return a `bslstl::StringRef` object referring to the first occurrence in (the referent data of) the specified `string` at which (the referent data of) the specified `subString` is found, or `bslstl::StringRef()` if there is no such occurrence. If `subString` has zero length then a zero‐length reference to the beginning of `string` is returned (i.e., `bslstl::StringRef(string.data(), 0)`); == Synopsis Declared in `<bdlb_stringrefutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] strstr( xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& string, xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& subString); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#