Return a view of string with leading whitespace removed.
Synopsis
Declared in <bdlb_stringviewutil.h>
static
std::string_view
ltrim(std::string_view const& string);
Description
Return a bsl::string_view object referring to the substring of (the referent data of) the specified string that excludes all leading whitespace. See {Whitespace Character Specification}. If string consists entirely of whitespace, return a zero‐length reference to the end of string (i.e., bsl::string_view(string.end(), 0)).
Return Value
view of string with leading whitespace removed
Parameters
Name |
Description |
string |
string view to trim |
Created with MrDocs