BloombergLP::bdlb::String::pad

Pad string on the right with padChar up to length.

Synopsis

Declared in <bdlb_string.h>

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

Parameters

NameDescription
stringstring to pad
lengthdesired length after padding
padCharcharacter used for padding (default space)