Return a bslstl::StringRef object referring to the substring of (the referent data of) the specified string that excludes all leading and trailing whitespace. See {Whitespace Character Specification}. If string consists entirely of whitespace, return a zero‐length reference to the beginning of (the referent data of) string (i.e., bslstl::StringRef(string.data(), 0)).

Synopsis

Declared in <bdlb_stringrefutil.h>

static
bslstl::StringRef
trim(bslstl::StringRef const& string);

Created with MrDocs