]> git.proxmox.com Git - rustc.git/blob - vendor/bstr/src/unicode/fsm/word_break_fwd.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / vendor / bstr / src / unicode / fsm / word_break_fwd.rs
1 // DO NOT EDIT THIS FILE. IT WAS AUTOMATICALLY GENERATED BY:
2 //
3 // ucd-generate dfa --name WORD_BREAK_FWD --sparse --minimize --anchored --state-size 4 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 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 }
15
16 static ALIGNED: &'static Aligned<[u8]> = &Aligned {
17 _align: [],
18 bytes: *include_bytes!("word_break_fwd.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 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 }
35
36 static ALIGNED: &'static Aligned<[u8]> = &Aligned {
37 _align: [],
38 bytes: *include_bytes!("word_break_fwd.littleendian.dfa"),
39 };
40
41 unsafe {
42 ::regex_automata::SparseDFA::from_bytes(&ALIGNED.bytes)
43 }
44 };
45 }