trim overloads
Declared in <mrdocs/Support/String/String.hpp>
Return the substring without leading and trailing horizontal whitespace.
constexpr
std::string_view
trim(std::string_view const s) noexcept;
» more...
Return the substring without leading and trailing specified characters.
constexpr
std::string_view
trim(
std::string_view const s,
std::string_view const chars) noexcept;
» more...
The modified string.
| Name | Description |
|---|---|
| s | The string to trim. |
| chars | The characters to remove. |