std.algorithm.startsWith with maximal matching

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Jan 13 16:48:00 PST 2012


Hi all,

I'm reading the docs for startsWith(A,B...) with multiple ranges in B,
and it seems that it will always match the *shortest* range whenever
more than one range in B matches. Is there a way to make it always match
the *longest* range instead? Or do I have to write my own function for
that?

Thanks!


T

-- 
Why can't you just be a nonconformist like everyone else? -- YHL


More information about the Digitalmars-d-learn mailing list