• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // DO NOT EDIT THIS FILE. IT WAS AUTOMATICALLY GENERATED BY:
2 //
3 //   ucd-generate dfa --name GRAPHEME_BREAK_REV --reverse --longest --sparse --minimize --anchored --state-size 2 src/unicode/fsm/ [snip (arg too long)]
4 //
5 // ucd-generate 0.2.9 is available on crates.io.
6 
7 #[cfg(target_endian = "big")]
8 lazy_static::lazy_static! {
9   pub static ref GRAPHEME_BREAK_REV: ::regex_automata::SparseDFA<&'static [u8], u16> = {
10     #[repr(C)]
11     struct Aligned<B: ?Sized> {
12         _align: [u8; 0],
13         bytes: B,
14     }
15 
16     static ALIGNED: &'static Aligned<[u8]> = &Aligned {
17         _align: [],
18         bytes: *include_bytes!("grapheme_break_rev.bigendian.dfa"),
19     };
20 
21     unsafe {
22       ::regex_automata::SparseDFA::from_bytes(&ALIGNED.bytes)
23     }
24   };
25 }
26 
27 #[cfg(target_endian = "little")]
28 lazy_static::lazy_static! {
29   pub static ref GRAPHEME_BREAK_REV: ::regex_automata::SparseDFA<&'static [u8], u16> = {
30     #[repr(C)]
31     struct Aligned<B: ?Sized> {
32         _align: [u8; 0],
33         bytes: B,
34     }
35 
36     static ALIGNED: &'static Aligned<[u8]> = &Aligned {
37         _align: [],
38         bytes: *include_bytes!("grapheme_break_rev.littleendian.dfa"),
39     };
40 
41     unsafe {
42       ::regex_automata::SparseDFA::from_bytes(&ALIGNED.bytes)
43     }
44   };
45 }
46