mrdocs::trim
trim overloads
Synopses
Declared in <mrdocs/Support/String.hpp>
Return the substring without leading and trailing horizontal whitespace.
constexpr
std::string_view
trim(std::string_view const s) noexcept;
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;
Parameters
| Name | Description |
|---|---|
s |
The string to trim. |
chars |
The characters to remove. |
Created with MrDocs