Function delimitedText

Process a given text iopipe by a given code point delimeter. The only behavior that changes from the input pipe is that extensions to the window deliever exactly one more delimited segment of text.

auto auto delimitedText(Chain) (
  Chain c,
  dchar delim = '\x0a'
if (isIopipe!Chain && isSomeChar!(ElementEncodingType!(WindowType!Chain)));


c The input text iopipe. This must have a window whose elements are valid character types.
delim The code point with which to delimit the text. Each extension to the iopipe will either end on this delimiter, or will be the last segment in the pipe.


An iopipe that behaves as described above.