Lines Matching +full:concat +full:- +full:map
3 // $ cargo install ucd-generate
4 // $ curl -LO https://www.unicode.org/Public/zipped/15.0.0/UCD.zip
5 // $ unzip UCD.zip -d UCD
6 // $ ucd-generate property-bool UCD --include XID_Start,XID_Continue > tests/table/tables.rs
7 // $ ucd-generate property-bool UCD --include XID_Start,XID_Continue --fst-dir tests/fst
8 // $ ucd-generate property-bool UCD --include XID_Start,XID_Continue --trie-set > tests/trie/trie.rs
9 // $ cargo run --manifest-path generate/Cargo.toml
13 clippy::cast_possible_truncation, // https://github.com/rust-lang/rust-clippy/issues/9613
26 use std::collections::{BTreeMap as Map, VecDeque};
43 let mut chunkmap = Map::<[u8; CHUNK], u8>::new(); in main()
90 let mut halfchunkmap = Map::new(); in main()
103 let mut dense_to_halfdense = Map::<u8, u8>::new(); in main()
117 Err(_) => panic!("exceeded 256 half-chunks"), in main()
123 let mut concat = empty_chunk; in main() localVariable
124 concat[..CHUNK / 2].copy_from_slice(&back); in main()
125 concat[CHUNK / 2..].copy_from_slice(&next); in main()
126 let original_pos = chunkmap[&concat]; in main()
132 match u8::try_from(halfdense.len() / (CHUNK / 2) - 1) { in main()
134 Err(_) => panic!("exceeded 256 half-chunks"), in main()