Oliver Middleton
fb094642e1
Add missing Debug impls to std_unicode
...
Also adds #![deny(missing_debug_implementations)] so they don't get
missed again.
2017-11-22 00:49:28 +00:00
Clar Charr
4260e4395e
impl Debug for SplitWhitespace.
2017-09-03 19:13:01 -04:00
Zack M. Davis
1b6c9605e4
use field init shorthand EVERYWHERE
...
Like #43008 (f668999 ), but _much more aggressive_.
2017-08-15 15:29:17 -07:00
Murarth
eadda7665e
Merge crate collections into alloc
2017-06-13 23:37:34 -07:00
Ulrik Sverdrup
41aeb9d4ec
std_unicode: Use #[inline] on the split_whitespace predicates
2017-04-30 21:24:47 +02:00
Ulrik Sverdrup
f41ecef6d5
std_unicode: impl Clone for .split_whitespace()
...
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-04-30 21:20:20 +02:00
Donnie Bishop
3b396217b5
Remove parentheses in method references
2017-03-30 18:33:23 -04:00
Donnie Bishop
c4b11d19b8
Revert SplitWhitespace's description
...
Original headline of SplitWhitespace's description is more descriptive as to what it contains and iterates over.
2017-03-30 16:46:16 -04:00
Donnie Bishop
a4a7166fd5
Modify SplitWhitespace's description
2017-03-30 16:36:06 -04:00
Simon Sapin
24b39c51af
Remove std_unicode::str::is_utf16
...
It was only accessible through the `#[unstable]` crate std_unicode.
It has never been used in the compiler or standard library
since 47e7a05a28 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-02 17:45:50 +01:00
Simon Sapin
031f9b15df
Only keep one copy of the UTF8_CHAR_WIDTH table.
...
… 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.
2017-03-01 23:25:27 +01:00
Corey Farwell
274777a158
Rename 'librustc_unicode' crate to 'libstd_unicode'.
...
Fixes #26554 .
2016-11-30 01:24:01 -05:00