mrdocs::trim

trim overloads

Synopses

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...

Return Value

The modified string.

Parameters

NameDescription
sThe string to trim.
charsThe characters to remove.