skipOverShortestOf

Skip Over Shortest Matching prefix in needles that prefixes haystack. TODO Make return value a specific type that has bool conversion so we can call it as if (auto hit = r.skipOverShortestOf(...)) { ... }

size_t
skipOverShortestOf
(
alias pred = "a == b"
Range
Ranges...
)
(
ref Range haystack
,
Ranges needles
)
if (
Ranges.length >= 2 &&
is(typeof(startsWith!pred(haystack, needles)))
)

Meta