BloombergLP::bdlb::String::pad

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.

static
void
pad(
    bsl::string* string,
    int length,
    char padChar = ' ');
» more...

Pad string on the right with padChar up to length.

static
void
pad(
    std::pmr::string* string,
    std::pmr::string::size_type length,
    char padChar = ' ');
» more...

Pad string on the right with padChar up to length.

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

Parameters

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