[#mrdocs-rtrim-08]
= xref:mrdocs.adoc[mrdocs]::rtrim
:relfileprefix: ../
:mrdocs:

Return the substring without trailing specified characters&period;

== Synopsis

Declared in `&lt;mrdocs&sol;Support&sol;String&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
std::string&lowbar;view
rtrim(
    std::string&lowbar;view const s,
    std::string&lowbar;view const chars) noexcept;
----

== Return Value

The modified string&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| The string to trim&period;
| *chars*
| The characters to remove&period;
|===


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