1 // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 //! # The Unicode Library
13 //! Unicode-intensive functions for `char` and `str` types.
15 //! This crate provides a collection of Unicode-related functionality,
16 //! including decompositions, conversions, etc., and provides traits
17 //! implementing these functions for the `char` and `str` types.
19 //! The functionality included here is only that which is necessary to
20 //! provide for basic string-related manipulations. This crate does not
21 //! (yet) aim to provide a full set of Unicode tables.
23 // Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
24 #![cfg_attr(stage0, feature(custom_attribute))]
25 #![crate_name = "unicode"]
26 #![unstable(feature = "unicode")]
27 #![feature(lang_items)]
28 #![feature(staged_api)]
30 #![crate_type = "rlib"]
31 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
32 html_favicon_url
= "http://www.rust-lang.org/favicon.ico",
33 html_root_url
= "http://doc.rust-lang.org/nightly/",
34 html_playground_url
= "http://play.rust-lang.org/")]
38 #![doc(test(no_crate_inject))]
48 pub use u_str
::{UnicodeStr, Words, Graphemes, GraphemeIndices}
;
49 pub use u_str
::{utf8_char_width, is_utf16, Utf16Items, Utf16Item}
;
50 pub use u_str
::{utf16_items, Utf16Encoder}
;