[#BloombergLP-bdlb-String-pad-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/String.adoc[String]::pad
:relfileprefix: ../../../
:mrdocs:

Append repeatedly to the specified `string` the optionally specified `padChar` until `string` has the specified `length`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;string&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
pad(
    std::string* string,
    int length,
    char padChar = &apos; &apos;);
----


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