]> git.lizzy.rs Git - rust.git/blob - src/libstd_unicode/lib.rs
19f2ad1c56f2dc65d0b32e399dad8d75d1304783
[rust.git] / src / libstd_unicode / lib.rs
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.
4 //
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.
10
11 //! # The Unicode Library
12 //!
13 //! Unicode-intensive functions for `char` and `str` types.
14 //!
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.
18 //!
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.
22
23 #![crate_name = "std_unicode"]
24 #![unstable(feature = "unicode", issue = "27783")]
25 #![crate_type = "rlib"]
26 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
27        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
28        html_root_url = "https://doc.rust-lang.org/nightly/",
29        html_playground_url = "https://play.rust-lang.org/",
30        issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
31        test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
32 #![deny(warnings)]
33 #![no_std]
34
35 #![feature(char_escape_debug)]
36 #![feature(core_char_ext)]
37 #![feature(decode_utf8)]
38 #![feature(fused)]
39 #![feature(fn_traits)]
40 #![feature(lang_items)]
41 #![feature(staged_api)]
42 #![feature(try_from)]
43 #![feature(unboxed_closures)]
44
45 mod tables;
46 mod u_str;
47 pub mod char;
48
49 #[allow(deprecated)]
50 pub mod str {
51     pub use u_str::{SplitWhitespace, UnicodeStr};
52     pub use u_str::Utf16Encoder;
53 }
54
55 // For use in liballoc, not re-exported in libstd.
56 pub mod derived_property {
57     pub use tables::derived_property::{Case_Ignorable, Cased};
58 }
59
60 // For use in libsyntax
61 pub mod property {
62     pub use tables::property::Pattern_White_Space;
63 }