[#BloombergLP-bdlb-StringViewUtil-trim] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/StringViewUtil.adoc[StringViewUtil]::trim :relfileprefix: ../../../ :mrdocs: Return a `bsl::string_view` 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., `bsl::string_view(string.data(), 0)`). == Synopsis Declared in `<bdlb_stringviewutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::string_view trim(std::string_view const& string); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#