about summary refs log tree commit diff
path: root/src/libcore/unicode.rs
AgeCommit message (Collapse)AuthorLines
2014-07-07Add libunicode; move unicode functions from corekwantam-5056/+0
- 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-05-30lib{std,core,debug,rustuv,collections,native,regex}: Fix snake_case errors.Kevin Butler-1/+1
A number of functions/methods have been moved or renamed to align better with rust standard conventions. std::reflect::MovePtrAdaptor => MovePtrAdaptor::new debug::reflect::MovePtrAdaptor => MovePtrAdaptor::new std::repr::ReprVisitor => ReprVisitor::new debug::repr::ReprVisitor => ReprVisitor::new rustuv::homing::HomingIO.go_to_IO_home => go_to_io_home [breaking-change]
2014-05-13std: Rename str::Normalizations to str::DecompositionsFlorian Zeitz-1/+1
The Normalizations iterator has been renamed to Decompositions. It does not currently include all forms of Unicode normalization, but only encompasses decompositions. If implemented recomposition would likely be a separate iterator which works on the result of this one. [breaking-change]
2014-05-13core: Move Hangul decomposition into unicode.rsFlorian Zeitz-2/+46
2014-05-13std, core: Generate unicode.rs using unicode.pyFlorian Zeitz-4/+7
2014-05-07core: Inherit necessary unicode functionalityAlex Crichton-0/+5009
The unicode module remains private, but the normalization iterators require an allocation, so some functionality needs to remain in libstd
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-2642/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-19Register snapshotsBrian Anderson-26/+0
2013-05-18Use cond! macro where appropriateBrendan Zabarauskas-2/+26
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-1/+0
2013-05-02The following code was generated by "src/etc/unicode.py"kud1ing-0/+2
2013-04-18core: replace unicode match exprs with bsearch in const arrays, minor perf win.Graydon Hoare-4580/+2533
2013-03-22libcore: Remove `pure` from libcore. rs=depurePatrick Walton-32/+32
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-3/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-01-29libcore: De-export libcore. rs=deexportingPatrick Walton-2/+1
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-09-27De-export private and unicode. Part of #3583.Graydon Hoare-34/+33
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+2
#[legacy_exports];
2012-09-19core: Clean up crate docs and give all mods a brief descriptionBrian Anderson-0/+1
2012-09-01Remove the 'to' keywordBrian Anderson-2371/+2371
2012-08-14De-mode more pieces of core.Graydon Hoare-0/+4
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-32/+32
2012-08-05Switch alts to use arrowsBrian Anderson-70/+64
2012-08-01Convert ret to returnBrian Anderson-32/+32
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-1/+1
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-03-09core: Convert to rustdocBrian Anderson-0/+1
2011-12-23Add support to libcore for encoded-in-rust unicode character properties, at ↵Graydon Hoare-0/+4683
least. Add script to compute them from unicode.org.