fn indexOfNonePos(comptime T: type, slice: []const T, start_index: usize, values: []const T) ?usize

Find the first item in slice[start_index..] which is not contained in values. The returned index will be relative to the start of slice, and never less than start_index.

Comparable to strspn in the C standard library.

Parameters

T: type,
slice: []const T,
start_index: usize,
values: []const T,