]> git.proxmox.com Git - rustc.git/blame - src/libstd_unicode/lib.rs
New upstream version 1.21.0+dfsg1
[rustc.git] / src / libstd_unicode / lib.rs
CommitLineData
1a4d82fc
JJ
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
e9174d1e 23#![unstable(feature = "unicode", issue = "27783")]
e9174d1e 24#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
62682a34 25 html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
e9174d1e
SL
26 html_root_url = "https://doc.rust-lang.org/nightly/",
27 html_playground_url = "https://play.rust-lang.org/",
28 issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
92a42be0 29 test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
32a655c1 30#![deny(warnings)]
1a4d82fc 31#![no_std]
62682a34 32
62682a34 33#![feature(core_char_ext)]
041b39d2 34#![feature(str_internals)]
5bcae85e 35#![feature(decode_utf8)]
9e0c209e 36#![feature(fused)]
7cac9316 37#![feature(fn_traits)]
62682a34 38#![feature(lang_items)]
62682a34 39#![feature(staged_api)]
9e0c209e 40#![feature(try_from)]
7cac9316 41#![feature(unboxed_closures)]
1a4d82fc 42
1a4d82fc 43mod tables;
1a4d82fc 44mod u_str;
c34b1796 45pub mod char;
041b39d2 46pub mod lossy;
1a4d82fc 47
e9174d1e 48#[allow(deprecated)]
1a4d82fc 49pub mod str {
3157f602 50 pub use u_str::{SplitWhitespace, UnicodeStr};
3157f602 51 pub use u_str::Utf16Encoder;
1a4d82fc 52}
62682a34 53
041b39d2 54// For use in liballoc, not re-exported in libstd.
62682a34 55pub mod derived_property {
3157f602 56 pub use tables::derived_property::{Case_Ignorable, Cased};
62682a34 57}
54a0048b
SL
58
59// For use in libsyntax
60pub mod property {
61 pub use tables::property::Pattern_White_Space;
62}