rust/src/libcollections
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 Use null()/null_mut() instead of 0 as *const T/0 as *mut T 2015-09-03 09:49:50 +03:00
binary_heap.rs Auto merge of #28156 - nagisa:binaryheap-debug, r=Gankro 2015-09-02 06:37:32 +00:00
borrow.rs Move the Borrow and BorrowMut traits to libcore. 2015-08-22 13:58:39 +02:00
enum_set.rs collections: Add issues for unstable features 2015-08-15 18:09:17 -07:00
fmt.rs re-export debug builders in std::fmt 2015-08-28 13:39:25 -04:00
lib.rs fix some more unstable issue annotations 2015-08-27 12:48:35 -04:00
linked_list.rs Make iter::order functions into methods on Iterator 2015-08-26 23:23:57 -07:00
macros.rs Register new snapshots 2015-03-18 16:32:32 -07:00
range.rs collections: Add issues for unstable features 2015-08-15 18:09:17 -07:00
slice.rs collections: Add issues for unstable features 2015-08-15 18:09:17 -07:00
str.rs std: Account for CRLF in {str, BufRead}::lines 2015-09-03 23:01:41 -07:00
string.rs Auto merge of #28038 - durka:grep-unstable-issue-refs, r=alexcrichton 2015-08-28 02:49:45 +00:00
vec.rs Use null()/null_mut() instead of 0 as *const T/0 as *mut T 2015-09-03 09:49:50 +03:00
vec_deque.rs Add missing stability attributes to VecDeque. 2015-08-31 23:43:12 -07:00