diff options
Diffstat (limited to 'src/str.hh')
| -rw-r--r-- | src/str.hh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -13,6 +13,13 @@ void split(std::string_view str, std::vector<std::string_view>& out, char separator = ' ', bool keep_empty = false); +void split(std::string_view str, std::vector<std::string_view>& out, + std::string_view separator, bool keep_empty = false); + +[[nodiscard]] std::vector<std::string_view> split(std::string_view str, + std::string_view separator, + bool keep_empty = false); + [[nodiscard]] std::string_view trim(std::string_view str); |
