Returns an iterator that iterates over the slices of buffer that
are separated by any item in delimiters.
splitAny(u8, "abc,def||ghi", "|,") will return slices
for "abc", "def", "", "ghi", null, in that order.
If none of delimiters exist in buffer,
the iterator will return buffer, null, in that order.
See also: splitSequence, splitScalar, splitBackwardsSequence,
splitBackwardsAny,splitBackwardsScalar,
tokenizeAny, tokenizeSequence, and tokenizeScalar.
pub fn splitAny(comptime T: type, buffer: []const T, delimiters: []const T) SplitIterator(T, .any)
pub fn splitAny(comptime T: type, buffer: []const T, delimiters: []const T) SplitIterator(T, .any) {
return .{
.index = 0,
.buffer = buffer,
.delimiter = delimiters,
};
}