CompleteResult.prefixMatch

Build a CompleteResult by case-insensitively prefix-matching prefix against candidates. The matches populate values, total is set to the match count, and hasMore reflects whether the spec's 100-item cap truncated the set. This is the built-in helper for the common autocompletion pattern, so consumers do not hand-roll startsWith.

struct CompleteResult
static @safe
prefixMatch
(
const(string)[] candidates
,
string prefix
)