13 #ifndef TLX_STRING_SPLIT_VIEW_HEADER 14 #define TLX_STRING_SPLIT_VIEW_HEADER 36 template <
typename Functor>
39 char sep,
const std::string& str, Functor&& callback,
40 std::string::size_type limit = std::string::npos) {
47 std::string::size_type count = 0;
48 auto it = str.begin(), last = it;
50 for ( ; it != str.end(); ++it)
72 #endif // !TLX_STRING_SPLIT_VIEW_HEADER
StringView is a reference to a part of a string, consisting of only a char pointer and a length...
static void split_view(char sep, const std::string &str, Functor &&callback, std::string::size_type limit=std::string::npos)
Split the given string at each separator character into distinct substrings, and call the given callb...