fn splitBackwardsSequence(comptime T: type, buffer: []const T, delimiter: []const T) SplitBackwardsIterator(T, .sequence)

Returns an iterator that iterates backwards over the slices of buffer that are separated by the sequence in delimiter.

splitBackwardsSequence(u8, "abc||def||||ghi", "||") will return slices for “ghi”, “”, “def”, “abc”, null, in that order.

If delimiter does not exist in buffer, the iterator will return buffer, null, in that order. The delimiter length must not be zero.

See also: splitBackwardsAny, splitBackwardsScalar, splitSequence, splitAny,splitScalar, tokenizeAny, tokenizeSequence, and tokenizeScalar.

Parameters

T: type,
buffer: []const T,
delimiter: []const T,