absl::StripTrailingAsciiWhitespace

StripTrailingAsciiWhitespace overloads

Synopses

Declared in <absl/strings/ascii.h>

Returns absl::string_view with whitespace stripped from the end of the given string_view.

[[nodiscard]]
std::string_view
StripTrailingAsciiWhitespace(std::string_view str);
» more...

Strips in place whitespace from the end of the given string

void
StripTrailingAsciiWhitespace(std::string* str);
» more...

Return Value

A view of str without trailing whitespace.

Parameters

NameDescription
strThe characters to strip trailing whitespace from.