1// DO NOT EDIT THIS FILE. IT WAS AUTOMATICALLY GENERATED BY:
2//
3// regex-cli generate serialize dense regex MULTI_PATTERN_V2 tests/gen/dense/ --rustfmt --safe --starts-for-each-pattern --specialize-start-states --start-kind both --unicode-word-boundary --minimize \b[a-zA-Z]+\b (?m)^\S+$ (?Rm)^\S+$
4//
5// regex-cli 0.0.1 is available on crates.io.
6
7use regex_automata::{
8 dfa::{dense::DFA, regex::Regex},
9 util::{lazy::Lazy, wire::AlignAs},
10};
11
12pub static MULTI_PATTERN_V2: Lazy<Regex<DFA<&'static [u32]>>> =
13 Lazy::new(|| {
14 let dfafwd = {
15 static ALIGNED: &AlignAs<[u8], u32> = &AlignAs {
16 _align: [],
17 #[cfg(target_endian = "big")]
18 bytes: *include_bytes!("multi_pattern_v2_fwd.bigendian.dfa"),
19 #[cfg(target_endian = "little")]
20 bytes: *include_bytes!(
21 "multi_pattern_v2_fwd.littleendian.dfa"
22 ),
23 };
24 DFA::from_bytes(&ALIGNED.bytes)
25 .expect("serialized forward DFA should be valid")
26 .0
27 };
28 let dfarev = {
29 static ALIGNED: &AlignAs<[u8], u32> = &AlignAs {
30 _align: [],
31 #[cfg(target_endian = "big")]
32 bytes: *include_bytes!("multi_pattern_v2_rev.bigendian.dfa"),
33 #[cfg(target_endian = "little")]
34 bytes: *include_bytes!(
35 "multi_pattern_v2_rev.littleendian.dfa"
36 ),
37 };
38 DFA::from_bytes(&ALIGNED.bytes)
39 .expect("serialized reverse DFA should be valid")
40 .0
41 };
42 Regex::builder().build_from_dfas(dfafwd, dfarev)
43 });
44