[#BloombergLP-bdlb-String-trim-0bf] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/String.adoc[String]::trim :relfileprefix: ../../../ :mrdocs: `trim` overloads == Synopses Declared in `<bdlb_string.h>` Remove leading and trailing whitespace from `string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdlb/String/trim-03f.adoc[trim](char* string); ---- [.small]#xref:BloombergLP/bdlb/String/trim-03f.adoc[_» more..._]# Remove leading and trailing whitespace from `string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdlb/String/trim-0ba.adoc[trim](xref:bsl/string.adoc[bsl::string]* string); ---- [.small]#xref:BloombergLP/bdlb/String/trim-0ba.adoc[_» more..._]# Remove leading and trailing whitespace from `string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdlb/String/trim-07.adoc[trim](std::pmr::string* string); ---- [.small]#xref:BloombergLP/bdlb/String/trim-07.adoc[_» more..._]# Remove leading and trailing whitespace from `string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdlb/String/trim-032.adoc[trim](std::string* string); ---- [.small]#xref:BloombergLP/bdlb/String/trim-032.adoc[_» more..._]# Remove leading and trailing whitespace and update `*length`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdlb/String/trim-0e.adoc[trim]( char* string, int* length); ---- [.small]#xref:BloombergLP/bdlb/String/trim-0e.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *string* | null‐terminated string to trim | *length* | length of `string`; updated to the trimmed length |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#