summary refs log tree commit diff
path: root/src/libunicode/char.rs
AgeCommit message (Collapse)AuthorLines
2015-03-26Register new snapshotsAlex Crichton-424/+0
2015-03-23Add #![feature] attributes to doctestsBrian Anderson-0/+4
2015-03-23Require feature attributes, and add them where necessaryBrian Anderson-0/+4
2015-03-19Update docs for ToUppercase/ToLowercase structsMatt Brubeck-2/+4
`uppercase` and `lowercase` are currently named `to_uppercase` and `to_lowercase`. Also adds a link to the `char` type documentation which has much more detail on these iterators.
2015-03-18libunicode: Partially inline the fast paths in character class checking.Patrick Walton-0/+432
2015-03-18Register new snapshotsAlex Crichton-408/+0
2015-03-16impl charJorge Aparicio-0/+372
2015-03-10std: Stabilize more of the `char` moduleAlex Crichton-0/+469
This commit performs another pass over the `std::char` module for stabilization. Some minor cleanup is performed such as migrating documentation from libcore to libunicode (where the `std`-facing trait resides) as well as a slight reorganiation in libunicode itself. Otherwise, the stability modifications made are: * `char::from_digit` is now stable * `CharExt::is_digit` is now stable * `CharExt::to_digit` is now stable * `CharExt::to_{lower,upper}case` are now stable after being modified to return an iterator over characters. While the implementation today has not changed this should allow us to implement the full set of case conversions in unicode where some characters can map to multiple when doing an upper or lower case mapping. * `StrExt::to_{lower,upper}case` was added as unstable for a convenience of not having to worry about characters expanding to more characters when you just want the whole string to get into upper or lower case. This is a breaking change due to the change in the signatures of the `CharExt::to_{upper,lower}case` methods. Code can be updated to use functions like `flat_map` or `collect` to handle the difference. [breaking-change]