summaryrefslogtreecommitdiffstats
path: root/third_party/rust/unicode-ident/tests/fst/mod.rs
blob: 5195efb13d21065b1cc82584194097bc8964844e (plain)
1
2
3
4
5
6
7
8
9
10
11
#![allow(clippy::module_name_repetitions)]

pub fn xid_start_fst() -> fst::Set<&'static [u8]> {
    let data = include_bytes!("xid_start.fst");
    fst::Set::from(fst::raw::Fst::new(data.as_slice()).unwrap())
}

pub fn xid_continue_fst() -> fst::Set<&'static [u8]> {
    let data = include_bytes!("xid_continue.fst");
    fst::Set::from(fst::raw::Fst::new(data.as_slice()).unwrap())
}