chop

December 5, 2022 ยท View on GitHub

std::string_view chop(std::string_view str) noexcept;

Returns str after having chopped off any initial or trailing whitespace, as well as surrounding quotes.