mrdocs::replace

Return the substring without leading and trailing horizontal whitespace.

Synopsis

Declared in <mrdocs/Support/String.hpp>

void
replace(
    std::string& s,
    std::string_view from,
    std::string_view to);

Return Value

The modified string.

Parameters

NameDescription
sThe string to trim.
fromThe substring to remove.
toThe substring to replace with. If this is empty, the substring is removed.