absl::StripAsciiWhitespace

StripAsciiWhitespace overloads

Synopses

Declared in <absl/strings/ascii.h>

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

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

Strips in place whitespace from both ends of the given string

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

Return Value

A view of str without leading or trailing whitespace.

Parameters

NameDescription
strThe characters to strip whitespace from.