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

Return a `bslstl&colon;&colon;StringRef` object referring to the substring of (the referent data of) the specified `string` that excludes all trailing whitespace&period; See &lcub;Whitespace Character Specification&rcub;&period; If `string` consists entirely of whitespace, return a zero&hyphen;length reference to the beginning of (the referent data of) `string` (i&period;e&period;, `bslstl&colon;&colon;StringRef(string&period;data(), 0)`)&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]
rtrim(xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& string);
----


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