rust/src
Simon Sapin 6174b8d726 Refactor low-level UTF-16 decoding.
* Rename `utf16_items` to `decode_utf16`. "Items" is meaningless.
* Move it to `rustc_unicode::char`, exposed in `std::char`.
* Generalize it to any `u16` iterable, not just `&[u16]`.
* Make it yield `Result` instead of a custom `Utf16Item` enum that was isomorphic to `Result`. This enable using the `FromIterator for Result` impl.
* Add a `REPLACEMENT_CHARACTER` constant.
* Document how `result.unwrap_or(REPLACEMENT_CHARACTER)` replaces `Utf16Item::to_char_lossy`.
2015-08-23 00:28:56 +02:00
..
compiler-rt@58ab642c30
compiletest
doc Rollup merge of #27883 - steveklabnik:gh27587, r=alexcrichton 2015-08-18 15:03:11 -04:00
driver
error-index-generator
etc
grammar
jemalloc@e24a1a025a
liballoc Move the Borrow and BorrowMut traits to libcore. 2015-08-22 13:58:39 +02:00
liballoc_jemalloc
liballoc_system
libarena
libbacktrace
libcollections Refactor low-level UTF-16 decoding. 2015-08-23 00:28:56 +02:00
libcollectionstest Auto merge of #27474 - bluss:twoway-reverse, r=brson 2015-08-18 02:02:57 +00:00
libcore Move the Borrow and BorrowMut traits to libcore. 2015-08-22 13:58:39 +02:00
libcoretest Refactor low-level UTF-16 decoding. 2015-08-23 00:28:56 +02:00
libflate
libfmt_macros
libgetopts
libgraphviz
liblibc
liblog
librand Auto merge of #27823 - eefriedman:float-dep-core, r=alexcrichton 2015-08-18 04:23:25 +00:00
librbml
librustc Auto merge of #27866 - arielb1:really-fast-reject, r=nikomatsakis 2015-08-18 07:16:10 +00:00
librustc_back rustc_back: add configure options for default linker and ar 2015-08-19 18:06:34 +02:00
librustc_bitflags
librustc_borrowck
librustc_data_structures
librustc_driver
librustc_lint
librustc_llvm
librustc_platform_intrinsics Add AArch64 vrecpeq_... intrinsic (necessary for minimal API). 2015-08-17 14:48:44 -07:00
librustc_privacy
librustc_resolve fallout of reworking rc and arc APIs 2015-08-19 15:52:12 -07:00
librustc_trans fallout of reworking rc and arc APIs 2015-08-19 15:52:12 -07:00
librustc_typeck Auto merge of #27169 - huonw:simd, r=alexcrichton 2015-08-17 23:41:36 +00:00
librustc_unicode Refactor low-level UTF-16 decoding. 2015-08-23 00:28:56 +02:00
librustdoc Auto merge of #27860 - m4rw3r:rustdoc_unstable_feature_issue, r=alexcrichton 2015-08-22 08:16:53 +00:00
libserialize Refactor low-level UTF-16 decoding. 2015-08-23 00:28:56 +02:00
libstd Refactor low-level UTF-16 decoding. 2015-08-23 00:28:56 +02:00
libsyntax Auto merge of #27613 - GSam:binop, r=nrc 2015-08-21 17:42:19 +00:00
libterm
libtest
llvm@874dc4ee4c
rt
rust-installer@c37d3747da
rustbook
rustllvm
test Auto merge of #27871 - alexcrichton:stabilize-libcore, r=aturon 2015-08-22 09:59:07 +00:00
snapshots.txt