BloombergLP::bdlb::String::rtrim

rtrim overloads

Synopses

Declared in <bdlb_string.h>

Remove trailing whitespace characters from string.

static
void
rtrim(char* string);
» more...

Remove trailing whitespace characters from string.

static
void
rtrim(bsl::string* string);
» more...

Remove trailing whitespace characters from string.

static
void
rtrim(std::pmr::string* string);
» more...

Remove trailing whitespace characters from string.

static
void
rtrim(std::string* string);
» more...

Compute the length of string after removing trailing whitespace.

static
void
rtrim(
    char const* string,
    int* length);
» more...

Parameters

NameDescription
stringnull-terminated string to trim
lengthlength of string; updated to the trimmed length