absl::StripLeadingAsciiWhitespace

StripLeadingAsciiWhitespace overloads

Synopses

Declared in <absl/strings/ascii.h>

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

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

Strips in place whitespace from the beginning of the given string.

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

Return Value

A view of str without leading whitespace.

Parameters

NameDescription
strThe characters to strip leading whitespace from.