From dd59cf911d21e566a33af399b71d59f7392cae29 Mon Sep 17 00:00:00 2001 From: Jakub Kotur Date: Mon, 21 Dec 2020 17:28:14 +0100 Subject: Initial import of bstr-0.2.14. Bug: 155309706 Change-Id: I00f8da63f5f370d45180e40af36d33d153b049c9 --- src/unicode/fsm/whitespace_anchored_fwd.rs | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/unicode/fsm/whitespace_anchored_fwd.rs (limited to 'src/unicode/fsm/whitespace_anchored_fwd.rs') diff --git a/src/unicode/fsm/whitespace_anchored_fwd.rs b/src/unicode/fsm/whitespace_anchored_fwd.rs new file mode 100644 index 0000000..ea68582 --- /dev/null +++ b/src/unicode/fsm/whitespace_anchored_fwd.rs @@ -0,0 +1,41 @@ +// DO NOT EDIT THIS FILE. IT WAS AUTOMATICALLY GENERATED BY: +// +// ucd-generate dfa --name WHITESPACE_ANCHORED_FWD --anchored --classes --premultiply --minimize --state-size 1 src/unicode/fsm/ \s+ +// +// ucd-generate 0.2.8 is available on crates.io. + +#[cfg(target_endian = "big")] +lazy_static! { + pub static ref WHITESPACE_ANCHORED_FWD: ::regex_automata::DenseDFA<&'static [u8], u8> = { + #[repr(C)] + struct Aligned { + _align: [u8; 0], + bytes: B, + } + + static ALIGNED: &'static Aligned<[u8]> = &Aligned { + _align: [], + bytes: *include_bytes!("whitespace_anchored_fwd.bigendian.dfa"), + }; + + unsafe { ::regex_automata::DenseDFA::from_bytes(&ALIGNED.bytes) } + }; +} + +#[cfg(target_endian = "little")] +lazy_static! { + pub static ref WHITESPACE_ANCHORED_FWD: ::regex_automata::DenseDFA<&'static [u8], u8> = { + #[repr(C)] + struct Aligned { + _align: [u8; 0], + bytes: B, + } + + static ALIGNED: &'static Aligned<[u8]> = &Aligned { + _align: [], + bytes: *include_bytes!("whitespace_anchored_fwd.littleendian.dfa"), + }; + + unsafe { ::regex_automata::DenseDFA::from_bytes(&ALIGNED.bytes) } + }; +} -- cgit v1.2.3