bstr/unicode/fsm/
word_break_fwd.rs
1use regex_automata::{dfa::sparse::DFA, util::lazy::Lazy};
8
9pub static WORD_BREAK_FWD: Lazy<DFA<&'static [u8]>> = Lazy::new(|| {
10 #[cfg(target_endian = "big")]
11 static BYTES: &'static [u8] =
12 include_bytes!("word_break_fwd.bigendian.dfa");
13 #[cfg(target_endian = "little")]
14 static BYTES: &'static [u8] =
15 include_bytes!("word_break_fwd.littleendian.dfa");
16 let (dfa, _) =
17 DFA::from_bytes(BYTES).expect("serialized DFA should be valid");
18 dfa
19});