unic_ucd_segment/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 — UCD — Segmentation Properties"
21//!
22//! A component of [`unic`: Unicode and Internationalization Crates for Rust](/unic/).
23//!
24//! Accessor for Text Segmentation character properties from Unicode Character Database (UCD).
25
26#[macro_use]
27extern crate unic_char_property;
28
29#[macro_use]
30extern crate unic_char_range;
31
32mod pkg_info;
33pub use crate::pkg_info::{PKG_DESCRIPTION, PKG_NAME, PKG_VERSION};
34
35pub mod grapheme_cluster_break;
36pub use crate::grapheme_cluster_break::GraphemeClusterBreak;
37
38pub mod sentence_break;
39pub use crate::sentence_break::SentenceBreak;
40
41pub mod word_break;
42pub use crate::word_break::WordBreak;
43
44use unic_ucd_version::UnicodeVersion;
45
46/// The [Unicode version](https://www.unicode.org/versions/) of data
47pub const UNICODE_VERSION: UnicodeVersion = include!("../tables/unicode_version.rsv");