Return a view of str with leading and trailing pattern characters removed.
Synopsis
Declared in <util/string.h>
[[nodiscard]]
std::string_view
TrimStringView(
std::string_view str,
std::string_view pattern = " \f\n\r\t\v");
Return Value
A view into str without the leading and trailing pattern characters.
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
str |
Input string. |
pattern |
Characters trimmed from both ends. |
Created with MrDocs