SearchFruct.indices

Returns a foreach() iterator which exposes the indices of all matches within the given content:

int count;

auto match = search ("foo");
foreach (index; match.indices("$foo&&foo*"))
         ++count;
assert (count is 2);
struct SearchFruct(T)
Indices
indices
(
const(T)[] content
)

Meta