unic_ucd/
lib.rs

1// Copyright 2017 The UNIC Project Developers.
2//
3// See the COPYRIGHT file at the top-level directory of this distribution.
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#![no_std]
12#![warn(
13    bad_style,
14    missing_debug_implementations,
15    missing_docs,
16    unconditional_recursion
17)]
18#![forbid(unsafe_code)]
19
20//! # UNIC — Unicode Character Database
21//!
22//! A component of [`unic`: Unicode and Internationalization Crates for Rust](/unic/).
23//!
24//! This UNIC component provides access to character properties as defined in the [Unicode
25//! Standard Annex #44 - Unicode Character Database](http://unicode.org/reports/tr44/).
26
27pub use unic_ucd_common as common;
28pub use unic_ucd_version as version;
29
30pub use unic_ucd_age as age;
31pub use unic_ucd_bidi as bidi;
32pub use unic_ucd_block as block;
33pub use unic_ucd_case as case;
34pub use unic_ucd_category as category;
35pub use unic_ucd_hangul as hangul;
36pub use unic_ucd_ident as ident;
37pub use unic_ucd_name as name;
38pub use unic_ucd_name_aliases as name_aliases;
39pub use unic_ucd_normal as normal;
40pub use unic_ucd_segment as segment;
41
42pub use crate::version::UnicodeVersion;
43
44/// The [Unicode version](https://www.unicode.org/versions/) of data
45pub use crate::version::UNICODE_VERSION;
46
47pub use crate::age::{Age, CharAge};
48
49pub use crate::block::{Block, BlockIter};
50
51pub use crate::bidi::{is_bidi_mirrored, BidiClass, CharBidiClass, StrBidiClass};
52
53pub use crate::case::{
54    changes_when_casefolded,
55    changes_when_casemapped,
56    changes_when_lowercased,
57    changes_when_titlecased,
58    changes_when_uppercased,
59    is_case_ignorable,
60    is_cased,
61    is_lowercase,
62    is_uppercase,
63    CaseIgnorable,
64    Cased,
65    ChangesWhenCasefolded,
66    ChangesWhenCasemapped,
67    ChangesWhenLowercased,
68    ChangesWhenTitlecased,
69    ChangesWhenUppercased,
70    Lowercase,
71    Uppercase,
72};
73
74pub use crate::category::GeneralCategory;
75
76pub use crate::common::{is_alphabetic, is_white_space, Alphabetic, WhiteSpace};
77
78pub use crate::name::Name;
79
80pub use crate::normal::CanonicalCombiningClass;
81
82pub use crate::name_aliases::{name_aliases_of, NameAliasType};
83
84pub use crate::segment::{GraphemeClusterBreak, SentenceBreak, WordBreak};
85
86mod pkg_info;
87pub use crate::pkg_info::{PKG_DESCRIPTION, PKG_NAME, PKG_VERSION};