rust/src/libcollectionstest
Alex Crichton 48615a68fb std: Account for CRLF in {str, BufRead}::lines
This commit is an implementation of [RFC 1212][rfc] which tweaks the behavior of
the `str::lines` and `BufRead::lines` iterators. Both iterators now account for
`\r\n` sequences in addition to `\n`, allowing for less surprising behavior
across platforms (especially in the `BufRead` case). Splitting *only* on the
`\n` character can still be achieved with `split('\n')` in both cases.

The `str::lines_any` function is also now deprecated as `str::lines` is a
drop-in replacement for it.

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1212-line-endings.md

Closes #28032
2015-09-03 23:01:41 -07:00
..
btree implement RFC 1194 2015-08-28 12:41:54 -04:00
bench.rs More test fixes 2015-04-14 10:14:19 -07:00
binary_heap.rs Implement RFC 839 2015-06-08 12:05:33 +02:00
enum_set.rs Implement RFC 839 2015-06-08 12:05:33 +02:00
fmt.rs std: Clean out #[deprecated] APIs 2015-03-31 15:49:57 -07:00
lib.rs Add missing stability markings to BinaryHeap. 2015-09-01 01:22:57 -07:00
linked_list.rs Remove all unstable deprecated functionality 2015-08-12 14:55:17 -07:00
slice.rs Remove all unstable deprecated functionality 2015-08-12 14:55:17 -07:00
str.rs std: Account for CRLF in {str, BufRead}::lines 2015-09-03 23:01:41 -07:00
string.rs Rename String::into_boxed_slice -> into_boxed_str 2015-08-13 14:02:00 +02:00
vec_deque.rs Remove all unstable deprecated functionality 2015-08-12 14:55:17 -07:00
vec.rs Remove all unstable deprecated functionality 2015-08-12 14:55:17 -07:00