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.
static
void
pad(
bsl::string* string,
int length,
char padChar = ' ');
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.
static
void
pad(
std::pmr::string* string,
std::pmr::string::size_type length,
char padChar = ' ');
Append repeatedly to the specified string the optionally specified padChar until string has the specified length.
static
void
pad(
std::string* string,
int length,
char padChar = ' ');
Created with MrDocs