absl::StripLeadingAsciiWhitespace

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

Synopsis

Declared in <absl/strings/ascii.h>

[[nodiscard]]
std::string_view
StripLeadingAsciiWhitespace(std::string_view str);

Return Value

A view of str without leading whitespace.

NOTE

The return value should not be discarded.

Parameters

NameDescription
strThe characters to strip leading whitespace from.