www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - 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
Jan 13 2012