[#BloombergLP-bdlb-StringRefUtil-strstrCaseless]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/StringRefUtil.adoc[StringRefUtil]::strstrCaseless
:relfileprefix: ../../../
:mrdocs:

Return a reference to the first case&hyphen;insensitive occurrence of `subString` in `string`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;stringrefutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef]
strstrCaseless(
    xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& string,
    xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& subString);
----

== Description

Return a `bslstl&colon;&colon;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 using case&hyphen;insensitive comparisons, or `bslstl&colon;&colon;StringRef()` if there is no such occurrence&period; See &lcub;Caseless Comparisons&rcub;&period; If `subString` has zero length then a zero&hyphen;length reference to the beginning of `string` is returned (i&period;e&period;, `bslstl&colon;&colon;StringRef(string&period;data(), 0)`)&semi;

== Return Value

reference to the first occurrence, or an empty reference

== Parameters

[cols="1,4"]
|===
| Name| Description
| *string*
| string to search
| *subString*
| substring to find
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
