summary refs log tree commit diff
path: root/src/libstd_unicode/u_str.rs
AgeCommit message (Collapse)AuthorLines
2018-03-03core: Update stability attributes for FusedIteratorUlrik Sverdrup-2/+1
2018-03-03core: Stabilize FusedIteratorUlrik Sverdrup-2/+2
FusedIterator is a marker trait that promises that the implementing iterator continues to return `None` from `.next()` once it has returned `None` once (and/or `.next_back()`, if implemented). The effects of FusedIterator are already widely available through `.fuse()`, but with stable `FusedIterator`, stable Rust users can implement this trait for their iterators when appropriate.
2017-11-22Add missing Debug impls to std_unicodeOliver Middleton-0/+1
Also adds #![deny(missing_debug_implementations)] so they don't get missed again.
2017-09-03impl Debug for SplitWhitespace.Clar Charr-1/+1
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-1/+1
Like #43008 (f668999), but _much more aggressive_.
2017-06-13Merge crate `collections` into `alloc`Murarth-1/+1
2017-04-30std_unicode: Use #[inline] on the split_whitespace predicatesUlrik Sverdrup-0/+4
2017-04-30std_unicode: impl Clone for .split_whitespace()Ulrik Sverdrup-12/+38
Use custom closure structs for the predicates so that the iterator's clone can simply be derived. This should also reduce virtual call overhead by not using function pointers.
2017-03-30Remove parentheses in method referencesDonnie Bishop-2/+2
2017-03-30Revert SplitWhitespace's descriptionDonnie Bishop-1/+2
Original headline of SplitWhitespace's description is more descriptive as to what it contains and iterates over.
2017-03-30Modify SplitWhitespace's descriptionDonnie Bishop-2/+7
2017-03-02Remove std_unicode::str::is_utf16Simon Sapin-22/+0
It was only accessible through the `#[unstable]` crate std_unicode. It has never been used in the compiler or standard library since 47e7a05a28c9662159af2d2e0f2b7efc13fa09cb added it in 2012 “for OS API interop”. It can be replaced with a one-liner: ```rust fn is_utf16(slice: &[u16]) -> bool { std::char::decode_utf16(s.iter().cloned()).all(|r| r.is_ok()) } ```
2017-03-01Only keep one copy of the UTF8_CHAR_WIDTH table.Simon Sapin-26/+0
… instead of one of each of libcore and libstd_unicode. Move the `utf8_char_width` function to `core::str` under the `str_internals` unstable feature.
2016-11-30Rename 'librustc_unicode' crate to 'libstd_unicode'.Corey Farwell-0/+201
Fixes #26554.