10inline std::string_view trim(std::string_view text)
13 while (start < text.size() && std::isspace(
static_cast<unsigned char>(text[start])))
15 size_t end = text.size();
16 while (end > start && std::isspace(
static_cast<unsigned char>(text[end - 1])))
18 return text.substr(start, end - start);