Function byDelimRange
Given a text iopipe, returns a range based on splitting the text by a given
code point. This has the advantage over delimitedText
in that the
delimiter can be hidden.
auto byDelimRange(bool KeepDelimiter = false, Chain)
(
Chain c,
dchar delim
)
if (isIopipe!Chain && is(Unqual!(ElementType!(WindowType!Chain)) == dchar));
Parameters
Name | Description |
---|---|
KeepDelimiter | If true, then the delimiter is included in each element of the range (if present from the original iopipe). |
c | The iopipe to range-ify. |
delim | The dchar to use for delimiting. |
Returns
An input range whose elements are the delimited text segments, with or without delimiters as specified by the KeepDelimiter boolean.