]> git.lizzy.rs Git - rust.git/blob - library/core/src/unicode/mod.rs
Support unstable moves via stable in unstable items
[rust.git] / library / core / src / unicode / mod.rs
1 #![stable(feature = "unicode_version", since = "1.45.0")]
2 #![allow(missing_docs)]
3
4 #[unstable(feature = "unicode_internals", issue = "none")]
5 pub(crate) mod printable;
6 #[unstable(feature = "unicode_internals", issue = "none")]
7 mod unicode_data;
8
9 /// The version of [Unicode](https://www.unicode.org/) that the Unicode parts of
10 /// `char` and `str` methods are based on.
11 ///
12 /// New versions of Unicode are released regularly and subsequently all methods
13 /// in the standard library depending on Unicode are updated. Therefore the
14 /// behavior of some `char` and `str` methods and the value of this constant
15 /// changes over time. This is *not* considered to be a breaking change.
16 ///
17 /// The version numbering scheme is explained in
18 /// [Unicode 11.0 or later, Section 3.1 Versions of the Unicode Standard](https://www.unicode.org/versions/Unicode11.0.0/ch03.pdf#page=4).
19 #[stable(feature = "unicode_version", since = "1.45.0")]
20 pub const UNICODE_VERSION: (u8, u8, u8) = unicode_data::UNICODE_VERSION;
21
22 // For use in liballoc, not re-exported in libstd.
23 #[unstable(feature = "unicode_internals", issue = "none")]
24 pub use unicode_data::{
25     case_ignorable::lookup as Case_Ignorable, cased::lookup as Cased, conversions,
26 };
27
28 pub(crate) use unicode_data::alphabetic::lookup as Alphabetic;
29 pub(crate) use unicode_data::cc::lookup as Cc;
30 pub(crate) use unicode_data::grapheme_extend::lookup as Grapheme_Extend;
31 pub(crate) use unicode_data::lowercase::lookup as Lowercase;
32 pub(crate) use unicode_data::n::lookup as N;
33 pub(crate) use unicode_data::uppercase::lookup as Uppercase;
34 pub(crate) use unicode_data::white_space::lookup as White_Space;