trim overloads

Synopses

Declared in <bdlb_string.h>

Remove leading and trailing whitespace from string.

static
void
trim(char* string);

Remove leading and trailing whitespace from string.

static
void
trim(bsl::string* string);

Remove leading and trailing whitespace from string.

static
void
trim(std::pmr::string* string);

Remove leading and trailing whitespace from string.

static
void
trim(std::string* string);

Remove leading and trailing whitespace and update *length.

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

Parameters

Name

Description

string

null‐terminated string to trim

length

length of string; updated to the trimmed length

Created with MrDocs