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