mozilla/rust — Issue #1557: Unify "str::lines()" and "str::lines_any()" and make it Unicode-correct
Author: Lenny222
Created: 2012-01-18 14:45:44+00:00
State: open

```str::lines()``` appears to split string on ```\n```, while ```str::lines_any()``` appears to split on ```\n``` and on ```\r\n```.

I think, we want only one function doing "the right thing (tm)".

See http://unicode.org/reports/tr14/