[#BloombergLP-bdlb-StringViewUtil-strrstrCaseless]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/StringViewUtil.adoc[StringViewUtil]::strrstrCaseless
:relfileprefix: ../../../
:mrdocs:

Return a view of the last case&hyphen;insensitive match of `subString`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::string&lowbar;view
strrstrCaseless(
    std::string&lowbar;view const& string,
    std::string&lowbar;view const& subString);
----

== Description

Return a `bsl&colon;&colon;string&lowbar;view` object referring to the last 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 `bsl&colon;&colon;string&lowbar;view()` 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 end of `string` is returned (i&period;e&period;, `bsl&colon;&colon;string&lowbar;view(string&period;end(), 0)`)&semi;

== Return Value

view of the last case&hyphen;insensitive match, or empty if not found

== Parameters

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


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