diff --git a/include/utils/string.hpp b/include/utils/string.hpp index abc073be..40130c44 100644 --- a/include/utils/string.hpp +++ b/include/utils/string.hpp @@ -88,8 +88,8 @@ namespace string_util { string utf8_truncate(string&& value, size_t len); string join(const vector& strs, const string& delim); - vector& split_into(const string& s, char delim, vector& container); vector split(const string& s, char delim); + std::vector tokenize(const string& str, char delimiters); size_t find_nth(const string& haystack, size_t pos, const string& needle, size_t nth); diff --git a/src/modules/bspwm.cpp b/src/modules/bspwm.cpp index cf6817cd..3d145f64 100644 --- a/src/modules/bspwm.cpp +++ b/src/modules/bspwm.cpp @@ -131,7 +131,7 @@ namespace modules { m_icons->add(DEFAULT_ICON, factory_util::shared