string::trimFunction in std::string
Remove whitespace from the start and end of a string.
Whitespace is defined by Unicode's White_Space property and includes
spaces, tabs, newlines, and non-breaking spaces. Whitespace inside the
string is preserved.
If the input is empty or contains only whitespace, this returns an empty string. Unicode normalization and case conversion are not performed.
Arguments
| Name | Type | Description | Required |
|---|---|---|---|
text | string | The string to trim. | Yes |
Returns
string - A sequence of characters