Append repeatedly to the specified string the optionally specified padChar until string has the specified length.

Synopsis

Declared in <bdlb_string.h>

static
void
pad(
    std::string* string,
    int length,
    char padChar = ' ');

Created with MrDocs