[#BloombergLP-bdlb-String-pad-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/String.adoc[String]::pad :relfileprefix: ../../../ :mrdocs: `pad` overloads == Synopses Declared in `<bdlb_string.h>` Append repeatedly to the specified `string` the optionally specified `padChar` until `string` has the specified `length`. If `padChar` is not specified the space (` `) character is appended. This operation has no effect if `string.size() >= length`. The behavior is undefined unless `0 <= 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..._]# Append repeatedly to the specified `string` the optionally specified `padChar` until `string` has the specified `length`. If `padChar` is not specified the space (` `) character is appended. This operation has no effect if `string.size() >= 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..._]# Append repeatedly to the specified `string` the optionally specified `padChar` until `string` has the specified `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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#