std.range.byLine

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 11 14:52:05 PDT 2014


On Thursday, 11 September 2014 at 21:29:16 UTC, monarch_dodra 
wrote:
> Hum... no, those are the correct splitting elements. However, I 
> don't think that would actually work, as "find" will privilege 
> the first whole element to match as a "hit", so "\r\n" never be 
> hit (rather, it will be hit twice, in the form of two 
> individual line breaks `\r` and '\n').
>
> Bummer...

So why not simply change the order of the keys to
- \r\n
- \r
- \n

then?


More information about the Digitalmars-d-learn mailing list