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

Name

Description

string

string to pad

length

desired length after padding

padChar

character used for padding (default space)

Created with MrDocs