[#BloombergLP-bdlb-String-ltrim-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/String.adoc[String]::ltrim :relfileprefix: ../../../ :mrdocs: `ltrim` overloads == Synopses Declared in `<bdlb_string.h>` Remove leading whitespace characters from `string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdlb/String/ltrim-0d.adoc[ltrim](char* string); ---- [.small]#xref:BloombergLP/bdlb/String/ltrim-0d.adoc[_» more..._]# Remove leading whitespace characters from `string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdlb/String/ltrim-04.adoc[ltrim](xref:bsl/string.adoc[bsl::string]* string); ---- [.small]#xref:BloombergLP/bdlb/String/ltrim-04.adoc[_» more..._]# Remove leading whitespace characters from `string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdlb/String/ltrim-023.adoc[ltrim](std::pmr::string* string); ---- [.small]#xref:BloombergLP/bdlb/String/ltrim-023.adoc[_» more..._]# Remove leading whitespace characters from `string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdlb/String/ltrim-0f.adoc[ltrim](std::string* string); ---- [.small]#xref:BloombergLP/bdlb/String/ltrim-0f.adoc[_» more..._]# Remove leading whitespace and update `*length` accordingly. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdlb/String/ltrim-02b.adoc[ltrim]( char* string, int* length); ---- [.small]#xref:BloombergLP/bdlb/String/ltrim-02b.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]#