[#BloombergLP-bdlb-String-pad-00] = 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`. == Synopses Declared in `<bdlb_string.h>` Pad `string` on the right with `padChar` up to `length`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdlb/String/pad-02.adoc[pad]( xref:bsl/string.adoc[bsl::string]* string, int length, char padChar = ' '); ---- [.small]#xref:BloombergLP/bdlb/String/pad-02.adoc[_» more..._]# Pad `string` on the right with `padChar` up to `length`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdlb/String/pad-0e.adoc[pad]( std::pmr::string* string, std::pmr::string::size_type length, char padChar = ' '); ---- [.small]#xref:BloombergLP/bdlb/String/pad-0e.adoc[_» more..._]# Pad `string` on the right with `padChar` up to `length`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void xref:BloombergLP/bdlb/String/pad-08.adoc[pad]( std::string* string, int length, char padChar = ' '); ---- [.small]#xref:BloombergLP/bdlb/String/pad-08.adoc[_» more..._]# == 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]#