delimiters

Iterator to isolate text elements.

Splits the provided array wherever a delimiter-set instance is found, and return the resultant segments. The delimiters are excluded from each of the segments. Note that delimiters are matched as a set of alternates rather than as a pattern.

Splitting on a single delimiter is considerably faster than splitting upon a set of alternatives.

foreach (segment; delimiters ("one,two;three", ",;"))
         ...
DelimFruct!(T, M)
delimiters
(
T
M
)
(
T[] src
,
const(M)[] set
)

Meta