bstr/unicode/fsm/
grapheme_break_fwd.rs

1// DO NOT EDIT THIS FILE. IT WAS AUTOMATICALLY GENERATED BY:
2//
3//     regex-cli generate serialize sparse dfa --minimize --start-kind anchored --shrink --rustfmt --safe GRAPHEME_BREAK_FWD src/unicode/fsm/ <snip: arg too long>
4//
5// regex-cli 0.0.1 is available on crates.io.
6
7use regex_automata::{dfa::sparse::DFA, util::lazy::Lazy};
8
9pub static GRAPHEME_BREAK_FWD: Lazy<DFA<&'static [u8]>> = Lazy::new(|| {
10    #[cfg(target_endian = "big")]
11    static BYTES: &'static [u8] =
12        include_bytes!("grapheme_break_fwd.bigendian.dfa");
13    #[cfg(target_endian = "little")]
14    static BYTES: &'static [u8] =
15        include_bytes!("grapheme_break_fwd.littleendian.dfa");
16    let (dfa, _) =
17        DFA::from_bytes(BYTES).expect("serialized DFA should be valid");
18    dfa
19});