[#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 `&lt;bdlb&lowbar;string&period;h&gt;`

Remove all leading whitespace characters from the specified `string`&period; If `string` consists of only whitespace then it will be empty (i&period;e&period;, have 0 length) after this operation&period; The behavior is undefined unless `string&hyphen;&gt;size() &lt;&equals; INT&lowbar;MAX` (if applicable)&period; See `bdlb&lowbar;stringviewutil` for an identically named method having similar semantics taking (and returning) `bsl&colon;&colon;string&lowbar;view`&period;


[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&period;&period;&period;_]#

Remove all leading whitespace characters from the specified `string`&period;


[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&period;&period;&period;_]#

Remove all leading whitespace characters from the specified `string`&period;


[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&period;&period;&period;_]#

Remove all leading whitespace characters from the specified `string`&period;


[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&period;&period;&period;_]#

Remove all leading whitespace characters from the specified `string` having the specified `length`, and load into `length` the number of characters in the resulting (trimmed) string&period; If `string` consists of only whitespace then it will be empty (i&period;e&period;, have 0 length) after this operation&period; The behavior is undefined unless `0 &lt;&equals; &ast;length`&period; Note that `length` is both an input and output parameter&period; See `bdlb&lowbar;stringviewutil` for an identically named method having similar semantics taking (and returning) `bsl&colon;&colon;string&lowbar;view`&period;


[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&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
