1 | /*! |
2 | A library for parsing the Unicode character database. |
3 | */ |
4 | |
5 | #![deny (missing_docs)] |
6 | |
7 | pub use crate::common::{ |
8 | parse, parse_by_codepoint, parse_many_by_codepoint, ucd_directory_version, |
9 | Codepoint, CodepointIter, CodepointRange, Codepoints, UcdFile, |
10 | UcdFileByCodepoint, UcdLineParser, |
11 | }; |
12 | pub use crate::error::{Error, ErrorKind}; |
13 | |
14 | pub use crate::age::Age; |
15 | pub use crate::arabic_shaping::ArabicShaping; |
16 | pub use crate::bidi_mirroring_glyph::BidiMirroring; |
17 | pub use crate::case_folding::{CaseFold, CaseStatus}; |
18 | pub use crate::core_properties::CoreProperty; |
19 | pub use crate::east_asian_width::EastAsianWidth; |
20 | pub use crate::emoji_properties::EmojiProperty; |
21 | pub use crate::grapheme_cluster_break::{ |
22 | GraphemeClusterBreak, GraphemeClusterBreakTest, |
23 | }; |
24 | pub use crate::jamo_short_name::JamoShortName; |
25 | pub use crate::line_break::LineBreakTest; |
26 | pub use crate::name_aliases::{NameAlias, NameAliasLabel}; |
27 | pub use crate::prop_list::Property; |
28 | pub use crate::property_aliases::PropertyAlias; |
29 | pub use crate::property_value_aliases::PropertyValueAlias; |
30 | pub use crate::script_extensions::ScriptExtension; |
31 | pub use crate::scripts::Script; |
32 | pub use crate::sentence_break::{SentenceBreak, SentenceBreakTest}; |
33 | pub use crate::special_casing::SpecialCaseMapping; |
34 | pub use crate::unicode_data::{ |
35 | UnicodeData, UnicodeDataDecomposition, UnicodeDataDecompositionTag, |
36 | UnicodeDataExpander, UnicodeDataNumeric, |
37 | }; |
38 | pub use crate::word_break::{WordBreak, WordBreakTest}; |
39 | |
40 | macro_rules! err { |
41 | ($($tt:tt)*) => { |
42 | Err(crate::error::Error::parse(format!($($tt)*))) |
43 | } |
44 | } |
45 | |
46 | pub mod extracted; |
47 | |
48 | mod common; |
49 | mod error; |
50 | |
51 | mod age; |
52 | mod arabic_shaping; |
53 | mod bidi_mirroring_glyph; |
54 | mod case_folding; |
55 | mod core_properties; |
56 | mod east_asian_width; |
57 | mod emoji_properties; |
58 | mod grapheme_cluster_break; |
59 | mod jamo_short_name; |
60 | mod line_break; |
61 | mod name_aliases; |
62 | mod prop_list; |
63 | mod property_aliases; |
64 | mod property_value_aliases; |
65 | mod script_extensions; |
66 | mod scripts; |
67 | mod sentence_break; |
68 | mod special_casing; |
69 | mod unicode_data; |
70 | mod word_break; |
71 | |