mod char;
#[allow(clippy::module_inception)]
mod cluster;
mod complex;
mod info;
mod myanmar;
mod parse;
mod simple;
mod token;
pub use self::{
char::{Char, ShapeClass},
cluster::{CharCluster, SourceRange, Status, MAX_CLUSTER_SIZE},
info::{CharInfo, ClusterInfo, Emoji, Whitespace},
parse::Parser,
token::Token,
};
use super::unicode_data;
#[derive(Copy, Clone, PartialOrd, Ord, PartialEq, Eq, Debug)]
#[repr(u8)]
pub enum Boundary {
None = 0,
Word = 1,
Line = 2,
Mandatory = 3,
}
impl Boundary {
pub(super) fn from_raw(raw: u16) -> Self {
match raw & 0b11 {
0 => Self::None,
1 => Self::Word,
2 => Self::Line,
3 => Self::Mandatory,
_ => Self::None,
}
}
}
pub type UserData = u32;