fn tokenizeAny(comptime T: type, buffer: []const T, delimiters: []const T) TokenIterator(T, .any)
[src]
Returns an iterator that iterates over the slices of buffer
that are not any of the items in delimiters
.
tokenizeAny(u8, " abc|def || ghi ", " |")
will return slices for “abc”, “def”, “ghi”, null, in that order.
If buffer
is empty, the iterator will return null. If none of delimiters
exist in buffer, the iterator will return buffer
, null, in that order.
See also: tokenizeSequence
, tokenizeScalar
, splitSequence
,splitAny
, splitScalar
, splitBackwardsSequence
, splitBackwardsAny
, and splitBackwardsScalar