trim overloads
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...
| Name | Description |
|---|---|
| string | null-terminated string to trim |
| length | length of string; updated to the trimmed length |