diff options
author | Jakub Kotur <qtr@google.com> | 2020-12-21 17:28:14 +0100 |
---|---|---|
committer | Jakub Kotur <qtr@google.com> | 2021-03-05 14:57:04 +0100 |
commit | dd59cf911d21e566a33af399b71d59f7392cae29 (patch) | |
tree | db39b49c7217032e6b3ab6255f27b3d84122bad9 /src/unicode/fsm/whitespace_anchored_fwd.rs | |
parent | 9a565aa594c047b0553c5f1dd0be3c7aee131747 (diff) | |
download | bstr-dd59cf911d21e566a33af399b71d59f7392cae29.tar.gz |
Initial import of bstr-0.2.14.
Bug: 155309706
Change-Id: I00f8da63f5f370d45180e40af36d33d153b049c9
Diffstat (limited to 'src/unicode/fsm/whitespace_anchored_fwd.rs')
-rw-r--r-- | src/unicode/fsm/whitespace_anchored_fwd.rs | 41 |
1 files changed, 41 insertions, 0 deletions
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<B: ?Sized> { + _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<B: ?Sized> { + _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) } + }; +} |