January 14, 2012 std.algorithm.startsWith with maximal matching | ||||
---|---|---|---|---|
| ||||
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
|
Copyright © 1999-2021 by the D Language Foundation