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

`rtrim` overloads

== Synopses

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

Remove trailing whitespace characters from `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdlb/String/rtrim-0ca.adoc[rtrim](char* string);
----

[.small]#xref:BloombergLP/bdlb/String/rtrim-0ca.adoc[_» more&period;&period;&period;_]#

Remove trailing whitespace characters from `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdlb/String/rtrim-0cd.adoc[rtrim](xref:bsl/string.adoc[bsl::string]* string);
----

[.small]#xref:BloombergLP/bdlb/String/rtrim-0cd.adoc[_» more&period;&period;&period;_]#

Remove trailing whitespace characters from `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdlb/String/rtrim-09.adoc[rtrim](std::pmr::string* string);
----

[.small]#xref:BloombergLP/bdlb/String/rtrim-09.adoc[_» more&period;&period;&period;_]#

Remove trailing whitespace characters from `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdlb/String/rtrim-02.adoc[rtrim](std::string* string);
----

[.small]#xref:BloombergLP/bdlb/String/rtrim-02.adoc[_» more&period;&period;&period;_]#

Compute the length of `string` after removing trailing whitespace&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdlb/String/rtrim-0e.adoc[rtrim](
    char const* string,
    int* length);
----

[.small]#xref:BloombergLP/bdlb/String/rtrim-0e.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *string*
| null&hyphen;terminated string to trim
| *length*
| length of `string`&semi; updated to the trimmed length
|===


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