BloombergLP::bdlb::String::trim

trim overloads

Synopses

Declared in <bdlb_string.h>

Remove leading and trailing whitespace from string.

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

Remove leading and trailing whitespace from string.

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

Remove leading and trailing whitespace from string.

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

Remove leading and trailing whitespace from string.

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

Remove leading and trailing whitespace and update *length.

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

Parameters

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