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

Name Description
s The string to trim.
from The substring to remove.
to The substring to replace with. If this is empty, the substring is removed.

Created with MrDocs