fn indexOfPos(comptime T: type, haystack: []const T, start_index: usize, needle: []const T) ?usize

Uses Boyer-Moore-Horspool algorithm on large inputs; indexOfPosLinear on small inputs.

Parameters

T: type,
haystack: []const T,
start_index: usize,
needle: []const T,