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) {
43 callback(StringView(str.begin(), str.end()));
47 std::string::size_type count = 0;
48 auto it = str.begin(), last = it;
50 for ( ; it != str.end(); ++it)
64 callback(StringView(last, it));
72 #endif // !TLX_STRING_SPLIT_VIEW_HEADER