[#BloombergLP-bdlb-String-pad-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/String.adoc[String]::pad :relfileprefix: ../../../ :mrdocs: Pad `string` on the right with `padChar` up to `length`. == Synopsis Declared in `<bdlb_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void pad( std::string* string, int length, char padChar = ' '); ---- == Parameters [cols="1,4"] |=== | Name| Description | *string* | string to pad | *length* | desired length after padding | *padChar* | character used for padding (default space) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#