30 #ifndef ITERABLE_SPLIT_STRING_HXX 31 #define ITERABLE_SPLIT_STRING_HXX 52 :s(_s), separator(_separator) {}
62 :rest(_s), separator(_separator) {
67 :current(n), rest(n), separator(0) {}
73 const char *i = rest.
Find(separator);
95 return current.
data == other.current.
data;
99 return !(*
this == other);
115 return {s, separator};
constexpr IterableSplitString(StringView _s, char _separator)
constexpr bool operator==(Iterator other) const
constexpr bool operator!=(Iterator other) const
gcc_pure pointer_type Find(char ch) const noexcept
Split a string at a certain separator character into sub strings and allow iterating over the segment...
constexpr StringView operator*() const
constexpr const_iterator end() const
constexpr bool IsNull() const
const_iterator begin() const
constexpr const StringView * operator->() const
std::forward_iterator_tag iterator_category