utils: trim(): Take string_view

This commit is contained in:
2021-10-10 12:01:16 +02:00
parent 86ac86b83f
commit 9593429f95
2 changed files with 2 additions and 3 deletions

View File

@@ -93,7 +93,7 @@ template <class T> inline std::string toString(const T &v)
return std::string(v.begin(), v.end());
}
std::string trim(const std::string &str);
std::string trim(std::string_view view);
} // namespace utils
#endif