src/GenericUtils.h
/// reverse the effect of a symmetrical decoration
reverse the effect of a symmetrical decoration
reverse the effect of a symmetrical decoration
inline string_view Undecorate(string_view decoration, string_view body)
    {
        auto indexStart = StartsWith(body, decoration) ? decoration.length() : 0;
        auto indexEnd = EndsWith(body, decoration) ? body.length() - decoration.length() : body.length();
        return Slice(body, indexStart, indexEnd);
    }
inline string_view Undecorate ( string_view decoration , string_view body ) { auto indexStart = StartsWith ( body , decoration ) ? decoration . length ( ) : 0 ; auto indexEnd = EndsWith ( body , decoration ) ? body . length ( ) - decoration . length ( ) : body . length ( ) ; return Slice ( body , indexStart , indexEnd ) ; }
reverse the effect of a symmetrical decoration
reverse the effect of a symmetrical decoration