rust/src/libstd/io
kwantam 5d4238b6fc Add libunicode; move unicode functions from core
- created new crate, libunicode, below libstd
- split Char trait into Char (libcore) and UnicodeChar (libunicode)
  - Unicode-aware functions now live in libunicode
    - is_alphabetic, is_XID_start, is_XID_continue, is_lowercase,
      is_uppercase, is_whitespace, is_alphanumeric, is_control,
      is_digit, to_uppercase, to_lowercase
  - added width method in UnicodeChar trait
    - determines printed width of character in columns, or None if it is
      a non-NULL control character
    - takes a boolean argument indicating whether the present context is
      CJK or not (characters with 'A'mbiguous widths are double-wide in
      CJK contexts, single-wide otherwise)
- split StrSlice into StrSlice (libcore) and UnicodeStrSlice
  (libunicode)
  - functionality formerly in StrSlice that relied upon Unicode
    functionality from Char is now in UnicodeStrSlice
    - words, is_whitespace, is_alphanumeric, trim, trim_left, trim_right
  - also moved Words type alias into libunicode because words method is
    in UnicodeStrSlice
- unified Unicode tables from libcollections, libcore, and libregex into
  libunicode
- updated unicode.py in src/etc to generate aforementioned tables
- generated new tables based on latest Unicode data
- added UnicodeChar and UnicodeStrSlice traits to prelude
- libunicode is now the collection point for the std::char module,
  combining the libunicode functionality with the Char functionality
  from libcore
  - thus, moved doc comment for char from core::char to unicode::char
- libcollections remains the collection point for std::str

The Unicode-aware functions that previously lived in the Char and
StrSlice traits are no longer available to programs that only use
libcore. To regain use of these methods, include the libunicode crate
and use the UnicodeChar and/or UnicodeStrSlice traits:

    extern crate unicode;
    use unicode::UnicodeChar;
    use unicode::UnicodeStrSlice;
    use unicode::Words; // if you want to use the words() method

NOTE: this does *not* impact programs that use libstd, since UnicodeChar
and UnicodeStrSlice have been added to the prelude.

closes #15224
[breaking-change]
2014-07-07 14:52:24 -04:00
..
net Rename set_broadast() to set_broadcast(). 2014-07-03 12:54:51 -07:00
buffered.rs Deprecate the bytes!() macro. 2014-06-18 17:02:22 -07:00
comm_adapters.rs librustc: Match trait self types exactly. 2014-06-28 11:18:37 -07:00
extensions.rs make any_pat! and u64_from_be_bytes_bench_impl! macros hygienic 2014-07-04 13:20:14 -07:00
fs.rs rustc: Remove &str indexing from the language. 2014-07-01 19:12:29 -07:00
mem.rs librustc: Remove the fallback to int from typechecking. 2014-06-24 17:18:48 -07:00
mod.rs Add libunicode; move unicode functions from core 2014-07-07 14:52:24 -04:00
pipe.rs Deprecate the bytes!() macro. 2014-06-18 17:02:22 -07:00
process.rs std::io: Use re-exported pathes in examples. 2014-06-27 07:10:33 +09:00
result.rs De-~[] Mem{Reader,Writer} 2014-04-06 15:40:01 -07:00
signal.rs Register new snapshots 2014-06-15 23:30:24 -07:00
stdio.rs Deprecate the bytes!() macro. 2014-06-18 17:02:22 -07:00
tempfile.rs std: Remove format_strbuf!() 2014-05-28 08:35:41 -07:00
test.rs Rename all raw pointers as necessary 2014-06-28 11:53:58 -07:00
timer.rs std::io: Use re-exported pathes in examples. 2014-06-27 07:10:33 +09:00
util.rs rustc: Remove ~[T] from the language 2014-06-11 15:02:17 -07:00