Splitter

Splits a stream using a separator. The separator can be a single element or a bidirectional range of elements.

struct Splitter (
T
Separator
Stream
alias splitFn = endsWithSeparator!(T, Separator)
) if (
isSource!Stream &&
isSplitFunction!(splitFn, T, Separator)
) {}

Constructors

this
this(Stream source, Separator separator)
Undocumented in source.

Members

Functions

empty
bool empty()

Returns true if there are no more regions in the splitter.

front
const(T)[] front()

Gets the current region in the stream.

popFront
void popFront()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta