rust/src/libunicode
Alex Crichton 0f6a0b58f9 std: Stabilize more of the char module
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]
2015-03-10 15:08:31 -07:00
..
char.rs std: Stabilize more of the char module 2015-03-10 15:08:31 -07:00
lib.rs std: Stabilize more of the char module 2015-03-10 15:08:31 -07:00
normalize.rs for x in xs.iter() -> for x in &xs 2015-02-02 13:40:18 -05:00
tables.rs unicode: Properly parse ranges in UnicodeData.txt 2015-03-03 20:04:55 +01:00
u_str.rs std: Stabilize more of the char module 2015-03-10 15:08:31 -07:00