├── .gitignore ├── Cargo.toml ├── LICENSES ├── MIT.txt └── Apache-2.0.txt ├── README.md ├── src ├── tiny.rs ├── large.rs ├── large_32.rs └── lib.rs └── tests └── test.rs /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /test 3 | _ignore 4 | perf.* 5 | *.svg 6 | Cargo.lock 7 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "hashify" 3 | version = "0.2.7" 4 | description = "Fast perfect hashing without dependencies" 5 | edition = "2024" 6 | authors = [ "Stalwart Labs "] 7 | license = "Apache-2.0 OR MIT" 8 | repository = "https://github.com/stalwartlabs/hashify" 9 | homepage = "https://github.com/stalwartlabs/hashify" 10 | keywords = ["hash", "perfect", "minimal"] 11 | categories = ["data-structures", "no-std"] 12 | readme = "README.md" 13 | resolver = "2" 14 | 15 | [features] 16 | force-32bit = [] 17 | 18 | [lib] 19 | proc-macro = true 20 | doctest = false 21 | 22 | [dependencies] 23 | syn = { version = "2.0", features = ["full"] } 24 | quote = "1.0" 25 | proc-macro2 = "1.0" 26 | 27 | [dev-dependencies] 28 | criterion = "0.5" 29 | phf = { version = "0.11.3", features = ["macros"] } 30 | 31 | [[bench]] 32 | name = "phf_bench" 33 | harness = false 34 | -------------------------------------------------------------------------------- /LICENSES/MIT.txt: -------------------------------------------------------------------------------- 1 | Permission is hereby granted, free of charge, to any 2 | person obtaining a copy of this software and associated 3 | documentation files (the "Software"), to deal in the 4 | Software without restriction, including without 5 | limitation the rights to use, copy, modify, merge, 6 | publish, distribute, sublicense, and/or sell copies of 7 | the Software, and to permit persons to whom the Software 8 | is furnished to do so, subject to the following 9 | conditions: 10 | 11 | The above copyright notice and this permission notice 12 | shall be included in all copies or substantial portions 13 | of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF 16 | ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 17 | TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 18 | PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 19 | SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 22 | IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 23 | DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # hashify 2 | 3 | [![crates.io](https://img.shields.io/crates/v/hashify)](https://crates.io/crates/hashify) 4 | [![docs.rs](https://img.shields.io/docsrs/hashify)](https://docs.rs/hashify) 5 | [![crates.io](https://img.shields.io/crates/l/hashify)](http://www.apache.org/licenses/LICENSE-2.0) 6 | 7 | _hashify_ is a Rust procedural macro crate designed to create perfect hashing maps and sets without any runtime dependencies. By combining traditional and modern hashing techniques, _hashify_ ensures exceptional speed and efficiency, making it a great tool for developers seeking optimal performance in their projects. 8 | 9 | It provides two distinct approaches for building maps and sets, tailored for different dataset sizes: 10 | - For **small maps** with fewer than 500 entries, _hashify_ uses a strategy similar to [GNU gperf](https://www.gnu.org/software/gperf/) with the `--switch` parameter. This approach is highly efficient and specifically optimized for small datasets. 11 | - For **larger datasets**, _hashify_ employs the [PTHash](https://arxiv.org/abs/2104.10402) algorithm. This Minimal Perfect Hashing algorithm ensures both compactness and speed, making it ideal for scaling to larger datasets without compromising performance. 12 | 13 | ## Performance 14 | 15 | _hashify_ was designed with performance as a top priority, and its benchmarks demonstrate this: 16 | - For tiny maps, _hashify_ is over **4 times faster** than the Rust [phf](https://crates.io/crates/phf) crate (which uses the [CHD algorithm](http://cmph.sourceforge.net/papers/esa09.pdf) algorithm). 17 | - For large maps, _hashify_ achieves a consistent **40% speed** improvement compared to `phf`. These results highlight its suitability for developers who require exceptional speed and efficiency in their hash map and set operations. 18 | 19 | ## Features 20 | 21 | - **Perfect Hashing**: Generates collision-free lookup tables for your **maps**, **sets** and **functions** at compile time. 22 | - **No Runtime Dependencies**: Everything is computed at compile time, making it ideal for environments where performance and binary size matter. 23 | - **Multiple hashing strategies**: _Tiny maps_ for datasets smaller than 500 entries and _large maps_ using the PTHash Minimal Perfect Hashing algorithm. 24 | - **Fast**: Tiny maps are over **4x faster** than the CHD algorithm, while large maps are approximately **40% faster**. 25 | 26 | ## Limitations 27 | 28 | _hashify_, since it uses the [Fowler–Noll–Vo 1a](https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function#FNV-1a_hash) hashing algorithm, is designed to work best with maps consisting of short byte slices (1 to 50 bytes). This makes it highly efficient for such datasets, but it may not perform as well with longer or more complex keys. However, modifying the crate to use other hashing algorithms is trivial, and we invite those interested in alternative algorithms to open a GitHub issue to discuss and potentially add support for other hashing options. 29 | 30 | ## Usage Example 31 | 32 | Maps: 33 | 34 | ```rust 35 | fn tiny_map_get(key: &str) -> Option { 36 | hashify::tiny_map! { 37 | key.as_bytes(), 38 | "koi8_r" => 35, 39 | "windows_1253" => 97, 40 | "windows_1257" => 114, 41 | "iso_8859_10" => 69, 42 | "windows_1251" => 70, 43 | "ks_c_5601_1989" => 64, 44 | } 45 | } 46 | 47 | fn large_map_get(key: &str) -> Option<&u32> { 48 | hashify::map! { 49 | key.as_bytes(), 50 | u32, 51 | "koi8_r" => 35, 52 | "windows_1253" => 97, 53 | "windows_1257" => 114, 54 | "iso_8859_10" => 69, 55 | "windows_1251" => 70, 56 | "ks_c_5601_1989" => 64, 57 | } 58 | } 59 | 60 | fn main() { 61 | assert_eq!(tiny_map_get("koi8_r"), Some(35)); 62 | assert_eq!(large_map_get("koi8_r"), Some(35)); 63 | } 64 | ``` 65 | 66 | Sets: 67 | 68 | ```rust 69 | fn tiny_set_contains(prefix: &str) -> bool { 70 | hashify::tiny_set! { prefix.as_bytes(),"re", "res", "sv", "antw", "ref", "aw", "απ", "השב", "vá", "r", "rif", "bls", "odp", "ynt", "atb", "رد", "回复", "转发", } 71 | } 72 | 73 | fn large_set_contains(prefix: &str) -> bool { 74 | hashify::set! { prefix.as_bytes(), "fwd", "fw", "rv","enc", "vs", "doorst", "vl", "tr", "wg", "πρθ", "הועבר", "továbbítás", "i", "fs", "trs", "vb", "pd", "i̇lt", "yml", "إعادة توجيه", "回覆", "轉寄", } 75 | } 76 | 77 | fn main() { 78 | assert!(tiny_set_contains("回复")); 79 | assert!(large_set_contains("továbbítás")); 80 | } 81 | ``` 82 | 83 | Function maps: 84 | 85 | ```rust 86 | fn main() { 87 | hashify::fnc_map_ignore_case!(input.as_bytes(), 88 | "ALL" => { 89 | println!("All"); 90 | }, 91 | "FULL" => { 92 | println!("Full"); 93 | }, 94 | "FAST" => { 95 | println!("Fast"); 96 | }, 97 | "ENVELOPE" => { 98 | println!("Envelope"); 99 | }, 100 | _ => { 101 | eprintln!("Unknown command {input}"); 102 | } 103 | ); 104 | } 105 | ``` 106 | 107 | ## Testing, Fuzzing & Benchmarking 108 | 109 | To run the testsuite: 110 | 111 | ```bash 112 | $ cargo test --all-features 113 | ``` 114 | 115 | and, to run the benchmarks: 116 | 117 | ```bash 118 | $ cargo bench --all-features 119 | ``` 120 | 121 | ## License 122 | 123 | Licensed under either of 124 | 125 | * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) 126 | * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) 127 | 128 | at your option. 129 | 130 | ## Copyright 131 | 132 | Copyright (C) 2025, Stalwart Labs LLC 133 | -------------------------------------------------------------------------------- /src/tiny.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-FileCopyrightText: 2025 Stalwart Labs LLC 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 OR MIT 5 | */ 6 | 7 | use std::collections::{BTreeMap, HashMap, HashSet}; 8 | 9 | use proc_macro::TokenStream; 10 | use quote::quote; 11 | use syn::Expr; 12 | 13 | use crate::Key; 14 | 15 | #[derive(Debug, Clone)] 16 | pub(crate) enum Algorithm { 17 | Position { idx: usize }, 18 | Xor { idx1: usize, idx2: usize }, 19 | } 20 | 21 | #[derive(Clone)] 22 | pub(crate) struct Table<'x> { 23 | pub algorithm: Algorithm, 24 | pub positions: Vec<(u8, &'x Key, Value<'x>)>, 25 | pub default: Value<'x>, 26 | pub ignore_case: bool, 27 | } 28 | 29 | #[derive(Clone)] 30 | pub(crate) enum Value<'x> { 31 | Some(&'x Expr), 32 | None, 33 | True, 34 | False, 35 | Expr(&'x Expr), 36 | Table(Box>), 37 | } 38 | 39 | pub fn build_tiny_map( 40 | name: Expr, 41 | options: HashMap<&Key, Value>, 42 | default: Value, 43 | ignore_case: bool, 44 | ) -> TokenStream { 45 | let mut map: BTreeMap> = BTreeMap::new(); 46 | let mut min_key_size = usize::MAX; 47 | let mut max_key_size = 0; 48 | 49 | for (key, value) in &options { 50 | let key_size = key.len(); 51 | min_key_size = min_key_size.min(key_size); 52 | max_key_size = max_key_size.max(key_size); 53 | map.entry(key_size).or_default().insert(key, value.clone()); 54 | } 55 | 56 | let (header, footer) = if matches!(default, Value::Expr(_)) { 57 | ( 58 | quote! { 59 | let __key = #name; 60 | }, 61 | quote! { 62 | if !__matched { 63 | #default 64 | } 65 | }, 66 | ) 67 | } else { 68 | ( 69 | quote! { 70 | let __key = #name; 71 | }, 72 | quote! {}, 73 | ) 74 | }; 75 | 76 | // Try building a simple lookup table 77 | if let Some(table) = try_hash(&options, &default, min_key_size, false, ignore_case) { 78 | let else_cond = if !matches!(default, Value::Expr(_)) { 79 | quote! { 80 | else { 81 | #default 82 | } 83 | } 84 | } else { 85 | quote! { 86 | #footer 87 | } 88 | }; 89 | 90 | TokenStream::from(quote! {{ 91 | #header 92 | let mut __matched = (#min_key_size..=#max_key_size).contains(&__key.len()); 93 | 94 | if __matched { 95 | #table 96 | } #else_cond 97 | }}) 98 | } else { 99 | let match_default = if matches!(default, Value::Expr(_)) { 100 | quote! { 101 | { __matched = false; } 102 | } 103 | } else { 104 | quote! { 105 | #default 106 | } 107 | }; 108 | 109 | let match_arms = map.iter().map(|(size, keys)| { 110 | if keys.len() == 1 { 111 | let (key, value) = keys.iter().next().unwrap(); 112 | if ignore_case { 113 | quote! { #size if __key.eq_ignore_ascii_case(#key) => #value, } 114 | } else { 115 | quote! { #size if __key == #key => #value, } 116 | } 117 | } else { 118 | let table = 119 | try_hash(keys, &default, *size, true, ignore_case).unwrap_or_else(|| { 120 | panic!( 121 | "Failed to build lookup table for {} keys: {:?}", 122 | keys.len(), 123 | keys.keys().collect::>() 124 | ) 125 | }); 126 | quote! { #size => { #table } } 127 | } 128 | }); 129 | 130 | TokenStream::from(quote! {{ 131 | #header 132 | let mut __matched = true; 133 | 134 | match __key.len() { 135 | #(#match_arms)* 136 | _ => #match_default, 137 | } 138 | 139 | #footer 140 | }}) 141 | } 142 | } 143 | 144 | impl Algorithm { 145 | pub fn hash(&self, value: &[u8]) -> u8 { 146 | match self { 147 | Algorithm::Position { idx } => value[*idx], 148 | Algorithm::Xor { idx1, idx2 } => value[*idx1] ^ value[*idx2], 149 | } 150 | } 151 | } 152 | 153 | pub(crate) fn try_hash<'x>( 154 | keys: &HashMap<&'x Key, Value<'x>>, 155 | default: &Value<'x>, 156 | size: usize, 157 | is_final_pass: bool, 158 | ignore_case: bool, 159 | ) -> Option> { 160 | // Use direct mapping 161 | if size == 1 && is_final_pass { 162 | return Some(Table { 163 | algorithm: Algorithm::Position { idx: 0 }, 164 | positions: keys 165 | .iter() 166 | .collect::>() 167 | .iter() 168 | .map(|(key, value)| (key.as_bytes()[0], **key, (*value).clone())) 169 | .collect(), 170 | ignore_case, 171 | default: default.clone(), 172 | }); 173 | } 174 | 175 | // Try finding a key index that contains a byte unique to all keys 176 | let mut best_match_count = 0; 177 | let mut best_match_algo = Algorithm::Position { idx: 0 }; 178 | for idx in 0..size { 179 | let mut byte_set = HashSet::new(); 180 | let algorithm = Algorithm::Position { idx }; 181 | for key in keys.keys() { 182 | byte_set.insert(algorithm.hash(key.as_bytes())); 183 | } 184 | if byte_set.len() == keys.len() { 185 | return Some(Table { 186 | positions: keys 187 | .iter() 188 | .collect::>() 189 | .iter() 190 | .map(|(key, value)| (algorithm.hash(key.as_bytes()), **key, (*value).clone())) 191 | .collect(), 192 | algorithm, 193 | ignore_case, 194 | default: default.clone(), 195 | }); 196 | } else if byte_set.len() > best_match_count { 197 | best_match_count = byte_set.len(); 198 | best_match_algo = Algorithm::Position { idx }; 199 | } 200 | } 201 | 202 | // Try XORing key positions 203 | for i in 0..size { 204 | for j in i + 1..size { 205 | let mut byte_set = HashSet::new(); 206 | let algorithm = Algorithm::Xor { idx1: i, idx2: j }; 207 | for key in keys.keys() { 208 | byte_set.insert(algorithm.hash(key.as_bytes())); 209 | } 210 | if byte_set.len() == keys.len() { 211 | return Some(Table { 212 | positions: keys 213 | .iter() 214 | .map(|(key, value)| (algorithm.hash(key.as_bytes()), (*key, value.clone()))) 215 | .collect::>() 216 | .into_iter() 217 | .map(|(key, (a, b))| (key, a, b)) 218 | .collect(), 219 | algorithm, 220 | ignore_case, 221 | default: default.clone(), 222 | }); 223 | } else if byte_set.len() > best_match_count { 224 | best_match_count = byte_set.len(); 225 | best_match_algo = algorithm; 226 | } 227 | } 228 | } 229 | 230 | if is_final_pass { 231 | let mut key_groups = HashMap::new(); 232 | for (key, value) in keys { 233 | key_groups 234 | .entry(best_match_algo.hash(key.as_bytes())) 235 | .or_insert_with(HashMap::new) 236 | .insert(*key, value.clone()); 237 | } 238 | let mut table = Table { 239 | algorithm: best_match_algo, 240 | positions: Vec::with_capacity(keys.len()), 241 | default: default.clone(), 242 | ignore_case, 243 | }; 244 | 245 | for (hash, keys) in key_groups { 246 | if keys.len() > 1 { 247 | let sub_table = try_hash(&keys, default, size, true, ignore_case).unwrap(); 248 | table.positions.push(( 249 | hash, 250 | keys.keys().next().unwrap(), 251 | Value::Table(Box::new(sub_table)), 252 | )); 253 | } else { 254 | let (key, value) = keys.into_iter().next().unwrap(); 255 | table.positions.push((hash, key, value)); 256 | } 257 | } 258 | 259 | Some(table) 260 | } else { 261 | None 262 | } 263 | } 264 | 265 | impl quote::ToTokens for Table<'_> { 266 | fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { 267 | let algorithm = match &self.algorithm { 268 | Algorithm::Position { idx } => { 269 | if self.ignore_case { 270 | quote! { let hash = __key[#idx].to_ascii_lowercase(); } 271 | } else { 272 | quote! { let hash = __key[#idx]; } 273 | } 274 | } 275 | Algorithm::Xor { idx1, idx2 } => { 276 | if self.ignore_case { 277 | quote! { let hash = __key[#idx1].to_ascii_lowercase() ^ __key[#idx2].to_ascii_lowercase(); } 278 | } else { 279 | quote! { let hash = __key[#idx1] ^ __key[#idx2]; } 280 | } 281 | } 282 | }; 283 | 284 | let match_default = if matches!(self.default, Value::Expr(_)) { 285 | quote! { 286 | { __matched = false; } 287 | } 288 | } else { 289 | let default = &self.default; 290 | quote! { 291 | #default 292 | } 293 | }; 294 | let match_arms = self.positions.iter().map(|(hash, key, value)| { 295 | if key.len() > 1 && !matches!(value, Value::Table(_)) { 296 | if self.ignore_case { 297 | quote! { #hash if __key.eq_ignore_ascii_case(#key) => #value, } 298 | } else { 299 | quote! { #hash if __key == #key => #value, } 300 | } 301 | } else { 302 | quote! { #hash => #value, } 303 | } 304 | }); 305 | 306 | tokens.extend(quote! { 307 | #algorithm 308 | match hash { 309 | #(#match_arms)* 310 | _ => #match_default, 311 | } 312 | }); 313 | } 314 | } 315 | 316 | impl quote::ToTokens for Value<'_> { 317 | fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { 318 | tokens.extend(match self { 319 | Value::Some(expr) => quote! { Some(#expr) }, 320 | Value::None => quote! { None }, 321 | Value::True => quote! { true }, 322 | Value::False => quote! { false }, 323 | Value::Expr(expr) => quote! { #expr }, 324 | Value::Table(table) => quote! {{ #table }}, 325 | }); 326 | } 327 | } 328 | -------------------------------------------------------------------------------- /src/large.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-FileCopyrightText: 2025 Stalwart Labs LLC 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 OR MIT 5 | */ 6 | 7 | use proc_macro::TokenStream; 8 | use quote::quote; 9 | 10 | pub fn build_map( 11 | name: Expr, 12 | return_type: Option, 13 | options: Vec<(Key, Option)>, 14 | ignore_case: bool, 15 | ) -> TokenStream { 16 | let Phf { 17 | seed, 18 | pilots_table, 19 | map, 20 | free, 21 | keys, 22 | } = generate_phf(options); 23 | 24 | let mut min_key_size = usize::MAX; 25 | let mut max_key_size = 0; 26 | 27 | let keys_len = keys.len(); 28 | let pilots_len = pilots_table.len(); 29 | let codomain_len = (keys.len() + free.len()) as u64; 30 | let pilots_array = pilots_table.iter().map(|x| quote!(#x)); 31 | let free_array = free.iter().map(|x| quote!(#x)); 32 | let keys_array = map.iter().map(|idx| { 33 | let (key, return_type) = &keys[*idx as usize]; 34 | 35 | if key.len() < min_key_size { 36 | min_key_size = key.len(); 37 | } 38 | if key.len() > max_key_size { 39 | max_key_size = key.len(); 40 | } 41 | 42 | if let Some(return_type) = return_type { 43 | quote! { 44 | (#key, #return_type) 45 | } 46 | } else { 47 | quote! { 48 | #key 49 | } 50 | } 51 | }); 52 | 53 | let (keys_def, keys_return, default_value) = if let Some(return_type) = return_type { 54 | let keys_def = quote! { 55 | &[(&[u8], #return_type)] 56 | }; 57 | let compare_fnc = if ignore_case { 58 | quote! { __key.eq_ignore_ascii_case(value.0) } 59 | } else { 60 | quote! { __key.eq(value.0) } 61 | }; 62 | let keys_return = quote! { 63 | if #compare_fnc { 64 | Some(&value.1) 65 | } else { 66 | None 67 | } 68 | }; 69 | let default_value = quote! { 70 | None 71 | }; 72 | (keys_def, keys_return, default_value) 73 | } else { 74 | let keys_def = quote! { 75 | &[&[u8]] 76 | }; 77 | let keys_return = if ignore_case { 78 | quote! { 79 | __key.eq_ignore_ascii_case(*value) 80 | } 81 | } else { 82 | quote! { 83 | __key.eq(*value) 84 | } 85 | }; 86 | let default_value = quote! { 87 | false 88 | }; 89 | (keys_def, keys_return, default_value) 90 | }; 91 | let c = if ignore_case { 92 | quote! { c.to_ascii_lowercase() } 93 | } else { 94 | quote! { c } 95 | }; 96 | 97 | TokenStream::from(quote! {{ 98 | static PILOTS_TABLE: &[u16] = &[#(#pilots_array),*]; 99 | static FREE: &[u32] = &[#(#free_array),*]; 100 | static KEYS: #keys_def = &[#(#keys_array),*]; 101 | 102 | let __key = #name; 103 | 104 | if (#min_key_size..=#max_key_size).contains(&__key.len()) { 105 | let key_hash = __key.iter().fold(#seed, |h, &c| { 106 | h.wrapping_mul(0x0100_0000_01b3).wrapping_add(#c as u64) 107 | }); 108 | let pilot_hash = (PILOTS_TABLE[key_hash as usize % #pilots_len] as u64).wrapping_mul( 0x517cc1b727220a95); 109 | let idx = ((key_hash ^ pilot_hash) % #codomain_len) as usize; 110 | 111 | let value = if idx < #keys_len { 112 | &KEYS[idx] 113 | } else { 114 | &KEYS[FREE[idx - #keys_len] as usize] 115 | }; 116 | 117 | #keys_return 118 | } else { 119 | #default_value 120 | } 121 | }}) 122 | } 123 | 124 | /* 125 | * SPDX-FileCopyrightText: 2023 Darko Trifunovski & Nikolai Vazquez 126 | * 127 | * SPDX-License-Identifier: Apache-2.0 OR MIT 128 | */ 129 | 130 | use syn::Expr; 131 | 132 | use crate::Key; 133 | 134 | const MAX_ALPHA: f64 = 0.99; 135 | const MIN_C: f64 = 1.5; 136 | 137 | #[inline] 138 | fn ilog2(n: u64) -> u32 { 139 | 63 - n.leading_zeros() 140 | } 141 | 142 | /// Parameters for a PTHash perfect hash function. 143 | pub struct Phf { 144 | pub seed: u64, 145 | pub pilots_table: Vec, 146 | pub map: Vec, 147 | pub free: Vec, 148 | pub keys: Vec<(Key, Option)>, 149 | } 150 | 151 | #[inline] 152 | pub fn hash_key(key: &[u8], seed: u64) -> u64 { 153 | key.iter().fold(seed, |h, b| { 154 | h.wrapping_mul(0x0100_0000_01b3).wrapping_add(*b as u64) 155 | }) 156 | } 157 | 158 | #[inline] 159 | pub fn hash_pilot_value(pilot_value: u16) -> u64 { 160 | (pilot_value as u64).wrapping_mul(0x517cc1b727220a95) 161 | } 162 | 163 | #[inline] 164 | pub fn get_bucket(key_hash: u64, buckets: u64) -> usize { 165 | (key_hash % buckets) as usize 166 | } 167 | 168 | #[inline] 169 | pub fn get_index(key_hash: u64, pilot_hash: u64, codomain_len: u64) -> usize { 170 | ((key_hash ^ pilot_hash) % codomain_len) as usize 171 | } 172 | 173 | /// Generate a perfect hash function using PTHash for the given collection of keys. 174 | /// 175 | /// # Panics 176 | /// 177 | /// Panics if `entries` contains a duplicate key. 178 | pub fn generate_phf(keys: Vec<(Key, Option)>) -> Phf { 179 | if keys.is_empty() { 180 | return Phf { 181 | seed: 0, 182 | map: vec![], 183 | // These vectors have to be non-empty so that the number of buckets and codomain 184 | // length are non-zero, and thus can be used as divisors. 185 | pilots_table: vec![0], 186 | free: vec![0], 187 | keys: vec![], 188 | }; 189 | } 190 | 191 | let n = keys.len() as u64; 192 | let lg = ilog2(n) as f64; 193 | let c = MIN_C + 0.2 * lg; 194 | let buckets_len = if n > 1 { 195 | ((c * n as f64) / lg).ceil() as u64 196 | } else { 197 | 1 198 | }; 199 | 200 | let alpha = MAX_ALPHA - 0.001 * lg; 201 | let codomain_len = { 202 | let candidate = (n as f64 / alpha).ceil() as u64; 203 | candidate + (1 - candidate % 2) 204 | }; 205 | 206 | let mut phf = (1..) 207 | .find_map(|n| try_generate_phf(&keys, buckets_len, codomain_len, n << 32)) 208 | .expect("failed to resolve hash collision"); 209 | phf.keys = keys; 210 | phf 211 | } 212 | 213 | fn try_generate_phf( 214 | entries: &[(Key, Option)], 215 | buckets_len: u64, 216 | codomain_len: u64, 217 | seed: u64, 218 | ) -> Option { 219 | // We begin by hashing the entries, assigning them to buckets, and checking for collisions. 220 | struct HashedEntry { 221 | idx: usize, 222 | hash: u64, 223 | bucket: usize, 224 | } 225 | 226 | let mut hashed_entries: Vec<_> = entries 227 | .iter() 228 | .enumerate() 229 | .map(|(idx, (entry, _))| { 230 | let hash = hash_key(entry.as_bytes(), seed); 231 | let bucket = get_bucket(hash, buckets_len); 232 | 233 | HashedEntry { idx, hash, bucket } 234 | }) 235 | .collect(); 236 | 237 | hashed_entries.sort_unstable_by_key(|e| (e.bucket, e.hash)); 238 | 239 | for window in hashed_entries.as_slice().windows(2) { 240 | let e0 = &window[0]; 241 | let e1 = &window[1]; 242 | 243 | if e0.hash == e1.hash && e0.bucket == e1.bucket { 244 | assert!( 245 | entries[e0.idx].0 != entries[e1.idx].0, 246 | "duplicate keys at indices {} and {}", 247 | e0.idx, 248 | e1.idx 249 | ); 250 | return None; 251 | } 252 | } 253 | 254 | // 255 | struct BucketData { 256 | idx: usize, 257 | start_idx: usize, 258 | size: usize, 259 | } 260 | 261 | let mut buckets = Vec::with_capacity(buckets_len as usize); 262 | 263 | let mut start_idx = 0; 264 | for idx in 0..buckets_len as usize { 265 | let size = hashed_entries[start_idx..] 266 | .iter() 267 | .take_while(|entry| entry.bucket == idx) 268 | .count(); 269 | 270 | buckets.push(BucketData { 271 | idx, 272 | start_idx, 273 | size, 274 | }); 275 | start_idx += size; 276 | } 277 | 278 | buckets.sort_unstable_by(|b1, b2| b1.size.cmp(&b2.size).reverse()); 279 | 280 | let mut pilots_table = vec![0; buckets_len as usize]; 281 | 282 | // Using a sentinel value instead of an Option here allows us to avoid an expensive 283 | // reallocation. This is fine since the compiler cannot handle a static map with more than 284 | // a few million entries anyway. 285 | assert!((entries.len() as u64) < (u32::MAX as u64)); 286 | const EMPTY: u32 = u32::MAX; 287 | let mut map = vec![EMPTY; codomain_len as usize]; 288 | 289 | let mut values_to_add = Vec::new(); 290 | for bucket in buckets { 291 | let mut pilot_found = false; 292 | 293 | let bucket_start = bucket.start_idx; 294 | let bucket_end = bucket_start + bucket.size; 295 | let bucket_entries = &hashed_entries[bucket_start..bucket_end]; 296 | 297 | 'pilots: for pilot in 0u16..=u16::MAX { 298 | values_to_add.clear(); 299 | let pilot_hash = hash_pilot_value(pilot); 300 | 301 | // Check for collisions with items from previous buckets. 302 | for entry in bucket_entries { 303 | let destination = get_index(entry.hash, pilot_hash, codomain_len); 304 | 305 | if map[destination as usize] != EMPTY { 306 | continue 'pilots; 307 | } 308 | 309 | values_to_add.push((entry.idx, destination)); 310 | } 311 | 312 | // Check for collisions within this bucket. 313 | values_to_add.sort_unstable_by_key(|k| k.1); 314 | for window in values_to_add.as_slice().windows(2) { 315 | if window[0].1 == window[1].1 { 316 | continue 'pilots; 317 | } 318 | } 319 | 320 | pilot_found = true; 321 | for &(idx, destination) in &values_to_add { 322 | map[destination] = idx as u32; 323 | } 324 | pilots_table[bucket.idx] = pilot; 325 | break; 326 | } 327 | 328 | if !pilot_found { 329 | return None; 330 | } 331 | } 332 | 333 | // At this point `map` is a table of size `n_prime`, but with `n` values. 334 | // We need to move the items from the back into the empty slots at the 335 | // front, and compute the vector `free` that will point to their new locations. 336 | let extra_slots = codomain_len as usize - entries.len(); 337 | let mut free = vec![0; extra_slots]; 338 | 339 | let mut back_idx = entries.len(); 340 | for front_idx in 0..entries.len() { 341 | if map[front_idx] != EMPTY { 342 | continue; 343 | } 344 | 345 | while map[back_idx] == EMPTY { 346 | back_idx += 1; 347 | } 348 | 349 | map[front_idx] = map[back_idx]; 350 | free[back_idx - entries.len()] = front_idx as u32; 351 | back_idx += 1; 352 | } 353 | 354 | map.truncate(entries.len()); 355 | 356 | Some(Phf { 357 | keys: vec![], 358 | seed, 359 | pilots_table, 360 | map, 361 | free, 362 | }) 363 | } 364 | -------------------------------------------------------------------------------- /LICENSES/Apache-2.0.txt: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /src/large_32.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-FileCopyrightText: 2025 Stalwart Labs LLC 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 OR MIT 5 | */ 6 | 7 | use proc_macro::TokenStream; 8 | use quote::quote; 9 | 10 | pub fn build_map( 11 | name: Expr, 12 | return_type: Option, 13 | options: Vec<(Key, Option)>, 14 | ignore_case: bool, 15 | ) -> TokenStream { 16 | let Phf { 17 | seed, 18 | pilots_table, 19 | map, 20 | free, 21 | keys, 22 | } = generate_phf(options); 23 | 24 | let mut min_key_size = usize::MAX; 25 | let mut max_key_size = 0; 26 | 27 | let keys_len = keys.len(); 28 | let pilots_len = pilots_table.len(); 29 | let codomain_len = (keys.len() + free.len()) as u32; 30 | let pilots_array = pilots_table.iter().map(|x| quote!(#x)); 31 | let free_array = free.iter().map(|x| quote!(#x)); 32 | let keys_array = map.iter().map(|idx| { 33 | let (key, return_type) = &keys[*idx as usize]; 34 | 35 | if key.len() < min_key_size { 36 | min_key_size = key.len(); 37 | } 38 | if key.len() > max_key_size { 39 | max_key_size = key.len(); 40 | } 41 | 42 | if let Some(return_type) = return_type { 43 | quote! { 44 | (#key, #return_type) 45 | } 46 | } else { 47 | quote! { 48 | #key 49 | } 50 | } 51 | }); 52 | 53 | let (keys_def, keys_return, default_value) = if let Some(return_type) = return_type { 54 | let keys_def = quote! { 55 | &[(&[u8], #return_type)] 56 | }; 57 | let compare_fnc = if ignore_case { 58 | quote! { __key.eq_ignore_ascii_case(value.0) } 59 | } else { 60 | quote! { __key.eq(value.0) } 61 | }; 62 | let keys_return = quote! { 63 | if #compare_fnc { 64 | Some(&value.1) 65 | } else { 66 | None 67 | } 68 | }; 69 | let default_value = quote! { 70 | None 71 | }; 72 | (keys_def, keys_return, default_value) 73 | } else { 74 | let keys_def = quote! { 75 | &[&[u8]] 76 | }; 77 | let keys_return = if ignore_case { 78 | quote! { 79 | __key.eq_ignore_ascii_case(*value) 80 | } 81 | } else { 82 | quote! { 83 | __key.eq(*value) 84 | } 85 | }; 86 | let default_value = quote! { 87 | false 88 | }; 89 | (keys_def, keys_return, default_value) 90 | }; 91 | let c = if ignore_case { 92 | quote! { c.to_ascii_lowercase() } 93 | } else { 94 | quote! { c } 95 | }; 96 | 97 | TokenStream::from(quote! {{ 98 | static PILOTS_TABLE: &[u16] = &[#(#pilots_array),*]; 99 | static FREE: &[u32] = &[#(#free_array),*]; 100 | static KEYS: #keys_def = &[#(#keys_array),*]; 101 | 102 | let __key = #name; 103 | 104 | if (#min_key_size..=#max_key_size).contains(&__key.len()) { 105 | let key_hash = __key.iter().fold(#seed, |h, &c| { 106 | h.wrapping_mul(0x01000193).wrapping_add(#c as u32) 107 | }); 108 | let pilot_hash = (PILOTS_TABLE[key_hash as usize % #pilots_len] as u32).wrapping_mul( 0x9e3779b9); 109 | let idx = ((key_hash ^ pilot_hash) % #codomain_len) as usize; 110 | 111 | let value = if idx < #keys_len { 112 | &KEYS[idx] 113 | } else { 114 | &KEYS[FREE[idx - #keys_len] as usize] 115 | }; 116 | 117 | #keys_return 118 | } else { 119 | #default_value 120 | } 121 | }}) 122 | } 123 | 124 | /* 125 | * SPDX-FileCopyrightText: 2023 Darko Trifunovski & Nikolai Vazquez 126 | * 127 | * SPDX-License-Identifier: Apache-2.0 OR MIT 128 | */ 129 | 130 | use syn::Expr; 131 | 132 | use crate::Key; 133 | 134 | const MAX_ALPHA: f64 = 0.99; 135 | const MIN_C: f64 = 1.5; 136 | 137 | #[inline] 138 | fn ilog2(n: u32) -> u32 { 139 | 31 - n.leading_zeros() 140 | } 141 | 142 | /// Parameters for a PTHash perfect hash function. 143 | pub struct Phf { 144 | pub seed: u32, 145 | pub pilots_table: Vec, 146 | pub map: Vec, 147 | pub free: Vec, 148 | pub keys: Vec<(Key, Option)>, 149 | } 150 | 151 | #[inline] 152 | pub fn hash_key(key: &[u8], seed: u32) -> u32 { 153 | key.iter().fold(seed, |h, b| { 154 | h.wrapping_mul(0x01000193).wrapping_add(*b as u32) 155 | }) 156 | } 157 | 158 | #[inline] 159 | pub fn hash_pilot_value(pilot_value: u16) -> u32 { 160 | (pilot_value as u32).wrapping_mul(0x9e3779b9) 161 | } 162 | 163 | #[inline] 164 | pub fn get_bucket(key_hash: u32, buckets: u32) -> usize { 165 | (key_hash % buckets) as usize 166 | } 167 | 168 | #[inline] 169 | pub fn get_index(key_hash: u32, pilot_hash: u32, codomain_len: u32) -> usize { 170 | ((key_hash ^ pilot_hash) % codomain_len) as usize 171 | } 172 | 173 | /// Generate a perfect hash function using PTHash for the given collection of keys. 174 | /// 175 | /// # Panics 176 | /// 177 | /// Panics if `entries` contains a duplicate key. 178 | pub fn generate_phf(keys: Vec<(Key, Option)>) -> Phf { 179 | if keys.is_empty() { 180 | return Phf { 181 | seed: 0, 182 | map: vec![], 183 | // These vectors have to be non-empty so that the number of buckets and codomain 184 | // length are non-zero, and thus can be used as divisors. 185 | pilots_table: vec![0], 186 | free: vec![0], 187 | keys: vec![], 188 | }; 189 | } 190 | 191 | let n = keys.len() as u32; 192 | let lg = ilog2(n) as f64; 193 | let c = MIN_C + 0.2 * lg; 194 | let buckets_len = if n > 1 { 195 | ((c * n as f64) / lg).ceil() as u32 196 | } else { 197 | 1 198 | }; 199 | 200 | let alpha = MAX_ALPHA - 0.001 * lg; 201 | let codomain_len = { 202 | let candidate = (n as f64 / alpha).ceil() as u32; 203 | candidate + (1 - candidate % 2) 204 | }; 205 | 206 | let mut phf = (1u32..) 207 | .find_map(|n| { 208 | try_generate_phf( 209 | &keys, 210 | buckets_len, 211 | codomain_len, 212 | n.wrapping_mul(0x1000_0000), 213 | ) 214 | }) 215 | .expect("failed to resolve hash collision"); 216 | phf.keys = keys; 217 | phf 218 | } 219 | 220 | fn try_generate_phf( 221 | entries: &[(Key, Option)], 222 | buckets_len: u32, 223 | codomain_len: u32, 224 | seed: u32, 225 | ) -> Option { 226 | // We begin by hashing the entries, assigning them to buckets, and checking for collisions. 227 | struct HashedEntry { 228 | idx: usize, 229 | hash: u32, 230 | bucket: usize, 231 | } 232 | 233 | let mut hashed_entries: Vec<_> = entries 234 | .iter() 235 | .enumerate() 236 | .map(|(idx, (entry, _))| { 237 | let hash = hash_key(entry.as_bytes(), seed); 238 | let bucket = get_bucket(hash, buckets_len); 239 | 240 | HashedEntry { idx, hash, bucket } 241 | }) 242 | .collect(); 243 | 244 | hashed_entries.sort_unstable_by_key(|e| (e.bucket, e.hash)); 245 | 246 | for window in hashed_entries.as_slice().windows(2) { 247 | let e0 = &window[0]; 248 | let e1 = &window[1]; 249 | 250 | if e0.hash == e1.hash && e0.bucket == e1.bucket { 251 | assert!( 252 | entries[e0.idx].0 != entries[e1.idx].0, 253 | "duplicate keys at indices {} and {}", 254 | e0.idx, 255 | e1.idx 256 | ); 257 | return None; 258 | } 259 | } 260 | 261 | // 262 | struct BucketData { 263 | idx: usize, 264 | start_idx: usize, 265 | size: usize, 266 | } 267 | 268 | let mut buckets = Vec::with_capacity(buckets_len as usize); 269 | 270 | let mut start_idx = 0; 271 | for idx in 0..buckets_len as usize { 272 | let size = hashed_entries[start_idx..] 273 | .iter() 274 | .take_while(|entry| entry.bucket == idx) 275 | .count(); 276 | 277 | buckets.push(BucketData { 278 | idx, 279 | start_idx, 280 | size, 281 | }); 282 | start_idx += size; 283 | } 284 | 285 | buckets.sort_unstable_by(|b1, b2| b1.size.cmp(&b2.size).reverse()); 286 | 287 | let mut pilots_table = vec![0; buckets_len as usize]; 288 | 289 | // Using a sentinel value instead of an Option here allows us to avoid an expensive 290 | // reallocation. This is fine since the compiler cannot handle a static map with more than 291 | // a few million entries anyway. 292 | assert!((entries.len() as u32) < u32::MAX); 293 | const EMPTY: u32 = u32::MAX; 294 | let mut map = vec![EMPTY; codomain_len as usize]; 295 | 296 | let mut values_to_add = Vec::new(); 297 | for bucket in buckets { 298 | let mut pilot_found = false; 299 | 300 | let bucket_start = bucket.start_idx; 301 | let bucket_end = bucket_start + bucket.size; 302 | let bucket_entries = &hashed_entries[bucket_start..bucket_end]; 303 | 304 | 'pilots: for pilot in 0u16..=u16::MAX { 305 | values_to_add.clear(); 306 | let pilot_hash = hash_pilot_value(pilot); 307 | 308 | // Check for collisions with items from previous buckets. 309 | for entry in bucket_entries { 310 | let destination = get_index(entry.hash, pilot_hash, codomain_len); 311 | 312 | if map[destination as usize] != EMPTY { 313 | continue 'pilots; 314 | } 315 | 316 | values_to_add.push((entry.idx, destination)); 317 | } 318 | 319 | // Check for collisions within this bucket. 320 | values_to_add.sort_unstable_by_key(|k| k.1); 321 | for window in values_to_add.as_slice().windows(2) { 322 | if window[0].1 == window[1].1 { 323 | continue 'pilots; 324 | } 325 | } 326 | 327 | pilot_found = true; 328 | for &(idx, destination) in &values_to_add { 329 | map[destination] = idx as u32; 330 | } 331 | pilots_table[bucket.idx] = pilot; 332 | break; 333 | } 334 | 335 | if !pilot_found { 336 | return None; 337 | } 338 | } 339 | 340 | // At this point `map` is a table of size `n_prime`, but with `n` values. 341 | // We need to move the items from the back into the empty slots at the 342 | // front, and compute the vector `free` that will point to their new locations. 343 | let extra_slots = codomain_len as usize - entries.len(); 344 | let mut free = vec![0; extra_slots]; 345 | 346 | let mut back_idx = entries.len(); 347 | for front_idx in 0..entries.len() { 348 | if map[front_idx] != EMPTY { 349 | continue; 350 | } 351 | 352 | while map[back_idx] == EMPTY { 353 | back_idx += 1; 354 | } 355 | 356 | map[front_idx] = map[back_idx]; 357 | free[back_idx - entries.len()] = front_idx as u32; 358 | back_idx += 1; 359 | } 360 | 361 | map.truncate(entries.len()); 362 | 363 | Some(Phf { 364 | keys: vec![], 365 | seed, 366 | pilots_table, 367 | map, 368 | free, 369 | }) 370 | } 371 | -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- 1 | #![doc = include_str!("../README.md")] 2 | /* 3 | * SPDX-FileCopyrightText: 2025 Stalwart Labs LLC 4 | * 5 | * SPDX-License-Identifier: Apache-2.0 OR MIT 6 | */ 7 | 8 | #[cfg(any(target_pointer_width = "32", feature = "force-32bit"))] 9 | mod large_32; 10 | #[cfg(any(target_pointer_width = "32", feature = "force-32bit"))] 11 | use large_32::build_map; 12 | 13 | #[cfg(all(target_pointer_width = "64", not(feature = "force-32bit")))] 14 | mod large; 15 | #[cfg(all(target_pointer_width = "64", not(feature = "force-32bit")))] 16 | use large::build_map; 17 | 18 | mod tiny; 19 | 20 | use proc_macro::TokenStream; 21 | use proc_macro2::Span; 22 | use std::collections::HashMap; 23 | use syn::punctuated::Punctuated; 24 | use syn::{Error, ExprLit, Lit, LitByteStr, UnOp}; 25 | use syn::{ 26 | Expr, Result, Token, 27 | parse::{Parse, ParseStream}, 28 | parse_macro_input, 29 | }; 30 | use tiny::{Value, build_tiny_map}; 31 | 32 | enum ParsedKey { 33 | Str(String), 34 | Binary(Vec), 35 | Char(char), 36 | I8(i8), 37 | I16(i16), 38 | I32(i32), 39 | I64(i64), 40 | I128(i128), 41 | Isize(isize), 42 | U8(u8), 43 | U16(u16), 44 | U32(u32), 45 | U64(u64), 46 | U128(u128), 47 | Usize(usize), 48 | Bool(bool), 49 | } 50 | 51 | struct MapInput { 52 | name: Expr, 53 | pairs: Punctuated, 54 | } 55 | 56 | struct BigMapInput { 57 | name: Expr, 58 | return_type: Expr, 59 | pairs: Punctuated, 60 | } 61 | 62 | struct FncMapInput { 63 | name: Expr, 64 | default: Expr, 65 | pairs: Punctuated, 66 | } 67 | 68 | struct SetInput { 69 | name: Expr, 70 | pairs: Punctuated, 71 | } 72 | 73 | impl Parse for BigMapInput { 74 | fn parse(input: ParseStream) -> Result { 75 | let name: Expr = input.parse()?; 76 | input.parse::()?; 77 | let return_type: Expr = input.parse()?; 78 | input.parse::()?; 79 | let pairs = input.parse_terminated(KeyValue::parse, Token![,])?; 80 | Ok(BigMapInput { 81 | name, 82 | return_type, 83 | pairs, 84 | }) 85 | } 86 | } 87 | 88 | impl Parse for FncMapInput { 89 | fn parse(input: ParseStream) -> Result { 90 | let name: Expr = input.parse()?; 91 | input.parse::()?; 92 | 93 | let mut pairs = Punctuated::new(); 94 | while !input.peek(Token![_]) { 95 | pairs.push_value(KeyValue::parse(input)?); 96 | if input.peek(Token![_]) { 97 | break; 98 | } 99 | pairs.push_punct(input.parse()?); 100 | } 101 | input.parse::()?; 102 | input.parse::]>()?; 103 | let default: Expr = input.parse()?; 104 | 105 | Ok(FncMapInput { 106 | name, 107 | default, 108 | pairs, 109 | }) 110 | } 111 | } 112 | 113 | impl Parse for MapInput { 114 | fn parse(input: ParseStream) -> Result { 115 | let name: Expr = input.parse()?; 116 | input.parse::()?; 117 | let pairs = input.parse_terminated(KeyValue::parse, Token![,])?; 118 | Ok(MapInput { name, pairs }) 119 | } 120 | } 121 | 122 | impl Parse for SetInput { 123 | fn parse(input: ParseStream) -> Result { 124 | let name: Expr = input.parse()?; 125 | input.parse::()?; 126 | let pairs = input.parse_terminated(Key::parse, Token![,])?; 127 | Ok(SetInput { name, pairs }) 128 | } 129 | } 130 | 131 | struct KeyValue { 132 | key: Key, 133 | value: Expr, 134 | } 135 | 136 | impl Parse for KeyValue { 137 | fn parse(input: ParseStream) -> Result { 138 | let key: Key = input.parse()?; 139 | input.parse::]>()?; 140 | let value: Expr = input.parse()?; 141 | Ok(KeyValue { key, value }) 142 | } 143 | } 144 | 145 | #[derive(Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] 146 | struct Key { 147 | bytes: Vec, 148 | } 149 | 150 | impl Parse for Key { 151 | fn parse(input: ParseStream) -> Result { 152 | let key: Expr = input.parse()?; 153 | let parsed = ParsedKey::from_expr(&key) 154 | .ok_or_else(|| Error::new_spanned(&key, "unsupported key expression"))?; 155 | 156 | Ok(Key { 157 | bytes: parsed.into_bytes(), 158 | }) 159 | } 160 | } 161 | 162 | #[proc_macro] 163 | pub fn map(input: TokenStream) -> TokenStream { 164 | let BigMapInput { 165 | name, 166 | return_type, 167 | pairs, 168 | } = parse_macro_input!(input); 169 | 170 | build_map( 171 | name, 172 | return_type.into(), 173 | pairs 174 | .into_pairs() 175 | .map(|kv| { 176 | let kv = kv.into_value(); 177 | (kv.key, Some(kv.value)) 178 | }) 179 | .collect(), 180 | false, 181 | ) 182 | } 183 | 184 | #[proc_macro] 185 | pub fn map_ignore_case(input: TokenStream) -> TokenStream { 186 | let BigMapInput { 187 | name, 188 | return_type, 189 | pairs, 190 | } = parse_macro_input!(input); 191 | 192 | build_map( 193 | name, 194 | return_type.into(), 195 | pairs 196 | .into_pairs() 197 | .map(|kv| { 198 | let kv = kv.into_value(); 199 | (kv.key.to_lowercase(), Some(kv.value)) 200 | }) 201 | .collect(), 202 | true, 203 | ) 204 | } 205 | 206 | #[proc_macro] 207 | pub fn set(input: TokenStream) -> TokenStream { 208 | let SetInput { name, pairs } = parse_macro_input!(input); 209 | 210 | build_map( 211 | name, 212 | None, 213 | pairs 214 | .into_pairs() 215 | .map(|kv| (kv.into_value(), None)) 216 | .collect(), 217 | false, 218 | ) 219 | } 220 | 221 | #[proc_macro] 222 | pub fn set_ignore_case(input: TokenStream) -> TokenStream { 223 | let SetInput { name, pairs } = parse_macro_input!(input); 224 | 225 | build_map( 226 | name, 227 | None, 228 | pairs 229 | .into_pairs() 230 | .map(|kv| (kv.into_value().to_lowercase(), None)) 231 | .collect(), 232 | true, 233 | ) 234 | } 235 | 236 | #[proc_macro] 237 | pub fn tiny_map(input: TokenStream) -> TokenStream { 238 | let MapInput { name, pairs } = parse_macro_input!(input); 239 | 240 | build_tiny_map( 241 | name, 242 | pairs 243 | .iter() 244 | .map(|kv| (&kv.key, Value::Some(&kv.value))) 245 | .collect::>(), 246 | Value::None, 247 | false, 248 | ) 249 | } 250 | 251 | #[proc_macro] 252 | pub fn tiny_map_ignore_case(input: TokenStream) -> TokenStream { 253 | let MapInput { name, pairs } = parse_macro_input!(input); 254 | let lower_pairs = pairs 255 | .iter() 256 | .map(|kv| (kv.key.to_lowercase(), &kv.value)) 257 | .collect::>(); 258 | 259 | build_tiny_map( 260 | name, 261 | lower_pairs 262 | .iter() 263 | .map(|(key, value)| (key, Value::Some(value))) 264 | .collect::>(), 265 | Value::None, 266 | true, 267 | ) 268 | } 269 | 270 | #[proc_macro] 271 | pub fn fnc_map(input: TokenStream) -> TokenStream { 272 | let FncMapInput { 273 | name, 274 | default, 275 | pairs, 276 | } = parse_macro_input!(input); 277 | 278 | build_tiny_map( 279 | name, 280 | pairs 281 | .iter() 282 | .map(|kv| (&kv.key, Value::Expr(&kv.value))) 283 | .collect::>(), 284 | Value::Expr(&default), 285 | false, 286 | ) 287 | } 288 | 289 | #[proc_macro] 290 | pub fn fnc_map_ignore_case(input: TokenStream) -> TokenStream { 291 | let FncMapInput { 292 | name, 293 | default, 294 | pairs, 295 | } = parse_macro_input!(input); 296 | 297 | let lower_pairs = pairs 298 | .iter() 299 | .map(|kv| (kv.key.to_lowercase(), &kv.value)) 300 | .collect::>(); 301 | 302 | build_tiny_map( 303 | name, 304 | lower_pairs 305 | .iter() 306 | .map(|(key, value)| (key, Value::Expr(value))) 307 | .collect::>(), 308 | Value::Expr(&default), 309 | true, 310 | ) 311 | } 312 | 313 | #[proc_macro] 314 | pub fn tiny_set(input: TokenStream) -> TokenStream { 315 | let SetInput { name, pairs } = parse_macro_input!(input); 316 | 317 | build_tiny_map( 318 | name, 319 | pairs 320 | .iter() 321 | .map(|kv| (kv, Value::True)) 322 | .collect::>(), 323 | Value::False, 324 | false, 325 | ) 326 | } 327 | 328 | #[proc_macro] 329 | pub fn tiny_set_ignore_case(input: TokenStream) -> TokenStream { 330 | let SetInput { name, pairs } = parse_macro_input!(input); 331 | 332 | let lower_pairs = pairs 333 | .iter() 334 | .map(|key| key.to_lowercase()) 335 | .collect::>(); 336 | 337 | build_tiny_map( 338 | name, 339 | lower_pairs 340 | .iter() 341 | .map(|key| (key, Value::True)) 342 | .collect::>(), 343 | Value::False, 344 | true, 345 | ) 346 | } 347 | 348 | impl ParsedKey { 349 | // Credits to phf: https://github.com/rust-phf/rust-phf/blob/master/phf_macros/src/lib.rs 350 | fn from_expr(expr: &Expr) -> Option { 351 | match expr { 352 | Expr::Lit(lit) => match &lit.lit { 353 | Lit::Str(s) => Some(ParsedKey::Str(s.value())), 354 | Lit::ByteStr(s) => Some(ParsedKey::Binary(s.value())), 355 | Lit::Byte(s) => Some(ParsedKey::U8(s.value())), 356 | Lit::Char(s) => Some(ParsedKey::Char(s.value())), 357 | Lit::Int(s) => match s.suffix() { 358 | // we've lost the sign at this point, so `-128i8` looks like `128i8`, 359 | // which doesn't fit in an `i8`; parse it as a `u8` and cast (to `0i8`), 360 | // which is handled below, by `Unary` 361 | "i8" => Some(ParsedKey::I8(s.base10_parse::().unwrap() as i8)), 362 | "i16" => Some(ParsedKey::I16(s.base10_parse::().unwrap() as i16)), 363 | "i32" => Some(ParsedKey::I32(s.base10_parse::().unwrap() as i32)), 364 | "i64" => Some(ParsedKey::I64(s.base10_parse::().unwrap() as i64)), 365 | "i128" => Some(ParsedKey::I128(s.base10_parse::().unwrap() as i128)), 366 | "isize" => Some(ParsedKey::Isize(s.base10_parse::().unwrap() as isize)), 367 | "u8" => Some(ParsedKey::U8(s.base10_parse::().unwrap())), 368 | "u16" => Some(ParsedKey::U16(s.base10_parse::().unwrap())), 369 | "u32" => Some(ParsedKey::U32(s.base10_parse::().unwrap())), 370 | "u64" => Some(ParsedKey::U64(s.base10_parse::().unwrap())), 371 | "u128" => Some(ParsedKey::U128(s.base10_parse::().unwrap())), 372 | "usize" => Some(ParsedKey::Usize(s.base10_parse::().unwrap())), 373 | _ => None, 374 | }, 375 | Lit::Bool(s) => Some(ParsedKey::Bool(s.value)), 376 | _ => None, 377 | }, 378 | Expr::Array(array) => { 379 | let mut buf = vec![]; 380 | for expr in &array.elems { 381 | match expr { 382 | Expr::Lit(lit) => match &lit.lit { 383 | Lit::Int(s) => match s.suffix() { 384 | "u8" | "" => buf.push(s.base10_parse::().unwrap()), 385 | _ => return None, 386 | }, 387 | _ => return None, 388 | }, 389 | _ => return None, 390 | } 391 | } 392 | Some(ParsedKey::Binary(buf)) 393 | } 394 | Expr::Unary(unary) => { 395 | // if we received an integer literal (always unsigned) greater than i__::max_value() 396 | // then casting it to a signed integer type of the same width will negate it to 397 | // the same absolute value so we don't need to negate it here 398 | macro_rules! try_negate ( 399 | ($val:expr) => {if $val < 0 { $val } else { -$val }} 400 | ); 401 | 402 | match unary.op { 403 | UnOp::Neg(_) => match ParsedKey::from_expr(&unary.expr)? { 404 | ParsedKey::I8(v) => Some(ParsedKey::I8(try_negate!(v))), 405 | ParsedKey::I16(v) => Some(ParsedKey::I16(try_negate!(v))), 406 | ParsedKey::I32(v) => Some(ParsedKey::I32(try_negate!(v))), 407 | ParsedKey::I64(v) => Some(ParsedKey::I64(try_negate!(v))), 408 | ParsedKey::I128(v) => Some(ParsedKey::I128(try_negate!(v))), 409 | ParsedKey::Isize(v) => Some(ParsedKey::Isize(try_negate!(v))), 410 | _ => None, 411 | }, 412 | UnOp::Deref(_) => { 413 | let mut expr = &*unary.expr; 414 | while let Expr::Group(group) = expr { 415 | expr = &*group.expr; 416 | } 417 | match expr { 418 | Expr::Lit(ExprLit { 419 | lit: Lit::ByteStr(s), 420 | .. 421 | }) => Some(ParsedKey::Binary(s.value())), 422 | _ => None, 423 | } 424 | } 425 | _ => None, 426 | } 427 | } 428 | Expr::Group(group) => ParsedKey::from_expr(&group.expr), 429 | _ => None, 430 | } 431 | } 432 | 433 | fn into_bytes(self) -> Vec { 434 | match self { 435 | ParsedKey::Str(s) => s.into_bytes(), 436 | ParsedKey::Binary(b) => b, 437 | ParsedKey::Char(c) => c.to_string().into_bytes(), 438 | ParsedKey::I8(i) => vec![i as u8], 439 | ParsedKey::I16(i) => i.to_be_bytes().to_vec(), 440 | ParsedKey::I32(i) => i.to_be_bytes().to_vec(), 441 | ParsedKey::I64(i) => i.to_be_bytes().to_vec(), 442 | ParsedKey::I128(i) => i.to_be_bytes().to_vec(), 443 | ParsedKey::Isize(i) => i.to_be_bytes().to_vec(), 444 | ParsedKey::U8(u) => vec![u], 445 | ParsedKey::U16(u) => u.to_be_bytes().to_vec(), 446 | ParsedKey::U32(u) => u.to_be_bytes().to_vec(), 447 | ParsedKey::U64(u) => u.to_be_bytes().to_vec(), 448 | ParsedKey::U128(u) => u.to_be_bytes().to_vec(), 449 | ParsedKey::Usize(u) => u.to_be_bytes().to_vec(), 450 | ParsedKey::Bool(b) => vec![b as u8], 451 | } 452 | } 453 | } 454 | 455 | impl Key { 456 | fn to_lowercase(&self) -> Key { 457 | Key { 458 | bytes: self.bytes.iter().map(|b| b.to_ascii_lowercase()).collect(), 459 | } 460 | } 461 | 462 | fn as_bytes(&self) -> &[u8] { 463 | &self.bytes 464 | } 465 | 466 | fn len(&self) -> usize { 467 | self.bytes.len() 468 | } 469 | } 470 | 471 | impl quote::ToTokens for Key { 472 | fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { 473 | let byte_str = LitByteStr::new(&self.bytes, Span::call_site()); 474 | 475 | tokens.extend(quote::quote! { 476 | #byte_str 477 | }); 478 | } 479 | } 480 | -------------------------------------------------------------------------------- /tests/test.rs: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-FileCopyrightText: 2025 Stalwart Labs LLC 3 | * 4 | * SPDX-License-Identifier: Apache-2.0 OR MIT 5 | */ 6 | 7 | #[derive(Debug, PartialEq, Eq, Clone, Copy)] 8 | pub(crate) enum Word { 9 | AddFlag, 10 | AddHeader, 11 | Address, 12 | Addresses, 13 | All, 14 | AllOf, 15 | AnyChild, 16 | AnyOf, 17 | Body, 18 | Break, 19 | ByMode, 20 | ByTimeAbsolute, 21 | ByTimeRelative, 22 | ByTrace, 23 | Comparator, 24 | Contains, 25 | Content, 26 | ContentType, 27 | Convert, 28 | Copy, 29 | Count, 30 | Create, 31 | CurrentDate, 32 | Date, 33 | Days, 34 | DeleteHeader, 35 | Detail, 36 | Discard, 37 | Domain, 38 | Duplicate, 39 | Else, 40 | ElsIf, 41 | Enclose, 42 | EncodeUrl, 43 | Envelope, 44 | Environment, 45 | Ereject, 46 | Error, 47 | Exists, 48 | ExtractText, 49 | False, 50 | Fcc, 51 | FileInto, 52 | First, 53 | Flags, 54 | ForEveryPart, 55 | From, 56 | Global, 57 | Handle, 58 | HasFlag, 59 | Header, 60 | Headers, 61 | If, 62 | Ihave, 63 | Importance, 64 | Include, 65 | Index, 66 | Is, 67 | Keep, 68 | Last, 69 | Length, 70 | List, 71 | LocalPart, 72 | Lower, 73 | LowerFirst, 74 | MailboxExists, 75 | MailboxId, 76 | MailboxIdExists, 77 | Matches, 78 | Message, 79 | Metadata, 80 | MetadataExists, 81 | Mime, 82 | Name, 83 | Not, 84 | Notify, 85 | NotifyMethodCapability, 86 | Once, 87 | Optional, 88 | Options, 89 | OriginalZone, 90 | Over, 91 | Param, 92 | Percent, 93 | Personal, 94 | QuoteRegex, 95 | QuoteWildcard, 96 | Raw, 97 | Redirect, 98 | Regex, 99 | Reject, 100 | RemoveFlag, 101 | Replace, 102 | Require, 103 | Ret, 104 | Return, 105 | Seconds, 106 | ServerMetadata, 107 | ServerMetadataExists, 108 | Set, 109 | SetFlag, 110 | Size, 111 | SpamTest, 112 | SpecialUse, 113 | SpecialUseExists, 114 | Stop, 115 | String, 116 | Subject, 117 | Subtype, 118 | Text, 119 | True, 120 | Type, 121 | Under, 122 | UniqueId, 123 | Upper, 124 | UpperFirst, 125 | User, 126 | Vacation, 127 | ValidExtList, 128 | ValidNotifyMethod, 129 | Value, 130 | VirusTest, 131 | Zone, 132 | 133 | // Extensions 134 | Eval, 135 | Local, 136 | While, 137 | Let, 138 | Continue, 139 | } 140 | 141 | pub(crate) static WORDS: phf::Map<&'static str, Word> = phf::phf_map! { 142 | "addflag" => Word::AddFlag, 143 | "addheader" => Word::AddHeader, 144 | "address" => Word::Address, 145 | "addresses" => Word::Addresses, 146 | "all" => Word::All, 147 | "allof" => Word::AllOf, 148 | "anychild" => Word::AnyChild, 149 | "anyof" => Word::AnyOf, 150 | "body" => Word::Body, 151 | "break" => Word::Break, 152 | "bymode" => Word::ByMode, 153 | "bytimeabsolute" => Word::ByTimeAbsolute, 154 | "bytimerelative" => Word::ByTimeRelative, 155 | "bytrace" => Word::ByTrace, 156 | "comparator" => Word::Comparator, 157 | "contains" => Word::Contains, 158 | "content" => Word::Content, 159 | "contenttype" => Word::ContentType, 160 | "convert" => Word::Convert, 161 | "copy" => Word::Copy, 162 | "count" => Word::Count, 163 | "create" => Word::Create, 164 | "currentdate" => Word::CurrentDate, 165 | "date" => Word::Date, 166 | "days" => Word::Days, 167 | "deleteheader" => Word::DeleteHeader, 168 | "detail" => Word::Detail, 169 | "discard" => Word::Discard, 170 | "domain" => Word::Domain, 171 | "duplicate" => Word::Duplicate, 172 | "else" => Word::Else, 173 | "elsif" => Word::ElsIf, 174 | "enclose" => Word::Enclose, 175 | "encodeurl" => Word::EncodeUrl, 176 | "envelope" => Word::Envelope, 177 | "environment" => Word::Environment, 178 | "ereject" => Word::Ereject, 179 | "error" => Word::Error, 180 | "exists" => Word::Exists, 181 | "extracttext" => Word::ExtractText, 182 | "false" => Word::False, 183 | "fcc" => Word::Fcc, 184 | "fileinto" => Word::FileInto, 185 | "first" => Word::First, 186 | "flags" => Word::Flags, 187 | "foreverypart" => Word::ForEveryPart, 188 | "from" => Word::From, 189 | "global" => Word::Global, 190 | "handle" => Word::Handle, 191 | "hasflag" => Word::HasFlag, 192 | "header" => Word::Header, 193 | "headers" => Word::Headers, 194 | "if" => Word::If, 195 | "ihave" => Word::Ihave, 196 | "importance" => Word::Importance, 197 | "include" => Word::Include, 198 | "index" => Word::Index, 199 | "is" => Word::Is, 200 | "keep" => Word::Keep, 201 | "last" => Word::Last, 202 | "length" => Word::Length, 203 | "list" => Word::List, 204 | "localpart" => Word::LocalPart, 205 | "lower" => Word::Lower, 206 | "lowerfirst" => Word::LowerFirst, 207 | "mailboxexists" => Word::MailboxExists, 208 | "mailboxid" => Word::MailboxId, 209 | "mailboxidexists" => Word::MailboxIdExists, 210 | "matches" => Word::Matches, 211 | "message" => Word::Message, 212 | "metadata" => Word::Metadata, 213 | "metadataexists" => Word::MetadataExists, 214 | "mime" => Word::Mime, 215 | "name" => Word::Name, 216 | "not" => Word::Not, 217 | "notify" => Word::Notify, 218 | "notify_method_capability" => Word::NotifyMethodCapability, 219 | "once" => Word::Once, 220 | "optional" => Word::Optional, 221 | "options" => Word::Options, 222 | "originalzone" => Word::OriginalZone, 223 | "over" => Word::Over, 224 | "param" => Word::Param, 225 | "percent" => Word::Percent, 226 | "personal" => Word::Personal, 227 | "quoteregex" => Word::QuoteRegex, 228 | "quotewildcard" => Word::QuoteWildcard, 229 | "raw" => Word::Raw, 230 | "redirect" => Word::Redirect, 231 | "regex" => Word::Regex, 232 | "reject" => Word::Reject, 233 | "removeflag" => Word::RemoveFlag, 234 | "replace" => Word::Replace, 235 | "require" => Word::Require, 236 | "ret" => Word::Ret, 237 | "return" => Word::Return, 238 | "seconds" => Word::Seconds, 239 | "servermetadata" => Word::ServerMetadata, 240 | "servermetadataexists" => Word::ServerMetadataExists, 241 | "set" => Word::Set, 242 | "setflag" => Word::SetFlag, 243 | "size" => Word::Size, 244 | "spamtest" => Word::SpamTest, 245 | "specialuse" => Word::SpecialUse, 246 | "specialuse_exists" => Word::SpecialUseExists, 247 | "stop" => Word::Stop, 248 | "string" => Word::String, 249 | "subject" => Word::Subject, 250 | "subtype" => Word::Subtype, 251 | "text" => Word::Text, 252 | "true" => Word::True, 253 | "type" => Word::Type, 254 | "under" => Word::Under, 255 | "uniqueid" => Word::UniqueId, 256 | "upper" => Word::Upper, 257 | "upperfirst" => Word::UpperFirst, 258 | "user" => Word::User, 259 | "vacation" => Word::Vacation, 260 | "valid_ext_list" => Word::ValidExtList, 261 | "valid_notify_method" => Word::ValidNotifyMethod, 262 | "value" => Word::Value, 263 | "virustest" => Word::VirusTest, 264 | "zone" => Word::Zone, 265 | "eval" => Word::Eval, 266 | "local" => Word::Local, 267 | "while" => Word::While, 268 | "let" => Word::Let, 269 | "continue" => Word::Continue, 270 | }; 271 | 272 | pub(crate) static CHARSETS: phf::Map<&'static str, u32> = phf::phf_map! { 273 | "koi8_r" => 35, 274 | "windows_1253" => 97, 275 | "windows_1257" => 114, 276 | "iso_8859_10" => 69, 277 | "windows_1251" => 70, 278 | "ks_c_5601_1989" => 64, 279 | "cswindows1255" => 71, 280 | "windows_1254" => 78, 281 | "csiso885916" => 66, 282 | "iso_8859_10:1992" => 87, 283 | "iso_8859_8:1988" => 47, 284 | "latin2" => 30, 285 | "csiso885914" => 50, 286 | "cstis620" => 88, 287 | "iso_8859_5:1988" => 59, 288 | "windows_1250" => 94, 289 | "csisolatin5" => 108, 290 | "utf_16" => 116, 291 | "ms_kanji" => 133, 292 | "iso_ir_148" => 22, 293 | "iso_8859_2" => 118, 294 | "l6" => 13, 295 | "csiso2022jp" => 143, 296 | "latin_9" => 25, 297 | "l2" => 27, 298 | "csisolatin3" => 119, 299 | "shift_jis" => 28, 300 | "cswindows1254" => 63, 301 | "cspc850multilingual" => 148, 302 | "cswindows1258" => 58, 303 | "l10" => 38, 304 | "iso_ir_100" => 89, 305 | "cp850" => 20, 306 | "iso_ir_101" => 32, 307 | "iso_celtic" => 23, 308 | "iso_8859_7:1987" => 136, 309 | "latin8" => 3, 310 | "latin4" => 6, 311 | "csisolatin4" => 105, 312 | "utf_16le" => 113, 313 | "csisolatingreek" => 103, 314 | "tis_620" => 45, 315 | "euc_kr" => 24, 316 | "elot_928" => 46, 317 | "iso_ir_127" => 142, 318 | "iso_ir_199" => 65, 319 | "utf_16be" => 117, 320 | "cswindows1256" => 79, 321 | "iso_2022_jp" => 126, 322 | "ms936" => 138, 323 | "gb18030" => 49, 324 | "extended_unix_code_packed_format_for_japanese" => 125, 325 | "iso_8859_9" => 80, 326 | "iso_8859_5" => 68, 327 | "l4" => 4, 328 | "l5" => 8, 329 | "iso_8859_1:1987" => 95, 330 | "latin6" => 15, 331 | "latin1" => 1, 332 | "l3" => 19, 333 | "windows_936" => 93, 334 | "cp936" => 26, 335 | "csiso885913" => 76, 336 | "ecma_114" => 130, 337 | "big5" => 16, 338 | "cswindows1251" => 54, 339 | "greek" => 10, 340 | "iso_8859_9:1989" => 81, 341 | "csutf16le" => 115, 342 | "cyrillic" => 34, 343 | "iso_ir_144" => 29, 344 | "850" => 42, 345 | "l8" => 2, 346 | "iso_8859_7" => 134, 347 | "gbk" => 7, 348 | "iso_8859_16" => 62, 349 | "iso_8859_15" => 53, 350 | "gb2312" => 82, 351 | "windows_1256" => 91, 352 | "iso_8859_3" => 100, 353 | "windows_1252" => 109, 354 | "iso_ir_109" => 75, 355 | "866" => 31, 356 | "cswindows874" => 67, 357 | "cp819" => 14, 358 | "euc_jp" => 33, 359 | "iso_8859_16:2001" => 40, 360 | "cswindows1252" => 98, 361 | "cswindows1257" => 107, 362 | "csmacintosh" => 139, 363 | "csgbk" => 5, 364 | "latin5" => 9, 365 | "iso_8859_11" => 37, 366 | "ibm850" => 141, 367 | "latin3" => 21, 368 | "arabic" => 127, 369 | "windows_874" => 90, 370 | "iso_8859_3:1988" => 77, 371 | "ecma_118" => 121, 372 | "iso_8859_2:1987" => 131, 373 | "mac" => 110, 374 | "l1" => 0, 375 | "csgb18030" => 106, 376 | "iso_ir_126" => 92, 377 | "cskoi8u" => 145, 378 | "csiso885915" => 56, 379 | "macintosh" => 146, 380 | "iso_8859_6:1987" => 111, 381 | "cswindows1253" => 86, 382 | "latin10" => 41, 383 | "iso_8859_13" => 72, 384 | "iso_8859_4" => 55, 385 | "koi8_u" => 104, 386 | "csbig5" => 12, 387 | "csisolatin2" => 132, 388 | "iso_8859_6" => 85, 389 | "windows_1255" => 83, 390 | "cseucpkdfmtjapanese" => 144, 391 | "iso_8859_14:1998" => 44, 392 | "csisolatin6" => 112, 393 | "iso_8859_8" => 43, 394 | "iso_ir_157" => 123, 395 | "ibm819" => 135, 396 | "asmo_708" => 147, 397 | "csutf16be" => 122, 398 | "windows_1258" => 73, 399 | "iso_ir_110" => 61, 400 | "ks_c_5601_1987" => 99, 401 | "csshiftjis" => 18, 402 | "csutf16" => 120, 403 | "utf_7" => 140, 404 | "csisolatin1" => 96, 405 | "iso_8859_4:1988" => 52, 406 | "cskoi8r" => 51, 407 | "csisolatinarabic" => 101, 408 | "csisolatincyrillic" => 102, 409 | "cswindows1250" => 84, 410 | "greek8" => 11, 411 | "csisolatinhebrew" => 124, 412 | "hebrew" => 60, 413 | "iso_8859_1" => 36, 414 | "iso_ir_138" => 39, 415 | "csibm866" => 74, 416 | "iso_ir_226" => 128, 417 | "csutf7" => 129, 418 | "cseuckr" => 57, 419 | "iso_8859_14" => 48, 420 | "cp866" => 17, 421 | "ibm866" => 137, 422 | 423 | }; 424 | 425 | pub(crate) static ENTITIES: phf::Map<&'static str, u32> = phf::phf_map! { 426 | "AElig" => 198, 427 | "AMP" => 38, 428 | "Aacute" => 193, 429 | "Abreve" => 258, 430 | "Acirc" => 194, 431 | "Acy" => 1040, 432 | "Afr" => 120068, 433 | "Agrave" => 192, 434 | "Alpha" => 913, 435 | "Amacr" => 256, 436 | "And" => 10835, 437 | "Aogon" => 260, 438 | "Aopf" => 120120, 439 | "ApplyFunction" => 8289, 440 | "Aring" => 197, 441 | "Ascr" => 119964, 442 | "Assign" => 8788, 443 | "Atilde" => 195, 444 | "Auml" => 196, 445 | "Backslash" => 8726, 446 | "Barv" => 10983, 447 | "Barwed" => 8966, 448 | "Bcy" => 1041, 449 | "Because" => 8757, 450 | "Bernoullis" => 8492, 451 | "Beta" => 914, 452 | "Bfr" => 120069, 453 | "Bopf" => 120121, 454 | "Breve" => 728, 455 | "Bscr" => 8492, 456 | "Bumpeq" => 8782, 457 | "CHcy" => 1063, 458 | "COPY" => 169, 459 | "Cacute" => 262, 460 | "Cap" => 8914, 461 | "CapitalDifferentialD" => 8517, 462 | "Cayleys" => 8493, 463 | "Ccaron" => 268, 464 | "Ccedil" => 199, 465 | "Ccirc" => 264, 466 | "Cconint" => 8752, 467 | "Cdot" => 266, 468 | "Cedilla" => 184, 469 | "CenterDot" => 183, 470 | "Cfr" => 8493, 471 | "Chi" => 935, 472 | "CircleDot" => 8857, 473 | "CircleMinus" => 8854, 474 | "CirclePlus" => 8853, 475 | "CircleTimes" => 8855, 476 | "ClockwiseContourIntegral" => 8754, 477 | "CloseCurlyDoubleQuote" => 8221, 478 | "CloseCurlyQuote" => 8217, 479 | "Colon" => 8759, 480 | "Colone" => 10868, 481 | "Congruent" => 8801, 482 | "Conint" => 8751, 483 | "ContourIntegral" => 8750, 484 | "Copf" => 8450, 485 | "Coproduct" => 8720, 486 | "CounterClockwiseContourIntegral" => 8755, 487 | "Cross" => 10799, 488 | "Cscr" => 119966, 489 | "Cup" => 8915, 490 | "CupCap" => 8781, 491 | "DD" => 8517, 492 | "DDotrahd" => 10513, 493 | "DJcy" => 1026, 494 | "DScy" => 1029, 495 | "DZcy" => 1039, 496 | "Dagger" => 8225, 497 | "Darr" => 8609, 498 | "Dashv" => 10980, 499 | "Dcaron" => 270, 500 | "Dcy" => 1044, 501 | "Del" => 8711, 502 | "Delta" => 916, 503 | "Dfr" => 120071, 504 | "DiacriticalAcute" => 180, 505 | "DiacriticalDot" => 729, 506 | "DiacriticalDoubleAcute" => 733, 507 | "DiacriticalGrave" => 96, 508 | "DiacriticalTilde" => 732, 509 | "Diamond" => 8900, 510 | "DifferentialD" => 8518, 511 | "Dopf" => 120123, 512 | "Dot" => 168, 513 | "DotDot" => 8412, 514 | "DotEqual" => 8784, 515 | "DoubleContourIntegral" => 8751, 516 | "DoubleDot" => 168, 517 | "DoubleDownArrow" => 8659, 518 | "DoubleLeftArrow" => 8656, 519 | "DoubleLeftRightArrow" => 8660, 520 | "DoubleLeftTee" => 10980, 521 | "DoubleLongLeftArrow" => 10232, 522 | "DoubleLongLeftRightArrow" => 10234, 523 | "DoubleLongRightArrow" => 10233, 524 | "DoubleRightArrow" => 8658, 525 | "DoubleRightTee" => 8872, 526 | "DoubleUpArrow" => 8657, 527 | "DoubleUpDownArrow" => 8661, 528 | "DoubleVerticalBar" => 8741, 529 | "DownArrow" => 8595, 530 | "DownArrowBar" => 10515, 531 | "DownArrowUpArrow" => 8693, 532 | "DownBreve" => 785, 533 | "DownLeftRightVector" => 10576, 534 | "DownLeftTeeVector" => 10590, 535 | "DownLeftVector" => 8637, 536 | "DownLeftVectorBar" => 10582, 537 | "DownRightTeeVector" => 10591, 538 | "DownRightVector" => 8641, 539 | "DownRightVectorBar" => 10583, 540 | "DownTee" => 8868, 541 | "DownTeeArrow" => 8615, 542 | "Downarrow" => 8659, 543 | "Dscr" => 119967, 544 | "Dstrok" => 272, 545 | "ENG" => 330, 546 | "ETH" => 208, 547 | "Eacute" => 201, 548 | "Ecaron" => 282, 549 | "Ecirc" => 202, 550 | "Ecy" => 1069, 551 | "Edot" => 278, 552 | "Efr" => 120072, 553 | "Egrave" => 200, 554 | "Element" => 8712, 555 | "Emacr" => 274, 556 | "EmptySmallSquare" => 9723, 557 | "EmptyVerySmallSquare" => 9643, 558 | "Eogon" => 280, 559 | "Eopf" => 120124, 560 | "Epsilon" => 917, 561 | "Equal" => 10869, 562 | "EqualTilde" => 8770, 563 | "Equilibrium" => 8652, 564 | "Escr" => 8496, 565 | "Esim" => 10867, 566 | "Eta" => 919, 567 | "Euml" => 203, 568 | "Exists" => 8707, 569 | "ExponentialE" => 8519, 570 | "Fcy" => 1060, 571 | "Ffr" => 120073, 572 | "FilledSmallSquare" => 9724, 573 | "FilledVerySmallSquare" => 9642, 574 | "Fopf" => 120125, 575 | "ForAll" => 8704, 576 | "Fouriertrf" => 8497, 577 | "Fscr" => 8497, 578 | "GJcy" => 1027, 579 | "GT" => 62, 580 | "Gamma" => 915, 581 | "Gammad" => 988, 582 | "Gbreve" => 286, 583 | "Gcedil" => 290, 584 | "Gcirc" => 284, 585 | "Gcy" => 1043, 586 | "Gdot" => 288, 587 | "Gfr" => 120074, 588 | "Gg" => 8921, 589 | "Gopf" => 120126, 590 | "GreaterEqual" => 8805, 591 | "GreaterEqualLess" => 8923, 592 | "GreaterFullEqual" => 8807, 593 | "GreaterGreater" => 10914, 594 | "GreaterLess" => 8823, 595 | "GreaterSlantEqual" => 10878, 596 | "GreaterTilde" => 8819, 597 | "Gscr" => 119970, 598 | "Gt" => 8811, 599 | "HARDcy" => 1066, 600 | "Hacek" => 711, 601 | "Hat" => 94, 602 | "Hcirc" => 292, 603 | "Hfr" => 8460, 604 | "HilbertSpace" => 8459, 605 | "Hopf" => 8461, 606 | "HorizontalLine" => 9472, 607 | "Hscr" => 8459, 608 | "Hstrok" => 294, 609 | "HumpDownHump" => 8782, 610 | "HumpEqual" => 8783, 611 | "IEcy" => 1045, 612 | "IJlig" => 306, 613 | "IOcy" => 1025, 614 | "Iacute" => 205, 615 | "Icirc" => 206, 616 | "Icy" => 1048, 617 | "Idot" => 304, 618 | "Ifr" => 8465, 619 | "Igrave" => 204, 620 | "Im" => 8465, 621 | "Imacr" => 298, 622 | "ImaginaryI" => 8520, 623 | "Implies" => 8658, 624 | "Int" => 8748, 625 | "Integral" => 8747, 626 | "Intersection" => 8898, 627 | "InvisibleComma" => 8291, 628 | "InvisibleTimes" => 8290, 629 | "Iogon" => 302, 630 | "Iopf" => 120128, 631 | "Iota" => 921, 632 | "Iscr" => 8464, 633 | "Itilde" => 296, 634 | "Iukcy" => 1030, 635 | "Iuml" => 207, 636 | "Jcirc" => 308, 637 | "Jcy" => 1049, 638 | "Jfr" => 120077, 639 | "Jopf" => 120129, 640 | "Jscr" => 119973, 641 | "Jsercy" => 1032, 642 | "Jukcy" => 1028, 643 | "KHcy" => 1061, 644 | "KJcy" => 1036, 645 | "Kappa" => 922, 646 | "Kcedil" => 310, 647 | "Kcy" => 1050, 648 | "Kfr" => 120078, 649 | "Kopf" => 120130, 650 | "Kscr" => 119974, 651 | "LJcy" => 1033, 652 | "LT" => 60, 653 | "Lacute" => 313, 654 | "Lambda" => 923, 655 | "Lang" => 10218, 656 | "Laplacetrf" => 8466, 657 | "Larr" => 8606, 658 | "Lcaron" => 317, 659 | "Lcedil" => 315, 660 | "Lcy" => 1051, 661 | "LeftAngleBracket" => 10216, 662 | "LeftArrow" => 8592, 663 | "LeftArrowBar" => 8676, 664 | "LeftArrowRightArrow" => 8646, 665 | "LeftCeiling" => 8968, 666 | "LeftDoubleBracket" => 10214, 667 | "LeftDownTeeVector" => 10593, 668 | "LeftDownVector" => 8643, 669 | "LeftDownVectorBar" => 10585, 670 | "LeftFloor" => 8970, 671 | "LeftRightArrow" => 8596, 672 | "LeftRightVector" => 10574, 673 | "LeftTee" => 8867, 674 | "LeftTeeArrow" => 8612, 675 | "LeftTeeVector" => 10586, 676 | "LeftTriangle" => 8882, 677 | "LeftTriangleBar" => 10703, 678 | "LeftTriangleEqual" => 8884, 679 | "LeftUpDownVector" => 10577, 680 | "LeftUpTeeVector" => 10592, 681 | "LeftUpVector" => 8639, 682 | "LeftUpVectorBar" => 10584, 683 | "LeftVector" => 8636, 684 | "LeftVectorBar" => 10578, 685 | "Leftarrow" => 8656, 686 | "Leftrightarrow" => 8660, 687 | "LessEqualGreater" => 8922, 688 | "LessFullEqual" => 8806, 689 | "LessGreater" => 8822, 690 | "LessLess" => 10913, 691 | "LessSlantEqual" => 10877, 692 | "LessTilde" => 8818, 693 | "Lfr" => 120079, 694 | "Ll" => 8920, 695 | "Lleftarrow" => 8666, 696 | "Lmidot" => 319, 697 | "LongLeftArrow" => 10229, 698 | "LongLeftRightArrow" => 10231, 699 | "LongRightArrow" => 10230, 700 | "Longleftarrow" => 10232, 701 | "Longleftrightarrow" => 10234, 702 | "Longrightarrow" => 10233, 703 | "Lopf" => 120131, 704 | "LowerLeftArrow" => 8601, 705 | "LowerRightArrow" => 8600, 706 | "Lscr" => 8466, 707 | "Lsh" => 8624, 708 | "Lstrok" => 321, 709 | "Lt" => 8810, 710 | "Map" => 10501, 711 | "Mcy" => 1052, 712 | "MediumSpace" => 8287, 713 | "Mellintrf" => 8499, 714 | "Mfr" => 120080, 715 | "MinusPlus" => 8723, 716 | "Mopf" => 120132, 717 | "Mscr" => 8499, 718 | "Mu" => 924, 719 | "NJcy" => 1034, 720 | "Nacute" => 323, 721 | "Ncaron" => 327, 722 | "Ncedil" => 325, 723 | "Ncy" => 1053, 724 | "NegativeMediumSpace" => 8203, 725 | "NegativeThickSpace" => 8203, 726 | "NegativeThinSpace" => 8203, 727 | "NegativeVeryThinSpace" => 8203, 728 | "NestedGreaterGreater" => 8811, 729 | "NestedLessLess" => 8810, 730 | "NewLine" => 10, 731 | "Nfr" => 120081, 732 | "NoBreak" => 8288, 733 | "NonBreakingSpace" => 160, 734 | "Nopf" => 8469, 735 | "Not" => 10988, 736 | "NotCongruent" => 8802, 737 | "NotCupCap" => 8813, 738 | "NotDoubleVerticalBar" => 8742, 739 | "NotElement" => 8713, 740 | "NotEqual" => 8800, 741 | "NotEqualTilde" => 8770, 742 | "NotExists" => 8708, 743 | "NotGreater" => 8815, 744 | "NotGreaterEqual" => 8817, 745 | "NotGreaterFullEqual" => 8807, 746 | "NotGreaterGreater" => 8811, 747 | "NotGreaterLess" => 8825, 748 | "NotGreaterSlantEqual" => 10878, 749 | "NotGreaterTilde" => 8821, 750 | "NotHumpDownHump" => 8782, 751 | "NotHumpEqual" => 8783, 752 | "NotLeftTriangle" => 8938, 753 | "NotLeftTriangleBar" => 10703, 754 | "NotLeftTriangleEqual" => 8940, 755 | "NotLess" => 8814, 756 | "NotLessEqual" => 8816, 757 | "NotLessGreater" => 8824, 758 | "NotLessLess" => 8810, 759 | "NotLessSlantEqual" => 10877, 760 | "NotLessTilde" => 8820, 761 | "NotNestedGreaterGreater" => 10914, 762 | "NotNestedLessLess" => 10913, 763 | "NotPrecedes" => 8832, 764 | "NotPrecedesEqual" => 10927, 765 | "NotPrecedesSlantEqual" => 8928, 766 | "NotReverseElement" => 8716, 767 | "NotRightTriangle" => 8939, 768 | "NotRightTriangleBar" => 10704, 769 | "NotRightTriangleEqual" => 8941, 770 | "NotSquareSubset" => 8847, 771 | "NotSquareSubsetEqual" => 8930, 772 | "NotSquareSuperset" => 8848, 773 | "NotSquareSupersetEqual" => 8931, 774 | "NotSubset" => 8834, 775 | "NotSubsetEqual" => 8840, 776 | "NotSucceeds" => 8833, 777 | "NotSucceedsEqual" => 10928, 778 | "NotSucceedsSlantEqual" => 8929, 779 | "NotSucceedsTilde" => 8831, 780 | "NotSuperset" => 8835, 781 | "NotSupersetEqual" => 8841, 782 | "NotTilde" => 8769, 783 | "NotTildeEqual" => 8772, 784 | "NotTildeFullEqual" => 8775, 785 | "NotTildeTilde" => 8777, 786 | "NotVerticalBar" => 8740, 787 | "Nscr" => 119977, 788 | "Ntilde" => 209, 789 | "Nu" => 925, 790 | "OElig" => 338, 791 | "Oacute" => 211, 792 | "Ocirc" => 212, 793 | "Ocy" => 1054, 794 | "Odblac" => 336, 795 | "Ofr" => 120082, 796 | "Ograve" => 210, 797 | "Omacr" => 332, 798 | "Omega" => 937, 799 | "Omicron" => 927, 800 | "Oopf" => 120134, 801 | "OpenCurlyDoubleQuote" => 8220, 802 | "OpenCurlyQuote" => 8216, 803 | "Or" => 10836, 804 | "Oscr" => 119978, 805 | "Oslash" => 216, 806 | "Otilde" => 213, 807 | "Otimes" => 10807, 808 | "Ouml" => 214, 809 | "OverBar" => 8254, 810 | "OverBrace" => 9182, 811 | "OverBracket" => 9140, 812 | "OverParenthesis" => 9180, 813 | "PartialD" => 8706, 814 | "Pcy" => 1055, 815 | "Pfr" => 120083, 816 | "Phi" => 934, 817 | "Pi" => 928, 818 | "PlusMinus" => 177, 819 | "Poincareplane" => 8460, 820 | "Popf" => 8473, 821 | "Pr" => 10939, 822 | "Precedes" => 8826, 823 | "PrecedesEqual" => 10927, 824 | "PrecedesSlantEqual" => 8828, 825 | "PrecedesTilde" => 8830, 826 | "Prime" => 8243, 827 | "Product" => 8719, 828 | "Proportion" => 8759, 829 | "Proportional" => 8733, 830 | "Pscr" => 119979, 831 | "Psi" => 936, 832 | "QUOT" => 34, 833 | "Qfr" => 120084, 834 | "Qopf" => 8474, 835 | "Qscr" => 119980, 836 | "RBarr" => 10512, 837 | "REG" => 174, 838 | "Racute" => 340, 839 | "Rang" => 10219, 840 | "Rarr" => 8608, 841 | "Rarrtl" => 10518, 842 | "Rcaron" => 344, 843 | "Rcedil" => 342, 844 | "Rcy" => 1056, 845 | "Re" => 8476, 846 | "ReverseElement" => 8715, 847 | "ReverseEquilibrium" => 8651, 848 | "ReverseUpEquilibrium" => 10607, 849 | "Rfr" => 8476, 850 | "Rho" => 929, 851 | "RightAngleBracket" => 10217, 852 | "RightArrow" => 8594, 853 | "RightArrowBar" => 8677, 854 | "RightArrowLeftArrow" => 8644, 855 | "RightCeiling" => 8969, 856 | "RightDoubleBracket" => 10215, 857 | "RightDownTeeVector" => 10589, 858 | "RightDownVector" => 8642, 859 | "RightDownVectorBar" => 10581, 860 | "RightFloor" => 8971, 861 | "RightTee" => 8866, 862 | "RightTeeArrow" => 8614, 863 | "RightTeeVector" => 10587, 864 | "RightTriangle" => 8883, 865 | "RightTriangleBar" => 10704, 866 | "RightTriangleEqual" => 8885, 867 | "RightUpDownVector" => 10575, 868 | "RightUpTeeVector" => 10588, 869 | "RightUpVector" => 8638, 870 | "RightUpVectorBar" => 10580, 871 | "RightVector" => 8640, 872 | "RightVectorBar" => 10579, 873 | "Rightarrow" => 8658, 874 | "Ropf" => 8477, 875 | "RoundImplies" => 10608, 876 | "Rrightarrow" => 8667, 877 | "Rscr" => 8475, 878 | "Rsh" => 8625, 879 | "RuleDelayed" => 10740, 880 | "SHCHcy" => 1065, 881 | "SHcy" => 1064, 882 | "SOFTcy" => 1068, 883 | "Sacute" => 346, 884 | "Sc" => 10940, 885 | "Scaron" => 352, 886 | "Scedil" => 350, 887 | "Scirc" => 348, 888 | "Scy" => 1057, 889 | "Sfr" => 120086, 890 | "ShortDownArrow" => 8595, 891 | "ShortLeftArrow" => 8592, 892 | "ShortRightArrow" => 8594, 893 | "ShortUpArrow" => 8593, 894 | "Sigma" => 931, 895 | "SmallCircle" => 8728, 896 | "Sopf" => 120138, 897 | "Sqrt" => 8730, 898 | "Square" => 9633, 899 | "SquareIntersection" => 8851, 900 | "SquareSubset" => 8847, 901 | "SquareSubsetEqual" => 8849, 902 | "SquareSuperset" => 8848, 903 | "SquareSupersetEqual" => 8850, 904 | "SquareUnion" => 8852, 905 | "Sscr" => 119982, 906 | "Star" => 8902, 907 | "Sub" => 8912, 908 | "Subset" => 8912, 909 | "SubsetEqual" => 8838, 910 | "Succeeds" => 8827, 911 | "SucceedsEqual" => 10928, 912 | "SucceedsSlantEqual" => 8829, 913 | "SucceedsTilde" => 8831, 914 | "SuchThat" => 8715, 915 | "Sum" => 8721, 916 | "Sup" => 8913, 917 | "Superset" => 8835, 918 | "SupersetEqual" => 8839, 919 | "Supset" => 8913, 920 | "THORN" => 222, 921 | "TRADE" => 8482, 922 | "TSHcy" => 1035, 923 | "TScy" => 1062, 924 | "Tab" => 9, 925 | "Tau" => 932, 926 | "Tcaron" => 356, 927 | "Tcedil" => 354, 928 | "Tcy" => 1058, 929 | "Tfr" => 120087, 930 | "Therefore" => 8756, 931 | "Theta" => 920, 932 | "ThickSpace" => 8287, 933 | "ThinSpace" => 8201, 934 | "Tilde" => 8764, 935 | "TildeEqual" => 8771, 936 | "TildeFullEqual" => 8773, 937 | "TildeTilde" => 8776, 938 | "Topf" => 120139, 939 | "TripleDot" => 8411, 940 | "Tscr" => 119983, 941 | "Tstrok" => 358, 942 | "Uacute" => 218, 943 | "Uarr" => 8607, 944 | "Uarrocir" => 10569, 945 | "Ubrcy" => 1038, 946 | "Ubreve" => 364, 947 | "Ucirc" => 219, 948 | "Ucy" => 1059, 949 | "Udblac" => 368, 950 | "Ufr" => 120088, 951 | "Ugrave" => 217, 952 | "Umacr" => 362, 953 | "UnderBar" => 95, 954 | "UnderBrace" => 9183, 955 | "UnderBracket" => 9141, 956 | "UnderParenthesis" => 9181, 957 | "Union" => 8899, 958 | "UnionPlus" => 8846, 959 | "Uogon" => 370, 960 | "Uopf" => 120140, 961 | "UpArrow" => 8593, 962 | "UpArrowBar" => 10514, 963 | "UpArrowDownArrow" => 8645, 964 | "UpDownArrow" => 8597, 965 | "UpEquilibrium" => 10606, 966 | "UpTee" => 8869, 967 | "UpTeeArrow" => 8613, 968 | "Uparrow" => 8657, 969 | "Updownarrow" => 8661, 970 | "UpperLeftArrow" => 8598, 971 | "UpperRightArrow" => 8599, 972 | "Upsi" => 978, 973 | "Upsilon" => 933, 974 | "Uring" => 366, 975 | "Uscr" => 119984, 976 | "Utilde" => 360, 977 | "Uuml" => 220, 978 | "VDash" => 8875, 979 | "Vbar" => 10987, 980 | "Vcy" => 1042, 981 | "Vdash" => 8873, 982 | "Vdashl" => 10982, 983 | "Vee" => 8897, 984 | "Verbar" => 8214, 985 | "Vert" => 8214, 986 | "VerticalBar" => 8739, 987 | "VerticalLine" => 124, 988 | "VerticalSeparator" => 10072, 989 | "VerticalTilde" => 8768, 990 | "VeryThinSpace" => 8202, 991 | "Vfr" => 120089, 992 | "Vopf" => 120141, 993 | "Vscr" => 119985, 994 | "Vvdash" => 8874, 995 | "Wcirc" => 372, 996 | "Wedge" => 8896, 997 | "Wfr" => 120090, 998 | "Wopf" => 120142, 999 | "Wscr" => 119986, 1000 | "Xfr" => 120091, 1001 | "Xi" => 926, 1002 | "Xopf" => 120143, 1003 | "Xscr" => 119987, 1004 | "YAcy" => 1071, 1005 | "YIcy" => 1031, 1006 | "YUcy" => 1070, 1007 | "Yacute" => 221, 1008 | "Ycirc" => 374, 1009 | "Ycy" => 1067, 1010 | "Yfr" => 120092, 1011 | "Yopf" => 120144, 1012 | "Yscr" => 119988, 1013 | "Yuml" => 376, 1014 | "ZHcy" => 1046, 1015 | "Zacute" => 377, 1016 | "Zcaron" => 381, 1017 | "Zcy" => 1047, 1018 | "Zdot" => 379, 1019 | "ZeroWidthSpace" => 8203, 1020 | "Zeta" => 918, 1021 | "Zfr" => 8488, 1022 | "Zopf" => 8484, 1023 | "Zscr" => 119989, 1024 | "aacute" => 225, 1025 | "abreve" => 259, 1026 | "ac" => 8766, 1027 | "acE" => 8766, 1028 | "acd" => 8767, 1029 | "acirc" => 226, 1030 | "acute" => 180, 1031 | "acy" => 1072, 1032 | "aelig" => 230, 1033 | "af" => 8289, 1034 | "afr" => 120094, 1035 | "agrave" => 224, 1036 | "alefsym" => 8501, 1037 | "aleph" => 8501, 1038 | "alpha" => 945, 1039 | "amacr" => 257, 1040 | "amalg" => 10815, 1041 | "amp" => 38, 1042 | "and" => 8743, 1043 | "andand" => 10837, 1044 | "andd" => 10844, 1045 | "andslope" => 10840, 1046 | "andv" => 10842, 1047 | "ang" => 8736, 1048 | "ange" => 10660, 1049 | "angle" => 8736, 1050 | "angmsd" => 8737, 1051 | "angmsdaa" => 10664, 1052 | "angmsdab" => 10665, 1053 | "angmsdac" => 10666, 1054 | "angmsdad" => 10667, 1055 | "angmsdae" => 10668, 1056 | "angmsdaf" => 10669, 1057 | "angmsdag" => 10670, 1058 | "angmsdah" => 10671, 1059 | "angrt" => 8735, 1060 | "angrtvb" => 8894, 1061 | "angrtvbd" => 10653, 1062 | "angsph" => 8738, 1063 | "angst" => 197, 1064 | "angzarr" => 9084, 1065 | "aogon" => 261, 1066 | "aopf" => 120146, 1067 | "ap" => 8776, 1068 | "apE" => 10864, 1069 | "apacir" => 10863, 1070 | "ape" => 8778, 1071 | "apid" => 8779, 1072 | "apos" => 39, 1073 | "approx" => 8776, 1074 | "approxeq" => 8778, 1075 | "aring" => 229, 1076 | "ascr" => 119990, 1077 | "ast" => 42, 1078 | "asymp" => 8776, 1079 | "asympeq" => 8781, 1080 | "atilde" => 227, 1081 | "auml" => 228, 1082 | "awconint" => 8755, 1083 | "awint" => 10769, 1084 | "bNot" => 10989, 1085 | "backcong" => 8780, 1086 | "backepsilon" => 1014, 1087 | "backprime" => 8245, 1088 | "backsim" => 8765, 1089 | "backsimeq" => 8909, 1090 | "barvee" => 8893, 1091 | "barwed" => 8965, 1092 | "barwedge" => 8965, 1093 | "bbrk" => 9141, 1094 | "bbrktbrk" => 9142, 1095 | "bcong" => 8780, 1096 | "bcy" => 1073, 1097 | "bdquo" => 8222, 1098 | "becaus" => 8757, 1099 | "because" => 8757, 1100 | "bemptyv" => 10672, 1101 | "bepsi" => 1014, 1102 | "bernou" => 8492, 1103 | "beta" => 946, 1104 | "beth" => 8502, 1105 | "between" => 8812, 1106 | "bfr" => 120095, 1107 | "bigcap" => 8898, 1108 | "bigcirc" => 9711, 1109 | "bigcup" => 8899, 1110 | "bigodot" => 10752, 1111 | "bigoplus" => 10753, 1112 | "bigotimes" => 10754, 1113 | "bigsqcup" => 10758, 1114 | "bigstar" => 9733, 1115 | "bigtriangledown" => 9661, 1116 | "bigtriangleup" => 9651, 1117 | "biguplus" => 10756, 1118 | "bigvee" => 8897, 1119 | "bigwedge" => 8896, 1120 | "bkarow" => 10509, 1121 | "blacklozenge" => 10731, 1122 | "blacksquare" => 9642, 1123 | "blacktriangle" => 9652, 1124 | "blacktriangledown" => 9662, 1125 | "blacktriangleleft" => 9666, 1126 | "blacktriangleright" => 9656, 1127 | "blank" => 9251, 1128 | "blk12" => 9618, 1129 | "blk14" => 9617, 1130 | "blk34" => 9619, 1131 | "block" => 9608, 1132 | "bne" => 61, 1133 | "bnequiv" => 8801, 1134 | "bnot" => 8976, 1135 | "bopf" => 120147, 1136 | "bot" => 8869, 1137 | "bottom" => 8869, 1138 | "bowtie" => 8904, 1139 | "boxDL" => 9559, 1140 | "boxDR" => 9556, 1141 | "boxDl" => 9558, 1142 | "boxDr" => 9555, 1143 | "boxH" => 9552, 1144 | "boxHD" => 9574, 1145 | "boxHU" => 9577, 1146 | "boxHd" => 9572, 1147 | "boxHu" => 9575, 1148 | "boxUL" => 9565, 1149 | "boxUR" => 9562, 1150 | "boxUl" => 9564, 1151 | "boxUr" => 9561, 1152 | "boxV" => 9553, 1153 | "boxVH" => 9580, 1154 | "boxVL" => 9571, 1155 | "boxVR" => 9568, 1156 | "boxVh" => 9579, 1157 | "boxVl" => 9570, 1158 | "boxVr" => 9567, 1159 | "boxbox" => 10697, 1160 | "boxdL" => 9557, 1161 | "boxdR" => 9554, 1162 | "boxdl" => 9488, 1163 | "boxdr" => 9484, 1164 | "boxh" => 9472, 1165 | "boxhD" => 9573, 1166 | "boxhU" => 9576, 1167 | "boxhd" => 9516, 1168 | "boxhu" => 9524, 1169 | "boxminus" => 8863, 1170 | "boxplus" => 8862, 1171 | "boxtimes" => 8864, 1172 | "boxuL" => 9563, 1173 | "boxuR" => 9560, 1174 | "boxul" => 9496, 1175 | "boxur" => 9492, 1176 | "boxv" => 9474, 1177 | "boxvH" => 9578, 1178 | "boxvL" => 9569, 1179 | "boxvR" => 9566, 1180 | "boxvh" => 9532, 1181 | "boxvl" => 9508, 1182 | "boxvr" => 9500, 1183 | "bprime" => 8245, 1184 | "breve" => 728, 1185 | "brvbar" => 166, 1186 | "bscr" => 119991, 1187 | "bsemi" => 8271, 1188 | "bsim" => 8765, 1189 | "bsime" => 8909, 1190 | "bsol" => 92, 1191 | "bsolb" => 10693, 1192 | "bsolhsub" => 10184, 1193 | "bull" => 8226, 1194 | "bullet" => 8226, 1195 | "bump" => 8782, 1196 | "bumpE" => 10926, 1197 | "bumpe" => 8783, 1198 | "bumpeq" => 8783, 1199 | "cacute" => 263, 1200 | "cap" => 8745, 1201 | "capand" => 10820, 1202 | "capbrcup" => 10825, 1203 | "capcap" => 10827, 1204 | "capcup" => 10823, 1205 | "capdot" => 10816, 1206 | "caps" => 8745, 1207 | "caret" => 8257, 1208 | "caron" => 711, 1209 | "ccaps" => 10829, 1210 | "ccaron" => 269, 1211 | "ccedil" => 231, 1212 | "ccirc" => 265, 1213 | "ccups" => 10828, 1214 | "ccupssm" => 10832, 1215 | "cdot" => 267, 1216 | "cedil" => 184, 1217 | "cemptyv" => 10674, 1218 | "cent" => 162, 1219 | "centerdot" => 183, 1220 | "cfr" => 120096, 1221 | "chcy" => 1095, 1222 | "check" => 10003, 1223 | "checkmark" => 10003, 1224 | "chi" => 967, 1225 | "cir" => 9675, 1226 | "cirE" => 10691, 1227 | "circ" => 710, 1228 | "circeq" => 8791, 1229 | "circlearrowleft" => 8634, 1230 | "circlearrowright" => 8635, 1231 | "circledR" => 174, 1232 | "circledS" => 9416, 1233 | "circledast" => 8859, 1234 | "circledcirc" => 8858, 1235 | "circleddash" => 8861, 1236 | "cire" => 8791, 1237 | "cirfnint" => 10768, 1238 | "cirmid" => 10991, 1239 | "cirscir" => 10690, 1240 | "clubs" => 9827, 1241 | "clubsuit" => 9827, 1242 | "colon" => 58, 1243 | "colone" => 8788, 1244 | "coloneq" => 8788, 1245 | "comma" => 44, 1246 | "commat" => 64, 1247 | "comp" => 8705, 1248 | "compfn" => 8728, 1249 | "complement" => 8705, 1250 | "complexes" => 8450, 1251 | "cong" => 8773, 1252 | "congdot" => 10861, 1253 | "conint" => 8750, 1254 | "copf" => 120148, 1255 | "coprod" => 8720, 1256 | "copy" => 169, 1257 | "copysr" => 8471, 1258 | "crarr" => 8629, 1259 | "cross" => 10007, 1260 | "cscr" => 119992, 1261 | "csub" => 10959, 1262 | "csube" => 10961, 1263 | "csup" => 10960, 1264 | "csupe" => 10962, 1265 | "ctdot" => 8943, 1266 | "cudarrl" => 10552, 1267 | "cudarrr" => 10549, 1268 | "cuepr" => 8926, 1269 | "cuesc" => 8927, 1270 | "cularr" => 8630, 1271 | "cularrp" => 10557, 1272 | "cup" => 8746, 1273 | "cupbrcap" => 10824, 1274 | "cupcap" => 10822, 1275 | "cupcup" => 10826, 1276 | "cupdot" => 8845, 1277 | "cupor" => 10821, 1278 | "cups" => 8746, 1279 | "curarr" => 8631, 1280 | "curarrm" => 10556, 1281 | "curlyeqprec" => 8926, 1282 | "curlyeqsucc" => 8927, 1283 | "curlyvee" => 8910, 1284 | "curlywedge" => 8911, 1285 | "curren" => 164, 1286 | "curvearrowleft" => 8630, 1287 | "curvearrowright" => 8631, 1288 | "cuvee" => 8910, 1289 | "cuwed" => 8911, 1290 | "cwconint" => 8754, 1291 | "cwint" => 8753, 1292 | "cylcty" => 9005, 1293 | "dArr" => 8659, 1294 | "dHar" => 10597, 1295 | "dagger" => 8224, 1296 | "daleth" => 8504, 1297 | "darr" => 8595, 1298 | "dash" => 8208, 1299 | "dashv" => 8867, 1300 | "dbkarow" => 10511, 1301 | "dblac" => 733, 1302 | "dcaron" => 271, 1303 | "dcy" => 1076, 1304 | "dd" => 8518, 1305 | "ddagger" => 8225, 1306 | "ddarr" => 8650, 1307 | "ddotseq" => 10871, 1308 | "deg" => 176, 1309 | "delta" => 948, 1310 | "demptyv" => 10673, 1311 | "dfisht" => 10623, 1312 | "dfr" => 120097, 1313 | "dharl" => 8643, 1314 | "dharr" => 8642, 1315 | "diam" => 8900, 1316 | "diamond" => 8900, 1317 | "diamondsuit" => 9830, 1318 | "diams" => 9830, 1319 | "die" => 168, 1320 | "digamma" => 989, 1321 | "disin" => 8946, 1322 | "div" => 247, 1323 | "divide" => 247, 1324 | "divideontimes" => 8903, 1325 | "divonx" => 8903, 1326 | "djcy" => 1106, 1327 | "dlcorn" => 8990, 1328 | "dlcrop" => 8973, 1329 | "dollar" => 36, 1330 | "dopf" => 120149, 1331 | "dot" => 729, 1332 | "doteq" => 8784, 1333 | "doteqdot" => 8785, 1334 | "dotminus" => 8760, 1335 | "dotplus" => 8724, 1336 | "dotsquare" => 8865, 1337 | "doublebarwedge" => 8966, 1338 | "downarrow" => 8595, 1339 | "downdownarrows" => 8650, 1340 | "downharpoonleft" => 8643, 1341 | "downharpoonright" => 8642, 1342 | "drbkarow" => 10512, 1343 | "drcorn" => 8991, 1344 | "drcrop" => 8972, 1345 | "dscr" => 119993, 1346 | "dscy" => 1109, 1347 | "dsol" => 10742, 1348 | "dstrok" => 273, 1349 | "dtdot" => 8945, 1350 | "dtri" => 9663, 1351 | "dtrif" => 9662, 1352 | "duarr" => 8693, 1353 | "duhar" => 10607, 1354 | "dwangle" => 10662, 1355 | "dzcy" => 1119, 1356 | "dzigrarr" => 10239, 1357 | "eDDot" => 10871, 1358 | "eDot" => 8785, 1359 | "eacute" => 233, 1360 | "easter" => 10862, 1361 | "ecaron" => 283, 1362 | "ecir" => 8790, 1363 | "ecirc" => 234, 1364 | "ecolon" => 8789, 1365 | "ecy" => 1101, 1366 | "edot" => 279, 1367 | "ee" => 8519, 1368 | "efDot" => 8786, 1369 | "efr" => 120098, 1370 | "eg" => 10906, 1371 | "egrave" => 232, 1372 | "egs" => 10902, 1373 | "egsdot" => 10904, 1374 | "el" => 10905, 1375 | "elinters" => 9191, 1376 | "ell" => 8467, 1377 | "els" => 10901, 1378 | "elsdot" => 10903, 1379 | "emacr" => 275, 1380 | "empty" => 8709, 1381 | "emptyset" => 8709, 1382 | "emptyv" => 8709, 1383 | "emsp" => 8195, 1384 | "emsp13" => 8196, 1385 | "emsp14" => 8197, 1386 | "eng" => 331, 1387 | "ensp" => 8194, 1388 | "eogon" => 281, 1389 | "eopf" => 120150, 1390 | "epar" => 8917, 1391 | "eparsl" => 10723, 1392 | "eplus" => 10865, 1393 | "epsi" => 949, 1394 | "epsilon" => 949, 1395 | "epsiv" => 1013, 1396 | "eqcirc" => 8790, 1397 | "eqcolon" => 8789, 1398 | "eqsim" => 8770, 1399 | "eqslantgtr" => 10902, 1400 | "eqslantless" => 10901, 1401 | "equals" => 61, 1402 | "equest" => 8799, 1403 | "equiv" => 8801, 1404 | "equivDD" => 10872, 1405 | "eqvparsl" => 10725, 1406 | "erDot" => 8787, 1407 | "erarr" => 10609, 1408 | "escr" => 8495, 1409 | "esdot" => 8784, 1410 | "esim" => 8770, 1411 | "eta" => 951, 1412 | "eth" => 240, 1413 | "euml" => 235, 1414 | "euro" => 8364, 1415 | "excl" => 33, 1416 | "exist" => 8707, 1417 | "expectation" => 8496, 1418 | "exponentiale" => 8519, 1419 | "fallingdotseq" => 8786, 1420 | "fcy" => 1092, 1421 | "female" => 9792, 1422 | "ffilig" => 64259, 1423 | "fflig" => 64256, 1424 | "ffllig" => 64260, 1425 | "ffr" => 120099, 1426 | "filig" => 64257, 1427 | "fjlig" => 102, 1428 | "flat" => 9837, 1429 | "fllig" => 64258, 1430 | "fltns" => 9649, 1431 | "fnof" => 402, 1432 | "fopf" => 120151, 1433 | "forall" => 8704, 1434 | "fork" => 8916, 1435 | "forkv" => 10969, 1436 | "fpartint" => 10765, 1437 | "frac12" => 189, 1438 | "frac13" => 8531, 1439 | "frac14" => 188, 1440 | "frac15" => 8533, 1441 | "frac16" => 8537, 1442 | "frac18" => 8539, 1443 | "frac23" => 8532, 1444 | "frac25" => 8534, 1445 | "frac34" => 190, 1446 | "frac35" => 8535, 1447 | "frac38" => 8540, 1448 | "frac45" => 8536, 1449 | "frac56" => 8538, 1450 | "frac58" => 8541, 1451 | "frac78" => 8542, 1452 | "frasl" => 8260, 1453 | "frown" => 8994, 1454 | "fscr" => 119995, 1455 | "gE" => 8807, 1456 | "gEl" => 10892, 1457 | "gacute" => 501, 1458 | "gamma" => 947, 1459 | "gammad" => 989, 1460 | "gap" => 10886, 1461 | "gbreve" => 287, 1462 | "gcirc" => 285, 1463 | "gcy" => 1075, 1464 | "gdot" => 289, 1465 | "ge" => 8805, 1466 | "gel" => 8923, 1467 | "geq" => 8805, 1468 | "geqq" => 8807, 1469 | "geqslant" => 10878, 1470 | "ges" => 10878, 1471 | "gescc" => 10921, 1472 | "gesdot" => 10880, 1473 | "gesdoto" => 10882, 1474 | "gesdotol" => 10884, 1475 | "gesl" => 8923, 1476 | "gesles" => 10900, 1477 | "gfr" => 120100, 1478 | "gg" => 8811, 1479 | "ggg" => 8921, 1480 | "gimel" => 8503, 1481 | "gjcy" => 1107, 1482 | "gl" => 8823, 1483 | "glE" => 10898, 1484 | "gla" => 10917, 1485 | "glj" => 10916, 1486 | "gnE" => 8809, 1487 | "gnap" => 10890, 1488 | "gnapprox" => 10890, 1489 | "gne" => 10888, 1490 | "gneq" => 10888, 1491 | "gneqq" => 8809, 1492 | "gnsim" => 8935, 1493 | "gopf" => 120152, 1494 | "grave" => 96, 1495 | "gscr" => 8458, 1496 | "gsim" => 8819, 1497 | "gsime" => 10894, 1498 | "gsiml" => 10896, 1499 | "gt" => 62, 1500 | "gtcc" => 10919, 1501 | "gtcir" => 10874, 1502 | "gtdot" => 8919, 1503 | "gtlPar" => 10645, 1504 | "gtquest" => 10876, 1505 | "gtrapprox" => 10886, 1506 | "gtrarr" => 10616, 1507 | "gtrdot" => 8919, 1508 | "gtreqless" => 8923, 1509 | "gtreqqless" => 10892, 1510 | "gtrless" => 8823, 1511 | "gtrsim" => 8819, 1512 | "gvertneqq" => 8809, 1513 | "gvnE" => 8809, 1514 | "hArr" => 8660, 1515 | "hairsp" => 8202, 1516 | "half" => 189, 1517 | "hamilt" => 8459, 1518 | "hardcy" => 1098, 1519 | "harr" => 8596, 1520 | "harrcir" => 10568, 1521 | "harrw" => 8621, 1522 | "hbar" => 8463, 1523 | "hcirc" => 293, 1524 | "hearts" => 9829, 1525 | "heartsuit" => 9829, 1526 | "hellip" => 8230, 1527 | "hercon" => 8889, 1528 | "hfr" => 120101, 1529 | "hksearow" => 10533, 1530 | "hkswarow" => 10534, 1531 | "hoarr" => 8703, 1532 | "homtht" => 8763, 1533 | "hookleftarrow" => 8617, 1534 | "hookrightarrow" => 8618, 1535 | "hopf" => 120153, 1536 | "horbar" => 8213, 1537 | "hscr" => 119997, 1538 | "hslash" => 8463, 1539 | "hstrok" => 295, 1540 | "hybull" => 8259, 1541 | "hyphen" => 8208, 1542 | "iacute" => 237, 1543 | "ic" => 8291, 1544 | "icirc" => 238, 1545 | "icy" => 1080, 1546 | "iecy" => 1077, 1547 | "iexcl" => 161, 1548 | "iff" => 8660, 1549 | "ifr" => 120102, 1550 | "igrave" => 236, 1551 | "ii" => 8520, 1552 | "iiiint" => 10764, 1553 | "iiint" => 8749, 1554 | "iinfin" => 10716, 1555 | "iiota" => 8489, 1556 | "ijlig" => 307, 1557 | "imacr" => 299, 1558 | "image" => 8465, 1559 | "imagline" => 8464, 1560 | "imagpart" => 8465, 1561 | "imath" => 305, 1562 | "imof" => 8887, 1563 | "imped" => 437, 1564 | "in" => 8712, 1565 | "incare" => 8453, 1566 | "infin" => 8734, 1567 | "infintie" => 10717, 1568 | "inodot" => 305, 1569 | "int" => 8747, 1570 | "intcal" => 8890, 1571 | "integers" => 8484, 1572 | "intercal" => 8890, 1573 | "intlarhk" => 10775, 1574 | "intprod" => 10812, 1575 | "iocy" => 1105, 1576 | "iogon" => 303, 1577 | "iopf" => 120154, 1578 | "iota" => 953, 1579 | "iprod" => 10812, 1580 | "iquest" => 191, 1581 | "iscr" => 119998, 1582 | "isin" => 8712, 1583 | "isinE" => 8953, 1584 | "isindot" => 8949, 1585 | "isins" => 8948, 1586 | "isinsv" => 8947, 1587 | "isinv" => 8712, 1588 | "it" => 8290, 1589 | "itilde" => 297, 1590 | "iukcy" => 1110, 1591 | "iuml" => 239, 1592 | "jcirc" => 309, 1593 | "jcy" => 1081, 1594 | "jfr" => 120103, 1595 | "jmath" => 567, 1596 | "jopf" => 120155, 1597 | "jscr" => 119999, 1598 | "jsercy" => 1112, 1599 | "jukcy" => 1108, 1600 | "kappa" => 954, 1601 | "kappav" => 1008, 1602 | "kcedil" => 311, 1603 | "kcy" => 1082, 1604 | "kfr" => 120104, 1605 | "kgreen" => 312, 1606 | "khcy" => 1093, 1607 | "kjcy" => 1116, 1608 | "kopf" => 120156, 1609 | "kscr" => 120000, 1610 | "lAarr" => 8666, 1611 | "lArr" => 8656, 1612 | "lAtail" => 10523, 1613 | "lBarr" => 10510, 1614 | "lE" => 8806, 1615 | "lEg" => 10891, 1616 | "lHar" => 10594, 1617 | "lacute" => 314, 1618 | "laemptyv" => 10676, 1619 | "lagran" => 8466, 1620 | "lambda" => 955, 1621 | "lang" => 10216, 1622 | "langd" => 10641, 1623 | "langle" => 10216, 1624 | "lap" => 10885, 1625 | "laquo" => 171, 1626 | "larr" => 8592, 1627 | "larrb" => 8676, 1628 | "larrbfs" => 10527, 1629 | "larrfs" => 10525, 1630 | "larrhk" => 8617, 1631 | "larrlp" => 8619, 1632 | "larrpl" => 10553, 1633 | "larrsim" => 10611, 1634 | "larrtl" => 8610, 1635 | "lat" => 10923, 1636 | "latail" => 10521, 1637 | "late" => 10925, 1638 | "lates" => 10925, 1639 | "lbarr" => 10508, 1640 | "lbbrk" => 10098, 1641 | "lbrace" => 123, 1642 | "lbrack" => 91, 1643 | "lbrke" => 10635, 1644 | "lbrksld" => 10639, 1645 | "lbrkslu" => 10637, 1646 | "lcaron" => 318, 1647 | "lcedil" => 316, 1648 | "lceil" => 8968, 1649 | "lcub" => 123, 1650 | "lcy" => 1083, 1651 | "ldca" => 10550, 1652 | "ldquo" => 8220, 1653 | "ldquor" => 8222, 1654 | "ldrdhar" => 10599, 1655 | "ldrushar" => 10571, 1656 | "ldsh" => 8626, 1657 | "le" => 8804, 1658 | "leftarrow" => 8592, 1659 | "leftarrowtail" => 8610, 1660 | "leftharpoondown" => 8637, 1661 | "leftharpoonup" => 8636, 1662 | "leftleftarrows" => 8647, 1663 | "leftrightarrow" => 8596, 1664 | "leftrightarrows" => 8646, 1665 | "leftrightharpoons" => 8651, 1666 | "leftrightsquigarrow" => 8621, 1667 | "leftthreetimes" => 8907, 1668 | "leg" => 8922, 1669 | "leq" => 8804, 1670 | "leqq" => 8806, 1671 | "leqslant" => 10877, 1672 | "les" => 10877, 1673 | "lescc" => 10920, 1674 | "lesdot" => 10879, 1675 | "lesdoto" => 10881, 1676 | "lesdotor" => 10883, 1677 | "lesg" => 8922, 1678 | "lesges" => 10899, 1679 | "lessapprox" => 10885, 1680 | "lessdot" => 8918, 1681 | "lesseqgtr" => 8922, 1682 | "lesseqqgtr" => 10891, 1683 | "lessgtr" => 8822, 1684 | "lesssim" => 8818, 1685 | "lfisht" => 10620, 1686 | "lfloor" => 8970, 1687 | "lfr" => 120105, 1688 | "lg" => 8822, 1689 | "lgE" => 10897, 1690 | "lhard" => 8637, 1691 | "lharu" => 8636, 1692 | "lharul" => 10602, 1693 | "lhblk" => 9604, 1694 | "ljcy" => 1113, 1695 | "ll" => 8810, 1696 | "llarr" => 8647, 1697 | "llcorner" => 8990, 1698 | "llhard" => 10603, 1699 | "lltri" => 9722, 1700 | "lmidot" => 320, 1701 | "lmoust" => 9136, 1702 | "lmoustache" => 9136, 1703 | "lnE" => 8808, 1704 | "lnap" => 10889, 1705 | "lnapprox" => 10889, 1706 | "lne" => 10887, 1707 | "lneq" => 10887, 1708 | "lneqq" => 8808, 1709 | "lnsim" => 8934, 1710 | "loang" => 10220, 1711 | "loarr" => 8701, 1712 | "lobrk" => 10214, 1713 | "longleftarrow" => 10229, 1714 | "longleftrightarrow" => 10231, 1715 | "longmapsto" => 10236, 1716 | "longrightarrow" => 10230, 1717 | "looparrowleft" => 8619, 1718 | "looparrowright" => 8620, 1719 | "lopar" => 10629, 1720 | "lopf" => 120157, 1721 | "loplus" => 10797, 1722 | "lotimes" => 10804, 1723 | "lowast" => 8727, 1724 | "lowbar" => 95, 1725 | "loz" => 9674, 1726 | "lozenge" => 9674, 1727 | "lozf" => 10731, 1728 | "lpar" => 40, 1729 | "lparlt" => 10643, 1730 | "lrarr" => 8646, 1731 | "lrcorner" => 8991, 1732 | "lrhar" => 8651, 1733 | "lrhard" => 10605, 1734 | "lrm" => 8206, 1735 | "lrtri" => 8895, 1736 | "lsaquo" => 8249, 1737 | "lscr" => 120001, 1738 | "lsh" => 8624, 1739 | "lsim" => 8818, 1740 | "lsime" => 10893, 1741 | "lsimg" => 10895, 1742 | "lsqb" => 91, 1743 | "lsquo" => 8216, 1744 | "lsquor" => 8218, 1745 | "lstrok" => 322, 1746 | "lt" => 60, 1747 | "ltcc" => 10918, 1748 | "ltcir" => 10873, 1749 | "ltdot" => 8918, 1750 | "lthree" => 8907, 1751 | "ltimes" => 8905, 1752 | "ltlarr" => 10614, 1753 | "ltquest" => 10875, 1754 | "ltrPar" => 10646, 1755 | "ltri" => 9667, 1756 | "ltrie" => 8884, 1757 | "ltrif" => 9666, 1758 | "lurdshar" => 10570, 1759 | "luruhar" => 10598, 1760 | "lvertneqq" => 8808, 1761 | "lvnE" => 8808, 1762 | "mDDot" => 8762, 1763 | "macr" => 175, 1764 | "male" => 9794, 1765 | "malt" => 10016, 1766 | "maltese" => 10016, 1767 | "map" => 8614, 1768 | "mapsto" => 8614, 1769 | "mapstodown" => 8615, 1770 | "mapstoleft" => 8612, 1771 | "mapstoup" => 8613, 1772 | "marker" => 9646, 1773 | "mcomma" => 10793, 1774 | "mcy" => 1084, 1775 | "mdash" => 8212, 1776 | "measuredangle" => 8737, 1777 | "mfr" => 120106, 1778 | "mho" => 8487, 1779 | "micro" => 181, 1780 | "mid" => 8739, 1781 | "midast" => 42, 1782 | "midcir" => 10992, 1783 | "middot" => 183, 1784 | "minus" => 8722, 1785 | "minusb" => 8863, 1786 | "minusd" => 8760, 1787 | "minusdu" => 10794, 1788 | "mlcp" => 10971, 1789 | "mldr" => 8230, 1790 | "mnplus" => 8723, 1791 | "models" => 8871, 1792 | "mopf" => 120158, 1793 | "mp" => 8723, 1794 | "mscr" => 120002, 1795 | "mstpos" => 8766, 1796 | "mu" => 956, 1797 | "multimap" => 8888, 1798 | "mumap" => 8888, 1799 | "nGg" => 8921, 1800 | "nGt" => 8811, 1801 | "nGtv" => 8811, 1802 | "nLeftarrow" => 8653, 1803 | "nLeftrightarrow" => 8654, 1804 | "nLl" => 8920, 1805 | "nLt" => 8810, 1806 | "nLtv" => 8810, 1807 | "nRightarrow" => 8655, 1808 | "nVDash" => 8879, 1809 | "nVdash" => 8878, 1810 | "nabla" => 8711, 1811 | "nacute" => 324, 1812 | "nang" => 8736, 1813 | "nap" => 8777, 1814 | "napE" => 10864, 1815 | "napid" => 8779, 1816 | "napos" => 329, 1817 | "napprox" => 8777, 1818 | "natur" => 9838, 1819 | "natural" => 9838, 1820 | "naturals" => 8469, 1821 | "nbsp" => 160, 1822 | "nbump" => 8782, 1823 | "nbumpe" => 8783, 1824 | "ncap" => 10819, 1825 | "ncaron" => 328, 1826 | "ncedil" => 326, 1827 | "ncong" => 8775, 1828 | "ncongdot" => 10861, 1829 | "ncup" => 10818, 1830 | "ncy" => 1085, 1831 | "ndash" => 8211, 1832 | "ne" => 8800, 1833 | "neArr" => 8663, 1834 | "nearhk" => 10532, 1835 | "nearr" => 8599, 1836 | "nearrow" => 8599, 1837 | "nedot" => 8784, 1838 | "nequiv" => 8802, 1839 | "nesear" => 10536, 1840 | "nesim" => 8770, 1841 | "nexist" => 8708, 1842 | "nexists" => 8708, 1843 | "nfr" => 120107, 1844 | "ngE" => 8807, 1845 | "nge" => 8817, 1846 | "ngeq" => 8817, 1847 | "ngeqq" => 8807, 1848 | "ngeqslant" => 10878, 1849 | "nges" => 10878, 1850 | "ngsim" => 8821, 1851 | "ngt" => 8815, 1852 | "ngtr" => 8815, 1853 | "nhArr" => 8654, 1854 | "nharr" => 8622, 1855 | "nhpar" => 10994, 1856 | "ni" => 8715, 1857 | "nis" => 8956, 1858 | "nisd" => 8954, 1859 | "niv" => 8715, 1860 | "njcy" => 1114, 1861 | "nlArr" => 8653, 1862 | "nlE" => 8806, 1863 | "nlarr" => 8602, 1864 | "nldr" => 8229, 1865 | "nle" => 8816, 1866 | "nleftarrow" => 8602, 1867 | "nleftrightarrow" => 8622, 1868 | "nleq" => 8816, 1869 | "nleqq" => 8806, 1870 | "nleqslant" => 10877, 1871 | "nles" => 10877, 1872 | "nless" => 8814, 1873 | "nlsim" => 8820, 1874 | "nlt" => 8814, 1875 | "nltri" => 8938, 1876 | "nltrie" => 8940, 1877 | "nmid" => 8740, 1878 | "nopf" => 120159, 1879 | "not" => 172, 1880 | "notin" => 8713, 1881 | "notinE" => 8953, 1882 | "notindot" => 8949, 1883 | "notinva" => 8713, 1884 | "notinvb" => 8951, 1885 | "notinvc" => 8950, 1886 | "notni" => 8716, 1887 | "notniva" => 8716, 1888 | "notnivb" => 8958, 1889 | "notnivc" => 8957, 1890 | "npar" => 8742, 1891 | "nparallel" => 8742, 1892 | "nparsl" => 11005, 1893 | "npart" => 8706, 1894 | "npolint" => 10772, 1895 | "npr" => 8832, 1896 | "nprcue" => 8928, 1897 | "npre" => 10927, 1898 | "nprec" => 8832, 1899 | "npreceq" => 10927, 1900 | "nrArr" => 8655, 1901 | "nrarr" => 8603, 1902 | "nrarrc" => 10547, 1903 | "nrarrw" => 8605, 1904 | "nrightarrow" => 8603, 1905 | "nrtri" => 8939, 1906 | "nrtrie" => 8941, 1907 | "nsc" => 8833, 1908 | "nsccue" => 8929, 1909 | "nsce" => 10928, 1910 | "nscr" => 120003, 1911 | "nshortmid" => 8740, 1912 | "nshortparallel" => 8742, 1913 | "nsim" => 8769, 1914 | "nsime" => 8772, 1915 | "nsimeq" => 8772, 1916 | "nsmid" => 8740, 1917 | "nspar" => 8742, 1918 | "nsqsube" => 8930, 1919 | "nsqsupe" => 8931, 1920 | "nsub" => 8836, 1921 | "nsubE" => 10949, 1922 | "nsube" => 8840, 1923 | "nsubset" => 8834, 1924 | "nsubseteq" => 8840, 1925 | "nsubseteqq" => 10949, 1926 | "nsucc" => 8833, 1927 | "nsucceq" => 10928, 1928 | "nsup" => 8837, 1929 | "nsupE" => 10950, 1930 | "nsupe" => 8841, 1931 | "nsupset" => 8835, 1932 | "nsupseteq" => 8841, 1933 | "nsupseteqq" => 10950, 1934 | "ntgl" => 8825, 1935 | "ntilde" => 241, 1936 | "ntlg" => 8824, 1937 | "ntriangleleft" => 8938, 1938 | "ntrianglelefteq" => 8940, 1939 | "ntriangleright" => 8939, 1940 | "ntrianglerighteq" => 8941, 1941 | "nu" => 957, 1942 | "num" => 35, 1943 | "numero" => 8470, 1944 | "numsp" => 8199, 1945 | "nvDash" => 8877, 1946 | "nvHarr" => 10500, 1947 | "nvap" => 8781, 1948 | "nvdash" => 8876, 1949 | "nvge" => 8805, 1950 | "nvgt" => 62, 1951 | "nvinfin" => 10718, 1952 | "nvlArr" => 10498, 1953 | "nvle" => 8804, 1954 | "nvlt" => 60, 1955 | "nvltrie" => 8884, 1956 | "nvrArr" => 10499, 1957 | "nvrtrie" => 8885, 1958 | "nvsim" => 8764, 1959 | "nwArr" => 8662, 1960 | "nwarhk" => 10531, 1961 | "nwarr" => 8598, 1962 | "nwarrow" => 8598, 1963 | "nwnear" => 10535, 1964 | "oS" => 9416, 1965 | "oacute" => 243, 1966 | "oast" => 8859, 1967 | "ocir" => 8858, 1968 | "ocirc" => 244, 1969 | "ocy" => 1086, 1970 | "odash" => 8861, 1971 | "odblac" => 337, 1972 | "odiv" => 10808, 1973 | "odot" => 8857, 1974 | "odsold" => 10684, 1975 | "oelig" => 339, 1976 | "ofcir" => 10687, 1977 | "ofr" => 120108, 1978 | "ogon" => 731, 1979 | "ograve" => 242, 1980 | "ogt" => 10689, 1981 | "ohbar" => 10677, 1982 | "ohm" => 937, 1983 | "oint" => 8750, 1984 | "olarr" => 8634, 1985 | "olcir" => 10686, 1986 | "olcross" => 10683, 1987 | "oline" => 8254, 1988 | "olt" => 10688, 1989 | "omacr" => 333, 1990 | "omega" => 969, 1991 | "omicron" => 959, 1992 | "omid" => 10678, 1993 | "ominus" => 8854, 1994 | "oopf" => 120160, 1995 | "opar" => 10679, 1996 | "operp" => 10681, 1997 | "oplus" => 8853, 1998 | "or" => 8744, 1999 | "orarr" => 8635, 2000 | "ord" => 10845, 2001 | "order" => 8500, 2002 | "orderof" => 8500, 2003 | "ordf" => 170, 2004 | "ordm" => 186, 2005 | "origof" => 8886, 2006 | "oror" => 10838, 2007 | "orslope" => 10839, 2008 | "orv" => 10843, 2009 | "oscr" => 8500, 2010 | "oslash" => 248, 2011 | "osol" => 8856, 2012 | "otilde" => 245, 2013 | "otimes" => 8855, 2014 | "otimesas" => 10806, 2015 | "ouml" => 246, 2016 | "ovbar" => 9021, 2017 | "par" => 8741, 2018 | "para" => 182, 2019 | "parallel" => 8741, 2020 | "parsim" => 10995, 2021 | "parsl" => 11005, 2022 | "part" => 8706, 2023 | "pcy" => 1087, 2024 | "percnt" => 37, 2025 | "period" => 46, 2026 | "permil" => 8240, 2027 | "perp" => 8869, 2028 | "pertenk" => 8241, 2029 | "pfr" => 120109, 2030 | "phi" => 966, 2031 | "phiv" => 981, 2032 | "phmmat" => 8499, 2033 | "phone" => 9742, 2034 | "pi" => 960, 2035 | "pitchfork" => 8916, 2036 | "piv" => 982, 2037 | "planck" => 8463, 2038 | "planckh" => 8462, 2039 | "plankv" => 8463, 2040 | "plus" => 43, 2041 | "plusacir" => 10787, 2042 | "plusb" => 8862, 2043 | "pluscir" => 10786, 2044 | "plusdo" => 8724, 2045 | "plusdu" => 10789, 2046 | "pluse" => 10866, 2047 | "plusmn" => 177, 2048 | "plussim" => 10790, 2049 | "plustwo" => 10791, 2050 | "pm" => 177, 2051 | "pointint" => 10773, 2052 | "popf" => 120161, 2053 | "pound" => 163, 2054 | "pr" => 8826, 2055 | "prE" => 10931, 2056 | "prap" => 10935, 2057 | "prcue" => 8828, 2058 | "pre" => 10927, 2059 | "prec" => 8826, 2060 | "precapprox" => 10935, 2061 | "preccurlyeq" => 8828, 2062 | "preceq" => 10927, 2063 | "precnapprox" => 10937, 2064 | "precneqq" => 10933, 2065 | "precnsim" => 8936, 2066 | "precsim" => 8830, 2067 | "prime" => 8242, 2068 | "primes" => 8473, 2069 | "prnE" => 10933, 2070 | "prnap" => 10937, 2071 | "prnsim" => 8936, 2072 | "prod" => 8719, 2073 | "profalar" => 9006, 2074 | "profline" => 8978, 2075 | "profsurf" => 8979, 2076 | "prop" => 8733, 2077 | "propto" => 8733, 2078 | "prsim" => 8830, 2079 | "prurel" => 8880, 2080 | "pscr" => 120005, 2081 | "psi" => 968, 2082 | "puncsp" => 8200, 2083 | "qfr" => 120110, 2084 | "qint" => 10764, 2085 | "qopf" => 120162, 2086 | "qprime" => 8279, 2087 | "qscr" => 120006, 2088 | "quaternions" => 8461, 2089 | "quatint" => 10774, 2090 | "quest" => 63, 2091 | "questeq" => 8799, 2092 | "quot" => 34, 2093 | "rAarr" => 8667, 2094 | "rArr" => 8658, 2095 | "rAtail" => 10524, 2096 | "rBarr" => 10511, 2097 | "rHar" => 10596, 2098 | "race" => 8765, 2099 | "racute" => 341, 2100 | "radic" => 8730, 2101 | "raemptyv" => 10675, 2102 | "rang" => 10217, 2103 | "rangd" => 10642, 2104 | "range" => 10661, 2105 | "rangle" => 10217, 2106 | "raquo" => 187, 2107 | "rarr" => 8594, 2108 | "rarrap" => 10613, 2109 | "rarrb" => 8677, 2110 | "rarrbfs" => 10528, 2111 | "rarrc" => 10547, 2112 | "rarrfs" => 10526, 2113 | "rarrhk" => 8618, 2114 | "rarrlp" => 8620, 2115 | "rarrpl" => 10565, 2116 | "rarrsim" => 10612, 2117 | "rarrtl" => 8611, 2118 | "rarrw" => 8605, 2119 | "ratail" => 10522, 2120 | "ratio" => 8758, 2121 | "rationals" => 8474, 2122 | "rbarr" => 10509, 2123 | "rbbrk" => 10099, 2124 | "rbrace" => 125, 2125 | "rbrack" => 93, 2126 | "rbrke" => 10636, 2127 | "rbrksld" => 10638, 2128 | "rbrkslu" => 10640, 2129 | "rcaron" => 345, 2130 | "rcedil" => 343, 2131 | "rceil" => 8969, 2132 | "rcub" => 125, 2133 | "rcy" => 1088, 2134 | "rdca" => 10551, 2135 | "rdldhar" => 10601, 2136 | "rdquo" => 8221, 2137 | "rdquor" => 8221, 2138 | "rdsh" => 8627, 2139 | "real" => 8476, 2140 | "realine" => 8475, 2141 | "realpart" => 8476, 2142 | "reals" => 8477, 2143 | "rect" => 9645, 2144 | "reg" => 174, 2145 | "rfisht" => 10621, 2146 | "rfloor" => 8971, 2147 | "rfr" => 120111, 2148 | "rhard" => 8641, 2149 | "rharu" => 8640, 2150 | "rharul" => 10604, 2151 | "rho" => 961, 2152 | "rhov" => 1009, 2153 | "rightarrow" => 8594, 2154 | "rightarrowtail" => 8611, 2155 | "rightharpoondown" => 8641, 2156 | "rightharpoonup" => 8640, 2157 | "rightleftarrows" => 8644, 2158 | "rightleftharpoons" => 8652, 2159 | "rightrightarrows" => 8649, 2160 | "rightsquigarrow" => 8605, 2161 | "rightthreetimes" => 8908, 2162 | "ring" => 730, 2163 | "risingdotseq" => 8787, 2164 | "rlarr" => 8644, 2165 | "rlhar" => 8652, 2166 | "rlm" => 8207, 2167 | "rmoust" => 9137, 2168 | "rmoustache" => 9137, 2169 | "rnmid" => 10990, 2170 | "roang" => 10221, 2171 | "roarr" => 8702, 2172 | "robrk" => 10215, 2173 | "ropar" => 10630, 2174 | "ropf" => 120163, 2175 | "roplus" => 10798, 2176 | "rotimes" => 10805, 2177 | "rpar" => 41, 2178 | "rpargt" => 10644, 2179 | "rppolint" => 10770, 2180 | "rrarr" => 8649, 2181 | "rsaquo" => 8250, 2182 | "rscr" => 120007, 2183 | "rsh" => 8625, 2184 | "rsqb" => 93, 2185 | "rsquo" => 8217, 2186 | "rsquor" => 8217, 2187 | "rthree" => 8908, 2188 | "rtimes" => 8906, 2189 | "rtri" => 9657, 2190 | "rtrie" => 8885, 2191 | "rtrif" => 9656, 2192 | "rtriltri" => 10702, 2193 | "ruluhar" => 10600, 2194 | "rx" => 8478, 2195 | "sacute" => 347, 2196 | "sbquo" => 8218, 2197 | "sc" => 8827, 2198 | "scE" => 10932, 2199 | "scap" => 10936, 2200 | "scaron" => 353, 2201 | "sccue" => 8829, 2202 | "sce" => 10928, 2203 | "scedil" => 351, 2204 | "scirc" => 349, 2205 | "scnE" => 10934, 2206 | "scnap" => 10938, 2207 | "scnsim" => 8937, 2208 | "scpolint" => 10771, 2209 | "scsim" => 8831, 2210 | "scy" => 1089, 2211 | "sdot" => 8901, 2212 | "sdotb" => 8865, 2213 | "sdote" => 10854, 2214 | "seArr" => 8664, 2215 | "searhk" => 10533, 2216 | "searr" => 8600, 2217 | "searrow" => 8600, 2218 | "sect" => 167, 2219 | "semi" => 59, 2220 | "seswar" => 10537, 2221 | "setminus" => 8726, 2222 | "setmn" => 8726, 2223 | "sext" => 10038, 2224 | "sfr" => 120112, 2225 | "sfrown" => 8994, 2226 | "sharp" => 9839, 2227 | "shchcy" => 1097, 2228 | "shcy" => 1096, 2229 | "shortmid" => 8739, 2230 | "shortparallel" => 8741, 2231 | "shy" => 173, 2232 | "sigma" => 963, 2233 | "sigmaf" => 962, 2234 | "sigmav" => 962, 2235 | "sim" => 8764, 2236 | "simdot" => 10858, 2237 | "sime" => 8771, 2238 | "simeq" => 8771, 2239 | "simg" => 10910, 2240 | "simgE" => 10912, 2241 | "siml" => 10909, 2242 | "simlE" => 10911, 2243 | "simne" => 8774, 2244 | "simplus" => 10788, 2245 | "simrarr" => 10610, 2246 | "slarr" => 8592, 2247 | "smallsetminus" => 8726, 2248 | "smashp" => 10803, 2249 | "smeparsl" => 10724, 2250 | "smid" => 8739, 2251 | "smile" => 8995, 2252 | "smt" => 10922, 2253 | "smte" => 10924, 2254 | "smtes" => 10924, 2255 | "softcy" => 1100, 2256 | "sol" => 47, 2257 | "solb" => 10692, 2258 | "solbar" => 9023, 2259 | "sopf" => 120164, 2260 | "spades" => 9824, 2261 | "spadesuit" => 9824, 2262 | "spar" => 8741, 2263 | "sqcap" => 8851, 2264 | "sqcaps" => 8851, 2265 | "sqcup" => 8852, 2266 | "sqcups" => 8852, 2267 | "sqsub" => 8847, 2268 | "sqsube" => 8849, 2269 | "sqsubset" => 8847, 2270 | "sqsubseteq" => 8849, 2271 | "sqsup" => 8848, 2272 | "sqsupe" => 8850, 2273 | "sqsupset" => 8848, 2274 | "sqsupseteq" => 8850, 2275 | "squ" => 9633, 2276 | "square" => 9633, 2277 | "squarf" => 9642, 2278 | "squf" => 9642, 2279 | "srarr" => 8594, 2280 | "sscr" => 120008, 2281 | "ssetmn" => 8726, 2282 | "ssmile" => 8995, 2283 | "sstarf" => 8902, 2284 | "star" => 9734, 2285 | "starf" => 9733, 2286 | "straightepsilon" => 1013, 2287 | "straightphi" => 981, 2288 | "strns" => 175, 2289 | "sub" => 8834, 2290 | "subE" => 10949, 2291 | "subdot" => 10941, 2292 | "sube" => 8838, 2293 | "subedot" => 10947, 2294 | "submult" => 10945, 2295 | "subnE" => 10955, 2296 | "subne" => 8842, 2297 | "subplus" => 10943, 2298 | "subrarr" => 10617, 2299 | "subset" => 8834, 2300 | "subseteq" => 8838, 2301 | "subseteqq" => 10949, 2302 | "subsetneq" => 8842, 2303 | "subsetneqq" => 10955, 2304 | "subsim" => 10951, 2305 | "subsub" => 10965, 2306 | "subsup" => 10963, 2307 | "succ" => 8827, 2308 | "succapprox" => 10936, 2309 | "succcurlyeq" => 8829, 2310 | "succeq" => 10928, 2311 | "succnapprox" => 10938, 2312 | "succneqq" => 10934, 2313 | "succnsim" => 8937, 2314 | "succsim" => 8831, 2315 | "sum" => 8721, 2316 | "sung" => 9834, 2317 | "sup" => 8835, 2318 | "sup1" => 185, 2319 | "sup2" => 178, 2320 | "sup3" => 179, 2321 | "supE" => 10950, 2322 | "supdot" => 10942, 2323 | "supdsub" => 10968, 2324 | "supe" => 8839, 2325 | "supedot" => 10948, 2326 | "suphsol" => 10185, 2327 | "suphsub" => 10967, 2328 | "suplarr" => 10619, 2329 | "supmult" => 10946, 2330 | "supnE" => 10956, 2331 | "supne" => 8843, 2332 | "supplus" => 10944, 2333 | "supset" => 8835, 2334 | "supseteq" => 8839, 2335 | "supseteqq" => 10950, 2336 | "supsetneq" => 8843, 2337 | "supsetneqq" => 10956, 2338 | "supsim" => 10952, 2339 | "supsub" => 10964, 2340 | "supsup" => 10966, 2341 | "swArr" => 8665, 2342 | "swarhk" => 10534, 2343 | "swarr" => 8601, 2344 | "swarrow" => 8601, 2345 | "swnwar" => 10538, 2346 | "szlig" => 223, 2347 | "target" => 8982, 2348 | "tau" => 964, 2349 | "tbrk" => 9140, 2350 | "tcaron" => 357, 2351 | "tcedil" => 355, 2352 | "tcy" => 1090, 2353 | "tdot" => 8411, 2354 | "telrec" => 8981, 2355 | "tfr" => 120113, 2356 | "there4" => 8756, 2357 | "therefore" => 8756, 2358 | "theta" => 952, 2359 | "thetasym" => 977, 2360 | "thetav" => 977, 2361 | "thickapprox" => 8776, 2362 | "thicksim" => 8764, 2363 | "thinsp" => 8201, 2364 | "thkap" => 8776, 2365 | "thksim" => 8764, 2366 | "thorn" => 254, 2367 | "tilde" => 732, 2368 | "times" => 215, 2369 | "timesb" => 8864, 2370 | "timesbar" => 10801, 2371 | "timesd" => 10800, 2372 | "tint" => 8749, 2373 | "toea" => 10536, 2374 | "top" => 8868, 2375 | "topbot" => 9014, 2376 | "topcir" => 10993, 2377 | "topf" => 120165, 2378 | "topfork" => 10970, 2379 | "tosa" => 10537, 2380 | "tprime" => 8244, 2381 | "trade" => 8482, 2382 | "triangle" => 9653, 2383 | "triangledown" => 9663, 2384 | "triangleleft" => 9667, 2385 | "trianglelefteq" => 8884, 2386 | "triangleq" => 8796, 2387 | "triangleright" => 9657, 2388 | "trianglerighteq" => 8885, 2389 | "tridot" => 9708, 2390 | "trie" => 8796, 2391 | "triminus" => 10810, 2392 | "triplus" => 10809, 2393 | "trisb" => 10701, 2394 | "tritime" => 10811, 2395 | "trpezium" => 9186, 2396 | "tscr" => 120009, 2397 | "tscy" => 1094, 2398 | "tshcy" => 1115, 2399 | "tstrok" => 359, 2400 | "twixt" => 8812, 2401 | "twoheadleftarrow" => 8606, 2402 | "twoheadrightarrow" => 8608, 2403 | "uArr" => 8657, 2404 | "uHar" => 10595, 2405 | "uacute" => 250, 2406 | "uarr" => 8593, 2407 | "ubrcy" => 1118, 2408 | "ubreve" => 365, 2409 | "ucirc" => 251, 2410 | "ucy" => 1091, 2411 | "udarr" => 8645, 2412 | "udblac" => 369, 2413 | "udhar" => 10606, 2414 | "ufisht" => 10622, 2415 | "ufr" => 120114, 2416 | "ugrave" => 249, 2417 | "uharl" => 8639, 2418 | "uharr" => 8638, 2419 | "uhblk" => 9600, 2420 | "ulcorn" => 8988, 2421 | "ulcorner" => 8988, 2422 | "ulcrop" => 8975, 2423 | "ultri" => 9720, 2424 | "umacr" => 363, 2425 | "uml" => 168, 2426 | "uogon" => 371, 2427 | "uopf" => 120166, 2428 | "uparrow" => 8593, 2429 | "updownarrow" => 8597, 2430 | "upharpoonleft" => 8639, 2431 | "upharpoonright" => 8638, 2432 | "uplus" => 8846, 2433 | "upsi" => 965, 2434 | "upsih" => 978, 2435 | "upsilon" => 965, 2436 | "upuparrows" => 8648, 2437 | "urcorn" => 8989, 2438 | "urcorner" => 8989, 2439 | "urcrop" => 8974, 2440 | "uring" => 367, 2441 | "urtri" => 9721, 2442 | "uscr" => 120010, 2443 | "utdot" => 8944, 2444 | "utilde" => 361, 2445 | "utri" => 9653, 2446 | "utrif" => 9652, 2447 | "uuarr" => 8648, 2448 | "uuml" => 252, 2449 | "uwangle" => 10663, 2450 | "vArr" => 8661, 2451 | "vBar" => 10984, 2452 | "vBarv" => 10985, 2453 | "vDash" => 8872, 2454 | "vangrt" => 10652, 2455 | "varepsilon" => 1013, 2456 | "varkappa" => 1008, 2457 | "varnothing" => 8709, 2458 | "varphi" => 981, 2459 | "varpi" => 982, 2460 | "varpropto" => 8733, 2461 | "varr" => 8597, 2462 | "varrho" => 1009, 2463 | "varsigma" => 962, 2464 | "varsubsetneq" => 8842, 2465 | "varsubsetneqq" => 10955, 2466 | "varsupsetneq" => 8843, 2467 | "varsupsetneqq" => 10956, 2468 | "vartheta" => 977, 2469 | "vartriangleleft" => 8882, 2470 | "vartriangleright" => 8883, 2471 | "vcy" => 1074, 2472 | "vdash" => 8866, 2473 | "vee" => 8744, 2474 | "veebar" => 8891, 2475 | "veeeq" => 8794, 2476 | "vellip" => 8942, 2477 | "verbar" => 124, 2478 | "vert" => 124, 2479 | "vfr" => 120115, 2480 | "vltri" => 8882, 2481 | "vnsub" => 8834, 2482 | "vnsup" => 8835, 2483 | "vopf" => 120167, 2484 | "vprop" => 8733, 2485 | "vrtri" => 8883, 2486 | "vscr" => 120011, 2487 | "vsubnE" => 10955, 2488 | "vsubne" => 8842, 2489 | "vsupnE" => 10956, 2490 | "vsupne" => 8843, 2491 | "vzigzag" => 10650, 2492 | "wcirc" => 373, 2493 | "wedbar" => 10847, 2494 | "wedge" => 8743, 2495 | "wedgeq" => 8793, 2496 | "weierp" => 8472, 2497 | "wfr" => 120116, 2498 | "wopf" => 120168, 2499 | "wp" => 8472, 2500 | "wr" => 8768, 2501 | "wreath" => 8768, 2502 | "wscr" => 120012, 2503 | "xcap" => 8898, 2504 | "xcirc" => 9711, 2505 | "xcup" => 8899, 2506 | "xdtri" => 9661, 2507 | "xfr" => 120117, 2508 | "xhArr" => 10234, 2509 | "xharr" => 10231, 2510 | "xi" => 958, 2511 | "xlArr" => 10232, 2512 | "xlarr" => 10229, 2513 | "xmap" => 10236, 2514 | "xnis" => 8955, 2515 | "xodot" => 10752, 2516 | "xopf" => 120169, 2517 | "xoplus" => 10753, 2518 | "xotime" => 10754, 2519 | "xrArr" => 10233, 2520 | "xrarr" => 10230, 2521 | "xscr" => 120013, 2522 | "xsqcup" => 10758, 2523 | "xuplus" => 10756, 2524 | "xutri" => 9651, 2525 | "xvee" => 8897, 2526 | "xwedge" => 8896, 2527 | "yacute" => 253, 2528 | "yacy" => 1103, 2529 | "ycirc" => 375, 2530 | "ycy" => 1099, 2531 | "yen" => 165, 2532 | "yfr" => 120118, 2533 | "yicy" => 1111, 2534 | "yopf" => 120170, 2535 | "yscr" => 120014, 2536 | "yucy" => 1102, 2537 | "yuml" => 255, 2538 | "zacute" => 378, 2539 | "zcaron" => 382, 2540 | "zcy" => 1079, 2541 | "zdot" => 380, 2542 | "zeetrf" => 8488, 2543 | "zeta" => 950, 2544 | "zfr" => 120119, 2545 | "zhcy" => 1078, 2546 | "zigrarr" => 8669, 2547 | "zopf" => 120171, 2548 | "zscr" => 120015, 2549 | "zwj" => 8205, 2550 | "zwnj" => 8204, 2551 | }; 2552 | 2553 | fn lookup_entity(key: &[u8]) -> Option<&u32> { 2554 | hashify::map! { key, u32, 2555 | "AElig" => 198, 2556 | "AMP" => 38, 2557 | "Aacute" => 193, 2558 | "Abreve" => 258, 2559 | "Acirc" => 194, 2560 | "Acy" => 1040, 2561 | "Afr" => 120068, 2562 | "Agrave" => 192, 2563 | "Alpha" => 913, 2564 | "Amacr" => 256, 2565 | "And" => 10835, 2566 | "Aogon" => 260, 2567 | "Aopf" => 120120, 2568 | "ApplyFunction" => 8289, 2569 | "Aring" => 197, 2570 | "Ascr" => 119964, 2571 | "Assign" => 8788, 2572 | "Atilde" => 195, 2573 | "Auml" => 196, 2574 | "Backslash" => 8726, 2575 | "Barv" => 10983, 2576 | "Barwed" => 8966, 2577 | "Bcy" => 1041, 2578 | "Because" => 8757, 2579 | "Bernoullis" => 8492, 2580 | "Beta" => 914, 2581 | "Bfr" => 120069, 2582 | "Bopf" => 120121, 2583 | "Breve" => 728, 2584 | "Bscr" => 8492, 2585 | "Bumpeq" => 8782, 2586 | "CHcy" => 1063, 2587 | "COPY" => 169, 2588 | "Cacute" => 262, 2589 | "Cap" => 8914, 2590 | "CapitalDifferentialD" => 8517, 2591 | "Cayleys" => 8493, 2592 | "Ccaron" => 268, 2593 | "Ccedil" => 199, 2594 | "Ccirc" => 264, 2595 | "Cconint" => 8752, 2596 | "Cdot" => 266, 2597 | "Cedilla" => 184, 2598 | "CenterDot" => 183, 2599 | "Cfr" => 8493, 2600 | "Chi" => 935, 2601 | "CircleDot" => 8857, 2602 | "CircleMinus" => 8854, 2603 | "CirclePlus" => 8853, 2604 | "CircleTimes" => 8855, 2605 | "ClockwiseContourIntegral" => 8754, 2606 | "CloseCurlyDoubleQuote" => 8221, 2607 | "CloseCurlyQuote" => 8217, 2608 | "Colon" => 8759, 2609 | "Colone" => 10868, 2610 | "Congruent" => 8801, 2611 | "Conint" => 8751, 2612 | "ContourIntegral" => 8750, 2613 | "Copf" => 8450, 2614 | "Coproduct" => 8720, 2615 | "CounterClockwiseContourIntegral" => 8755, 2616 | "Cross" => 10799, 2617 | "Cscr" => 119966, 2618 | "Cup" => 8915, 2619 | "CupCap" => 8781, 2620 | "DD" => 8517, 2621 | "DDotrahd" => 10513, 2622 | "DJcy" => 1026, 2623 | "DScy" => 1029, 2624 | "DZcy" => 1039, 2625 | "Dagger" => 8225, 2626 | "Darr" => 8609, 2627 | "Dashv" => 10980, 2628 | "Dcaron" => 270, 2629 | "Dcy" => 1044, 2630 | "Del" => 8711, 2631 | "Delta" => 916, 2632 | "Dfr" => 120071, 2633 | "DiacriticalAcute" => 180, 2634 | "DiacriticalDot" => 729, 2635 | "DiacriticalDoubleAcute" => 733, 2636 | "DiacriticalGrave" => 96, 2637 | "DiacriticalTilde" => 732, 2638 | "Diamond" => 8900, 2639 | "DifferentialD" => 8518, 2640 | "Dopf" => 120123, 2641 | "Dot" => 168, 2642 | "DotDot" => 8412, 2643 | "DotEqual" => 8784, 2644 | "DoubleContourIntegral" => 8751, 2645 | "DoubleDot" => 168, 2646 | "DoubleDownArrow" => 8659, 2647 | "DoubleLeftArrow" => 8656, 2648 | "DoubleLeftRightArrow" => 8660, 2649 | "DoubleLeftTee" => 10980, 2650 | "DoubleLongLeftArrow" => 10232, 2651 | "DoubleLongLeftRightArrow" => 10234, 2652 | "DoubleLongRightArrow" => 10233, 2653 | "DoubleRightArrow" => 8658, 2654 | "DoubleRightTee" => 8872, 2655 | "DoubleUpArrow" => 8657, 2656 | "DoubleUpDownArrow" => 8661, 2657 | "DoubleVerticalBar" => 8741, 2658 | "DownArrow" => 8595, 2659 | "DownArrowBar" => 10515, 2660 | "DownArrowUpArrow" => 8693, 2661 | "DownBreve" => 785, 2662 | "DownLeftRightVector" => 10576, 2663 | "DownLeftTeeVector" => 10590, 2664 | "DownLeftVector" => 8637, 2665 | "DownLeftVectorBar" => 10582, 2666 | "DownRightTeeVector" => 10591, 2667 | "DownRightVector" => 8641, 2668 | "DownRightVectorBar" => 10583, 2669 | "DownTee" => 8868, 2670 | "DownTeeArrow" => 8615, 2671 | "Downarrow" => 8659, 2672 | "Dscr" => 119967, 2673 | "Dstrok" => 272, 2674 | "ENG" => 330, 2675 | "ETH" => 208, 2676 | "Eacute" => 201, 2677 | "Ecaron" => 282, 2678 | "Ecirc" => 202, 2679 | "Ecy" => 1069, 2680 | "Edot" => 278, 2681 | "Efr" => 120072, 2682 | "Egrave" => 200, 2683 | "Element" => 8712, 2684 | "Emacr" => 274, 2685 | "EmptySmallSquare" => 9723, 2686 | "EmptyVerySmallSquare" => 9643, 2687 | "Eogon" => 280, 2688 | "Eopf" => 120124, 2689 | "Epsilon" => 917, 2690 | "Equal" => 10869, 2691 | "EqualTilde" => 8770, 2692 | "Equilibrium" => 8652, 2693 | "Escr" => 8496, 2694 | "Esim" => 10867, 2695 | "Eta" => 919, 2696 | "Euml" => 203, 2697 | "Exists" => 8707, 2698 | "ExponentialE" => 8519, 2699 | "Fcy" => 1060, 2700 | "Ffr" => 120073, 2701 | "FilledSmallSquare" => 9724, 2702 | "FilledVerySmallSquare" => 9642, 2703 | "Fopf" => 120125, 2704 | "ForAll" => 8704, 2705 | "Fouriertrf" => 8497, 2706 | "Fscr" => 8497, 2707 | "GJcy" => 1027, 2708 | "GT" => 62, 2709 | "Gamma" => 915, 2710 | "Gammad" => 988, 2711 | "Gbreve" => 286, 2712 | "Gcedil" => 290, 2713 | "Gcirc" => 284, 2714 | "Gcy" => 1043, 2715 | "Gdot" => 288, 2716 | "Gfr" => 120074, 2717 | "Gg" => 8921, 2718 | "Gopf" => 120126, 2719 | "GreaterEqual" => 8805, 2720 | "GreaterEqualLess" => 8923, 2721 | "GreaterFullEqual" => 8807, 2722 | "GreaterGreater" => 10914, 2723 | "GreaterLess" => 8823, 2724 | "GreaterSlantEqual" => 10878, 2725 | "GreaterTilde" => 8819, 2726 | "Gscr" => 119970, 2727 | "Gt" => 8811, 2728 | "HARDcy" => 1066, 2729 | "Hacek" => 711, 2730 | "Hat" => 94, 2731 | "Hcirc" => 292, 2732 | "Hfr" => 8460, 2733 | "HilbertSpace" => 8459, 2734 | "Hopf" => 8461, 2735 | "HorizontalLine" => 9472, 2736 | "Hscr" => 8459, 2737 | "Hstrok" => 294, 2738 | "HumpDownHump" => 8782, 2739 | "HumpEqual" => 8783, 2740 | "IEcy" => 1045, 2741 | "IJlig" => 306, 2742 | "IOcy" => 1025, 2743 | "Iacute" => 205, 2744 | "Icirc" => 206, 2745 | "Icy" => 1048, 2746 | "Idot" => 304, 2747 | "Ifr" => 8465, 2748 | "Igrave" => 204, 2749 | "Im" => 8465, 2750 | "Imacr" => 298, 2751 | "ImaginaryI" => 8520, 2752 | "Implies" => 8658, 2753 | "Int" => 8748, 2754 | "Integral" => 8747, 2755 | "Intersection" => 8898, 2756 | "InvisibleComma" => 8291, 2757 | "InvisibleTimes" => 8290, 2758 | "Iogon" => 302, 2759 | "Iopf" => 120128, 2760 | "Iota" => 921, 2761 | "Iscr" => 8464, 2762 | "Itilde" => 296, 2763 | "Iukcy" => 1030, 2764 | "Iuml" => 207, 2765 | "Jcirc" => 308, 2766 | "Jcy" => 1049, 2767 | "Jfr" => 120077, 2768 | "Jopf" => 120129, 2769 | "Jscr" => 119973, 2770 | "Jsercy" => 1032, 2771 | "Jukcy" => 1028, 2772 | "KHcy" => 1061, 2773 | "KJcy" => 1036, 2774 | "Kappa" => 922, 2775 | "Kcedil" => 310, 2776 | "Kcy" => 1050, 2777 | "Kfr" => 120078, 2778 | "Kopf" => 120130, 2779 | "Kscr" => 119974, 2780 | "LJcy" => 1033, 2781 | "LT" => 60, 2782 | "Lacute" => 313, 2783 | "Lambda" => 923, 2784 | "Lang" => 10218, 2785 | "Laplacetrf" => 8466, 2786 | "Larr" => 8606, 2787 | "Lcaron" => 317, 2788 | "Lcedil" => 315, 2789 | "Lcy" => 1051, 2790 | "LeftAngleBracket" => 10216, 2791 | "LeftArrow" => 8592, 2792 | "LeftArrowBar" => 8676, 2793 | "LeftArrowRightArrow" => 8646, 2794 | "LeftCeiling" => 8968, 2795 | "LeftDoubleBracket" => 10214, 2796 | "LeftDownTeeVector" => 10593, 2797 | "LeftDownVector" => 8643, 2798 | "LeftDownVectorBar" => 10585, 2799 | "LeftFloor" => 8970, 2800 | "LeftRightArrow" => 8596, 2801 | "LeftRightVector" => 10574, 2802 | "LeftTee" => 8867, 2803 | "LeftTeeArrow" => 8612, 2804 | "LeftTeeVector" => 10586, 2805 | "LeftTriangle" => 8882, 2806 | "LeftTriangleBar" => 10703, 2807 | "LeftTriangleEqual" => 8884, 2808 | "LeftUpDownVector" => 10577, 2809 | "LeftUpTeeVector" => 10592, 2810 | "LeftUpVector" => 8639, 2811 | "LeftUpVectorBar" => 10584, 2812 | "LeftVector" => 8636, 2813 | "LeftVectorBar" => 10578, 2814 | "Leftarrow" => 8656, 2815 | "Leftrightarrow" => 8660, 2816 | "LessEqualGreater" => 8922, 2817 | "LessFullEqual" => 8806, 2818 | "LessGreater" => 8822, 2819 | "LessLess" => 10913, 2820 | "LessSlantEqual" => 10877, 2821 | "LessTilde" => 8818, 2822 | "Lfr" => 120079, 2823 | "Ll" => 8920, 2824 | "Lleftarrow" => 8666, 2825 | "Lmidot" => 319, 2826 | "LongLeftArrow" => 10229, 2827 | "LongLeftRightArrow" => 10231, 2828 | "LongRightArrow" => 10230, 2829 | "Longleftarrow" => 10232, 2830 | "Longleftrightarrow" => 10234, 2831 | "Longrightarrow" => 10233, 2832 | "Lopf" => 120131, 2833 | "LowerLeftArrow" => 8601, 2834 | "LowerRightArrow" => 8600, 2835 | "Lscr" => 8466, 2836 | "Lsh" => 8624, 2837 | "Lstrok" => 321, 2838 | "Lt" => 8810, 2839 | "Map" => 10501, 2840 | "Mcy" => 1052, 2841 | "MediumSpace" => 8287, 2842 | "Mellintrf" => 8499, 2843 | "Mfr" => 120080, 2844 | "MinusPlus" => 8723, 2845 | "Mopf" => 120132, 2846 | "Mscr" => 8499, 2847 | "Mu" => 924, 2848 | "NJcy" => 1034, 2849 | "Nacute" => 323, 2850 | "Ncaron" => 327, 2851 | "Ncedil" => 325, 2852 | "Ncy" => 1053, 2853 | "NegativeMediumSpace" => 8203, 2854 | "NegativeThickSpace" => 8203, 2855 | "NegativeThinSpace" => 8203, 2856 | "NegativeVeryThinSpace" => 8203, 2857 | "NestedGreaterGreater" => 8811, 2858 | "NestedLessLess" => 8810, 2859 | "NewLine" => 10, 2860 | "Nfr" => 120081, 2861 | "NoBreak" => 8288, 2862 | "NonBreakingSpace" => 160, 2863 | "Nopf" => 8469, 2864 | "Not" => 10988, 2865 | "NotCongruent" => 8802, 2866 | "NotCupCap" => 8813, 2867 | "NotDoubleVerticalBar" => 8742, 2868 | "NotElement" => 8713, 2869 | "NotEqual" => 8800, 2870 | "NotEqualTilde" => 8770, 2871 | "NotExists" => 8708, 2872 | "NotGreater" => 8815, 2873 | "NotGreaterEqual" => 8817, 2874 | "NotGreaterFullEqual" => 8807, 2875 | "NotGreaterGreater" => 8811, 2876 | "NotGreaterLess" => 8825, 2877 | "NotGreaterSlantEqual" => 10878, 2878 | "NotGreaterTilde" => 8821, 2879 | "NotHumpDownHump" => 8782, 2880 | "NotHumpEqual" => 8783, 2881 | "NotLeftTriangle" => 8938, 2882 | "NotLeftTriangleBar" => 10703, 2883 | "NotLeftTriangleEqual" => 8940, 2884 | "NotLess" => 8814, 2885 | "NotLessEqual" => 8816, 2886 | "NotLessGreater" => 8824, 2887 | "NotLessLess" => 8810, 2888 | "NotLessSlantEqual" => 10877, 2889 | "NotLessTilde" => 8820, 2890 | "NotNestedGreaterGreater" => 10914, 2891 | "NotNestedLessLess" => 10913, 2892 | "NotPrecedes" => 8832, 2893 | "NotPrecedesEqual" => 10927, 2894 | "NotPrecedesSlantEqual" => 8928, 2895 | "NotReverseElement" => 8716, 2896 | "NotRightTriangle" => 8939, 2897 | "NotRightTriangleBar" => 10704, 2898 | "NotRightTriangleEqual" => 8941, 2899 | "NotSquareSubset" => 8847, 2900 | "NotSquareSubsetEqual" => 8930, 2901 | "NotSquareSuperset" => 8848, 2902 | "NotSquareSupersetEqual" => 8931, 2903 | "NotSubset" => 8834, 2904 | "NotSubsetEqual" => 8840, 2905 | "NotSucceeds" => 8833, 2906 | "NotSucceedsEqual" => 10928, 2907 | "NotSucceedsSlantEqual" => 8929, 2908 | "NotSucceedsTilde" => 8831, 2909 | "NotSuperset" => 8835, 2910 | "NotSupersetEqual" => 8841, 2911 | "NotTilde" => 8769, 2912 | "NotTildeEqual" => 8772, 2913 | "NotTildeFullEqual" => 8775, 2914 | "NotTildeTilde" => 8777, 2915 | "NotVerticalBar" => 8740, 2916 | "Nscr" => 119977, 2917 | "Ntilde" => 209, 2918 | "Nu" => 925, 2919 | "OElig" => 338, 2920 | "Oacute" => 211, 2921 | "Ocirc" => 212, 2922 | "Ocy" => 1054, 2923 | "Odblac" => 336, 2924 | "Ofr" => 120082, 2925 | "Ograve" => 210, 2926 | "Omacr" => 332, 2927 | "Omega" => 937, 2928 | "Omicron" => 927, 2929 | "Oopf" => 120134, 2930 | "OpenCurlyDoubleQuote" => 8220, 2931 | "OpenCurlyQuote" => 8216, 2932 | "Or" => 10836, 2933 | "Oscr" => 119978, 2934 | "Oslash" => 216, 2935 | "Otilde" => 213, 2936 | "Otimes" => 10807, 2937 | "Ouml" => 214, 2938 | "OverBar" => 8254, 2939 | "OverBrace" => 9182, 2940 | "OverBracket" => 9140, 2941 | "OverParenthesis" => 9180, 2942 | "PartialD" => 8706, 2943 | "Pcy" => 1055, 2944 | "Pfr" => 120083, 2945 | "Phi" => 934, 2946 | "Pi" => 928, 2947 | "PlusMinus" => 177, 2948 | "Poincareplane" => 8460, 2949 | "Popf" => 8473, 2950 | "Pr" => 10939, 2951 | "Precedes" => 8826, 2952 | "PrecedesEqual" => 10927, 2953 | "PrecedesSlantEqual" => 8828, 2954 | "PrecedesTilde" => 8830, 2955 | "Prime" => 8243, 2956 | "Product" => 8719, 2957 | "Proportion" => 8759, 2958 | "Proportional" => 8733, 2959 | "Pscr" => 119979, 2960 | "Psi" => 936, 2961 | "QUOT" => 34, 2962 | "Qfr" => 120084, 2963 | "Qopf" => 8474, 2964 | "Qscr" => 119980, 2965 | "RBarr" => 10512, 2966 | "REG" => 174, 2967 | "Racute" => 340, 2968 | "Rang" => 10219, 2969 | "Rarr" => 8608, 2970 | "Rarrtl" => 10518, 2971 | "Rcaron" => 344, 2972 | "Rcedil" => 342, 2973 | "Rcy" => 1056, 2974 | "Re" => 8476, 2975 | "ReverseElement" => 8715, 2976 | "ReverseEquilibrium" => 8651, 2977 | "ReverseUpEquilibrium" => 10607, 2978 | "Rfr" => 8476, 2979 | "Rho" => 929, 2980 | "RightAngleBracket" => 10217, 2981 | "RightArrow" => 8594, 2982 | "RightArrowBar" => 8677, 2983 | "RightArrowLeftArrow" => 8644, 2984 | "RightCeiling" => 8969, 2985 | "RightDoubleBracket" => 10215, 2986 | "RightDownTeeVector" => 10589, 2987 | "RightDownVector" => 8642, 2988 | "RightDownVectorBar" => 10581, 2989 | "RightFloor" => 8971, 2990 | "RightTee" => 8866, 2991 | "RightTeeArrow" => 8614, 2992 | "RightTeeVector" => 10587, 2993 | "RightTriangle" => 8883, 2994 | "RightTriangleBar" => 10704, 2995 | "RightTriangleEqual" => 8885, 2996 | "RightUpDownVector" => 10575, 2997 | "RightUpTeeVector" => 10588, 2998 | "RightUpVector" => 8638, 2999 | "RightUpVectorBar" => 10580, 3000 | "RightVector" => 8640, 3001 | "RightVectorBar" => 10579, 3002 | "Rightarrow" => 8658, 3003 | "Ropf" => 8477, 3004 | "RoundImplies" => 10608, 3005 | "Rrightarrow" => 8667, 3006 | "Rscr" => 8475, 3007 | "Rsh" => 8625, 3008 | "RuleDelayed" => 10740, 3009 | "SHCHcy" => 1065, 3010 | "SHcy" => 1064, 3011 | "SOFTcy" => 1068, 3012 | "Sacute" => 346, 3013 | "Sc" => 10940, 3014 | "Scaron" => 352, 3015 | "Scedil" => 350, 3016 | "Scirc" => 348, 3017 | "Scy" => 1057, 3018 | "Sfr" => 120086, 3019 | "ShortDownArrow" => 8595, 3020 | "ShortLeftArrow" => 8592, 3021 | "ShortRightArrow" => 8594, 3022 | "ShortUpArrow" => 8593, 3023 | "Sigma" => 931, 3024 | "SmallCircle" => 8728, 3025 | "Sopf" => 120138, 3026 | "Sqrt" => 8730, 3027 | "Square" => 9633, 3028 | "SquareIntersection" => 8851, 3029 | "SquareSubset" => 8847, 3030 | "SquareSubsetEqual" => 8849, 3031 | "SquareSuperset" => 8848, 3032 | "SquareSupersetEqual" => 8850, 3033 | "SquareUnion" => 8852, 3034 | "Sscr" => 119982, 3035 | "Star" => 8902, 3036 | "Sub" => 8912, 3037 | "Subset" => 8912, 3038 | "SubsetEqual" => 8838, 3039 | "Succeeds" => 8827, 3040 | "SucceedsEqual" => 10928, 3041 | "SucceedsSlantEqual" => 8829, 3042 | "SucceedsTilde" => 8831, 3043 | "SuchThat" => 8715, 3044 | "Sum" => 8721, 3045 | "Sup" => 8913, 3046 | "Superset" => 8835, 3047 | "SupersetEqual" => 8839, 3048 | "Supset" => 8913, 3049 | "THORN" => 222, 3050 | "TRADE" => 8482, 3051 | "TSHcy" => 1035, 3052 | "TScy" => 1062, 3053 | "Tab" => 9, 3054 | "Tau" => 932, 3055 | "Tcaron" => 356, 3056 | "Tcedil" => 354, 3057 | "Tcy" => 1058, 3058 | "Tfr" => 120087, 3059 | "Therefore" => 8756, 3060 | "Theta" => 920, 3061 | "ThickSpace" => 8287, 3062 | "ThinSpace" => 8201, 3063 | "Tilde" => 8764, 3064 | "TildeEqual" => 8771, 3065 | "TildeFullEqual" => 8773, 3066 | "TildeTilde" => 8776, 3067 | "Topf" => 120139, 3068 | "TripleDot" => 8411, 3069 | "Tscr" => 119983, 3070 | "Tstrok" => 358, 3071 | "Uacute" => 218, 3072 | "Uarr" => 8607, 3073 | "Uarrocir" => 10569, 3074 | "Ubrcy" => 1038, 3075 | "Ubreve" => 364, 3076 | "Ucirc" => 219, 3077 | "Ucy" => 1059, 3078 | "Udblac" => 368, 3079 | "Ufr" => 120088, 3080 | "Ugrave" => 217, 3081 | "Umacr" => 362, 3082 | "UnderBar" => 95, 3083 | "UnderBrace" => 9183, 3084 | "UnderBracket" => 9141, 3085 | "UnderParenthesis" => 9181, 3086 | "Union" => 8899, 3087 | "UnionPlus" => 8846, 3088 | "Uogon" => 370, 3089 | "Uopf" => 120140, 3090 | "UpArrow" => 8593, 3091 | "UpArrowBar" => 10514, 3092 | "UpArrowDownArrow" => 8645, 3093 | "UpDownArrow" => 8597, 3094 | "UpEquilibrium" => 10606, 3095 | "UpTee" => 8869, 3096 | "UpTeeArrow" => 8613, 3097 | "Uparrow" => 8657, 3098 | "Updownarrow" => 8661, 3099 | "UpperLeftArrow" => 8598, 3100 | "UpperRightArrow" => 8599, 3101 | "Upsi" => 978, 3102 | "Upsilon" => 933, 3103 | "Uring" => 366, 3104 | "Uscr" => 119984, 3105 | "Utilde" => 360, 3106 | "Uuml" => 220, 3107 | "VDash" => 8875, 3108 | "Vbar" => 10987, 3109 | "Vcy" => 1042, 3110 | "Vdash" => 8873, 3111 | "Vdashl" => 10982, 3112 | "Vee" => 8897, 3113 | "Verbar" => 8214, 3114 | "Vert" => 8214, 3115 | "VerticalBar" => 8739, 3116 | "VerticalLine" => 124, 3117 | "VerticalSeparator" => 10072, 3118 | "VerticalTilde" => 8768, 3119 | "VeryThinSpace" => 8202, 3120 | "Vfr" => 120089, 3121 | "Vopf" => 120141, 3122 | "Vscr" => 119985, 3123 | "Vvdash" => 8874, 3124 | "Wcirc" => 372, 3125 | "Wedge" => 8896, 3126 | "Wfr" => 120090, 3127 | "Wopf" => 120142, 3128 | "Wscr" => 119986, 3129 | "Xfr" => 120091, 3130 | "Xi" => 926, 3131 | "Xopf" => 120143, 3132 | "Xscr" => 119987, 3133 | "YAcy" => 1071, 3134 | "YIcy" => 1031, 3135 | "YUcy" => 1070, 3136 | "Yacute" => 221, 3137 | "Ycirc" => 374, 3138 | "Ycy" => 1067, 3139 | "Yfr" => 120092, 3140 | "Yopf" => 120144, 3141 | "Yscr" => 119988, 3142 | "Yuml" => 376, 3143 | "ZHcy" => 1046, 3144 | "Zacute" => 377, 3145 | "Zcaron" => 381, 3146 | "Zcy" => 1047, 3147 | "Zdot" => 379, 3148 | "ZeroWidthSpace" => 8203, 3149 | "Zeta" => 918, 3150 | "Zfr" => 8488, 3151 | "Zopf" => 8484, 3152 | "Zscr" => 119989, 3153 | "aacute" => 225, 3154 | "abreve" => 259, 3155 | "ac" => 8766, 3156 | "acE" => 8766, 3157 | "acd" => 8767, 3158 | "acirc" => 226, 3159 | "acute" => 180, 3160 | "acy" => 1072, 3161 | "aelig" => 230, 3162 | "af" => 8289, 3163 | "afr" => 120094, 3164 | "agrave" => 224, 3165 | "alefsym" => 8501, 3166 | "aleph" => 8501, 3167 | "alpha" => 945, 3168 | "amacr" => 257, 3169 | "amalg" => 10815, 3170 | "amp" => 38, 3171 | "and" => 8743, 3172 | "andand" => 10837, 3173 | "andd" => 10844, 3174 | "andslope" => 10840, 3175 | "andv" => 10842, 3176 | "ang" => 8736, 3177 | "ange" => 10660, 3178 | "angle" => 8736, 3179 | "angmsd" => 8737, 3180 | "angmsdaa" => 10664, 3181 | "angmsdab" => 10665, 3182 | "angmsdac" => 10666, 3183 | "angmsdad" => 10667, 3184 | "angmsdae" => 10668, 3185 | "angmsdaf" => 10669, 3186 | "angmsdag" => 10670, 3187 | "angmsdah" => 10671, 3188 | "angrt" => 8735, 3189 | "angrtvb" => 8894, 3190 | "angrtvbd" => 10653, 3191 | "angsph" => 8738, 3192 | "angst" => 197, 3193 | "angzarr" => 9084, 3194 | "aogon" => 261, 3195 | "aopf" => 120146, 3196 | "ap" => 8776, 3197 | "apE" => 10864, 3198 | "apacir" => 10863, 3199 | "ape" => 8778, 3200 | "apid" => 8779, 3201 | "apos" => 39, 3202 | "approx" => 8776, 3203 | "approxeq" => 8778, 3204 | "aring" => 229, 3205 | "ascr" => 119990, 3206 | "ast" => 42, 3207 | "asymp" => 8776, 3208 | "asympeq" => 8781, 3209 | "atilde" => 227, 3210 | "auml" => 228, 3211 | "awconint" => 8755, 3212 | "awint" => 10769, 3213 | "bNot" => 10989, 3214 | "backcong" => 8780, 3215 | "backepsilon" => 1014, 3216 | "backprime" => 8245, 3217 | "backsim" => 8765, 3218 | "backsimeq" => 8909, 3219 | "barvee" => 8893, 3220 | "barwed" => 8965, 3221 | "barwedge" => 8965, 3222 | "bbrk" => 9141, 3223 | "bbrktbrk" => 9142, 3224 | "bcong" => 8780, 3225 | "bcy" => 1073, 3226 | "bdquo" => 8222, 3227 | "becaus" => 8757, 3228 | "because" => 8757, 3229 | "bemptyv" => 10672, 3230 | "bepsi" => 1014, 3231 | "bernou" => 8492, 3232 | "beta" => 946, 3233 | "beth" => 8502, 3234 | "between" => 8812, 3235 | "bfr" => 120095, 3236 | "bigcap" => 8898, 3237 | "bigcirc" => 9711, 3238 | "bigcup" => 8899, 3239 | "bigodot" => 10752, 3240 | "bigoplus" => 10753, 3241 | "bigotimes" => 10754, 3242 | "bigsqcup" => 10758, 3243 | "bigstar" => 9733, 3244 | "bigtriangledown" => 9661, 3245 | "bigtriangleup" => 9651, 3246 | "biguplus" => 10756, 3247 | "bigvee" => 8897, 3248 | "bigwedge" => 8896, 3249 | "bkarow" => 10509, 3250 | "blacklozenge" => 10731, 3251 | "blacksquare" => 9642, 3252 | "blacktriangle" => 9652, 3253 | "blacktriangledown" => 9662, 3254 | "blacktriangleleft" => 9666, 3255 | "blacktriangleright" => 9656, 3256 | "blank" => 9251, 3257 | "blk12" => 9618, 3258 | "blk14" => 9617, 3259 | "blk34" => 9619, 3260 | "block" => 9608, 3261 | "bne" => 61, 3262 | "bnequiv" => 8801, 3263 | "bnot" => 8976, 3264 | "bopf" => 120147, 3265 | "bot" => 8869, 3266 | "bottom" => 8869, 3267 | "bowtie" => 8904, 3268 | "boxDL" => 9559, 3269 | "boxDR" => 9556, 3270 | "boxDl" => 9558, 3271 | "boxDr" => 9555, 3272 | "boxH" => 9552, 3273 | "boxHD" => 9574, 3274 | "boxHU" => 9577, 3275 | "boxHd" => 9572, 3276 | "boxHu" => 9575, 3277 | "boxUL" => 9565, 3278 | "boxUR" => 9562, 3279 | "boxUl" => 9564, 3280 | "boxUr" => 9561, 3281 | "boxV" => 9553, 3282 | "boxVH" => 9580, 3283 | "boxVL" => 9571, 3284 | "boxVR" => 9568, 3285 | "boxVh" => 9579, 3286 | "boxVl" => 9570, 3287 | "boxVr" => 9567, 3288 | "boxbox" => 10697, 3289 | "boxdL" => 9557, 3290 | "boxdR" => 9554, 3291 | "boxdl" => 9488, 3292 | "boxdr" => 9484, 3293 | "boxh" => 9472, 3294 | "boxhD" => 9573, 3295 | "boxhU" => 9576, 3296 | "boxhd" => 9516, 3297 | "boxhu" => 9524, 3298 | "boxminus" => 8863, 3299 | "boxplus" => 8862, 3300 | "boxtimes" => 8864, 3301 | "boxuL" => 9563, 3302 | "boxuR" => 9560, 3303 | "boxul" => 9496, 3304 | "boxur" => 9492, 3305 | "boxv" => 9474, 3306 | "boxvH" => 9578, 3307 | "boxvL" => 9569, 3308 | "boxvR" => 9566, 3309 | "boxvh" => 9532, 3310 | "boxvl" => 9508, 3311 | "boxvr" => 9500, 3312 | "bprime" => 8245, 3313 | "breve" => 728, 3314 | "brvbar" => 166, 3315 | "bscr" => 119991, 3316 | "bsemi" => 8271, 3317 | "bsim" => 8765, 3318 | "bsime" => 8909, 3319 | "bsol" => 92, 3320 | "bsolb" => 10693, 3321 | "bsolhsub" => 10184, 3322 | "bull" => 8226, 3323 | "bullet" => 8226, 3324 | "bump" => 8782, 3325 | "bumpE" => 10926, 3326 | "bumpe" => 8783, 3327 | "bumpeq" => 8783, 3328 | "cacute" => 263, 3329 | "cap" => 8745, 3330 | "capand" => 10820, 3331 | "capbrcup" => 10825, 3332 | "capcap" => 10827, 3333 | "capcup" => 10823, 3334 | "capdot" => 10816, 3335 | "caps" => 8745, 3336 | "caret" => 8257, 3337 | "caron" => 711, 3338 | "ccaps" => 10829, 3339 | "ccaron" => 269, 3340 | "ccedil" => 231, 3341 | "ccirc" => 265, 3342 | "ccups" => 10828, 3343 | "ccupssm" => 10832, 3344 | "cdot" => 267, 3345 | "cedil" => 184, 3346 | "cemptyv" => 10674, 3347 | "cent" => 162, 3348 | "centerdot" => 183, 3349 | "cfr" => 120096, 3350 | "chcy" => 1095, 3351 | "check" => 10003, 3352 | "checkmark" => 10003, 3353 | "chi" => 967, 3354 | "cir" => 9675, 3355 | "cirE" => 10691, 3356 | "circ" => 710, 3357 | "circeq" => 8791, 3358 | "circlearrowleft" => 8634, 3359 | "circlearrowright" => 8635, 3360 | "circledR" => 174, 3361 | "circledS" => 9416, 3362 | "circledast" => 8859, 3363 | "circledcirc" => 8858, 3364 | "circleddash" => 8861, 3365 | "cire" => 8791, 3366 | "cirfnint" => 10768, 3367 | "cirmid" => 10991, 3368 | "cirscir" => 10690, 3369 | "clubs" => 9827, 3370 | "clubsuit" => 9827, 3371 | "colon" => 58, 3372 | "colone" => 8788, 3373 | "coloneq" => 8788, 3374 | "comma" => 44, 3375 | "commat" => 64, 3376 | "comp" => 8705, 3377 | "compfn" => 8728, 3378 | "complement" => 8705, 3379 | "complexes" => 8450, 3380 | "cong" => 8773, 3381 | "congdot" => 10861, 3382 | "conint" => 8750, 3383 | "copf" => 120148, 3384 | "coprod" => 8720, 3385 | "copy" => 169, 3386 | "copysr" => 8471, 3387 | "crarr" => 8629, 3388 | "cross" => 10007, 3389 | "cscr" => 119992, 3390 | "csub" => 10959, 3391 | "csube" => 10961, 3392 | "csup" => 10960, 3393 | "csupe" => 10962, 3394 | "ctdot" => 8943, 3395 | "cudarrl" => 10552, 3396 | "cudarrr" => 10549, 3397 | "cuepr" => 8926, 3398 | "cuesc" => 8927, 3399 | "cularr" => 8630, 3400 | "cularrp" => 10557, 3401 | "cup" => 8746, 3402 | "cupbrcap" => 10824, 3403 | "cupcap" => 10822, 3404 | "cupcup" => 10826, 3405 | "cupdot" => 8845, 3406 | "cupor" => 10821, 3407 | "cups" => 8746, 3408 | "curarr" => 8631, 3409 | "curarrm" => 10556, 3410 | "curlyeqprec" => 8926, 3411 | "curlyeqsucc" => 8927, 3412 | "curlyvee" => 8910, 3413 | "curlywedge" => 8911, 3414 | "curren" => 164, 3415 | "curvearrowleft" => 8630, 3416 | "curvearrowright" => 8631, 3417 | "cuvee" => 8910, 3418 | "cuwed" => 8911, 3419 | "cwconint" => 8754, 3420 | "cwint" => 8753, 3421 | "cylcty" => 9005, 3422 | "dArr" => 8659, 3423 | "dHar" => 10597, 3424 | "dagger" => 8224, 3425 | "daleth" => 8504, 3426 | "darr" => 8595, 3427 | "dash" => 8208, 3428 | "dashv" => 8867, 3429 | "dbkarow" => 10511, 3430 | "dblac" => 733, 3431 | "dcaron" => 271, 3432 | "dcy" => 1076, 3433 | "dd" => 8518, 3434 | "ddagger" => 8225, 3435 | "ddarr" => 8650, 3436 | "ddotseq" => 10871, 3437 | "deg" => 176, 3438 | "delta" => 948, 3439 | "demptyv" => 10673, 3440 | "dfisht" => 10623, 3441 | "dfr" => 120097, 3442 | "dharl" => 8643, 3443 | "dharr" => 8642, 3444 | "diam" => 8900, 3445 | "diamond" => 8900, 3446 | "diamondsuit" => 9830, 3447 | "diams" => 9830, 3448 | "die" => 168, 3449 | "digamma" => 989, 3450 | "disin" => 8946, 3451 | "div" => 247, 3452 | "divide" => 247, 3453 | "divideontimes" => 8903, 3454 | "divonx" => 8903, 3455 | "djcy" => 1106, 3456 | "dlcorn" => 8990, 3457 | "dlcrop" => 8973, 3458 | "dollar" => 36, 3459 | "dopf" => 120149, 3460 | "dot" => 729, 3461 | "doteq" => 8784, 3462 | "doteqdot" => 8785, 3463 | "dotminus" => 8760, 3464 | "dotplus" => 8724, 3465 | "dotsquare" => 8865, 3466 | "doublebarwedge" => 8966, 3467 | "downarrow" => 8595, 3468 | "downdownarrows" => 8650, 3469 | "downharpoonleft" => 8643, 3470 | "downharpoonright" => 8642, 3471 | "drbkarow" => 10512, 3472 | "drcorn" => 8991, 3473 | "drcrop" => 8972, 3474 | "dscr" => 119993, 3475 | "dscy" => 1109, 3476 | "dsol" => 10742, 3477 | "dstrok" => 273, 3478 | "dtdot" => 8945, 3479 | "dtri" => 9663, 3480 | "dtrif" => 9662, 3481 | "duarr" => 8693, 3482 | "duhar" => 10607, 3483 | "dwangle" => 10662, 3484 | "dzcy" => 1119, 3485 | "dzigrarr" => 10239, 3486 | "eDDot" => 10871, 3487 | "eDot" => 8785, 3488 | "eacute" => 233, 3489 | "easter" => 10862, 3490 | "ecaron" => 283, 3491 | "ecir" => 8790, 3492 | "ecirc" => 234, 3493 | "ecolon" => 8789, 3494 | "ecy" => 1101, 3495 | "edot" => 279, 3496 | "ee" => 8519, 3497 | "efDot" => 8786, 3498 | "efr" => 120098, 3499 | "eg" => 10906, 3500 | "egrave" => 232, 3501 | "egs" => 10902, 3502 | "egsdot" => 10904, 3503 | "el" => 10905, 3504 | "elinters" => 9191, 3505 | "ell" => 8467, 3506 | "els" => 10901, 3507 | "elsdot" => 10903, 3508 | "emacr" => 275, 3509 | "empty" => 8709, 3510 | "emptyset" => 8709, 3511 | "emptyv" => 8709, 3512 | "emsp" => 8195, 3513 | "emsp13" => 8196, 3514 | "emsp14" => 8197, 3515 | "eng" => 331, 3516 | "ensp" => 8194, 3517 | "eogon" => 281, 3518 | "eopf" => 120150, 3519 | "epar" => 8917, 3520 | "eparsl" => 10723, 3521 | "eplus" => 10865, 3522 | "epsi" => 949, 3523 | "epsilon" => 949, 3524 | "epsiv" => 1013, 3525 | "eqcirc" => 8790, 3526 | "eqcolon" => 8789, 3527 | "eqsim" => 8770, 3528 | "eqslantgtr" => 10902, 3529 | "eqslantless" => 10901, 3530 | "equals" => 61, 3531 | "equest" => 8799, 3532 | "equiv" => 8801, 3533 | "equivDD" => 10872, 3534 | "eqvparsl" => 10725, 3535 | "erDot" => 8787, 3536 | "erarr" => 10609, 3537 | "escr" => 8495, 3538 | "esdot" => 8784, 3539 | "esim" => 8770, 3540 | "eta" => 951, 3541 | "eth" => 240, 3542 | "euml" => 235, 3543 | "euro" => 8364, 3544 | "excl" => 33, 3545 | "exist" => 8707, 3546 | "expectation" => 8496, 3547 | "exponentiale" => 8519, 3548 | "fallingdotseq" => 8786, 3549 | "fcy" => 1092, 3550 | "female" => 9792, 3551 | "ffilig" => 64259, 3552 | "fflig" => 64256, 3553 | "ffllig" => 64260, 3554 | "ffr" => 120099, 3555 | "filig" => 64257, 3556 | "fjlig" => 102, 3557 | "flat" => 9837, 3558 | "fllig" => 64258, 3559 | "fltns" => 9649, 3560 | "fnof" => 402, 3561 | "fopf" => 120151, 3562 | "forall" => 8704, 3563 | "fork" => 8916, 3564 | "forkv" => 10969, 3565 | "fpartint" => 10765, 3566 | "frac12" => 189, 3567 | "frac13" => 8531, 3568 | "frac14" => 188, 3569 | "frac15" => 8533, 3570 | "frac16" => 8537, 3571 | "frac18" => 8539, 3572 | "frac23" => 8532, 3573 | "frac25" => 8534, 3574 | "frac34" => 190, 3575 | "frac35" => 8535, 3576 | "frac38" => 8540, 3577 | "frac45" => 8536, 3578 | "frac56" => 8538, 3579 | "frac58" => 8541, 3580 | "frac78" => 8542, 3581 | "frasl" => 8260, 3582 | "frown" => 8994, 3583 | "fscr" => 119995, 3584 | "gE" => 8807, 3585 | "gEl" => 10892, 3586 | "gacute" => 501, 3587 | "gamma" => 947, 3588 | "gammad" => 989, 3589 | "gap" => 10886, 3590 | "gbreve" => 287, 3591 | "gcirc" => 285, 3592 | "gcy" => 1075, 3593 | "gdot" => 289, 3594 | "ge" => 8805, 3595 | "gel" => 8923, 3596 | "geq" => 8805, 3597 | "geqq" => 8807, 3598 | "geqslant" => 10878, 3599 | "ges" => 10878, 3600 | "gescc" => 10921, 3601 | "gesdot" => 10880, 3602 | "gesdoto" => 10882, 3603 | "gesdotol" => 10884, 3604 | "gesl" => 8923, 3605 | "gesles" => 10900, 3606 | "gfr" => 120100, 3607 | "gg" => 8811, 3608 | "ggg" => 8921, 3609 | "gimel" => 8503, 3610 | "gjcy" => 1107, 3611 | "gl" => 8823, 3612 | "glE" => 10898, 3613 | "gla" => 10917, 3614 | "glj" => 10916, 3615 | "gnE" => 8809, 3616 | "gnap" => 10890, 3617 | "gnapprox" => 10890, 3618 | "gne" => 10888, 3619 | "gneq" => 10888, 3620 | "gneqq" => 8809, 3621 | "gnsim" => 8935, 3622 | "gopf" => 120152, 3623 | "grave" => 96, 3624 | "gscr" => 8458, 3625 | "gsim" => 8819, 3626 | "gsime" => 10894, 3627 | "gsiml" => 10896, 3628 | "gt" => 62, 3629 | "gtcc" => 10919, 3630 | "gtcir" => 10874, 3631 | "gtdot" => 8919, 3632 | "gtlPar" => 10645, 3633 | "gtquest" => 10876, 3634 | "gtrapprox" => 10886, 3635 | "gtrarr" => 10616, 3636 | "gtrdot" => 8919, 3637 | "gtreqless" => 8923, 3638 | "gtreqqless" => 10892, 3639 | "gtrless" => 8823, 3640 | "gtrsim" => 8819, 3641 | "gvertneqq" => 8809, 3642 | "gvnE" => 8809, 3643 | "hArr" => 8660, 3644 | "hairsp" => 8202, 3645 | "half" => 189, 3646 | "hamilt" => 8459, 3647 | "hardcy" => 1098, 3648 | "harr" => 8596, 3649 | "harrcir" => 10568, 3650 | "harrw" => 8621, 3651 | "hbar" => 8463, 3652 | "hcirc" => 293, 3653 | "hearts" => 9829, 3654 | "heartsuit" => 9829, 3655 | "hellip" => 8230, 3656 | "hercon" => 8889, 3657 | "hfr" => 120101, 3658 | "hksearow" => 10533, 3659 | "hkswarow" => 10534, 3660 | "hoarr" => 8703, 3661 | "homtht" => 8763, 3662 | "hookleftarrow" => 8617, 3663 | "hookrightarrow" => 8618, 3664 | "hopf" => 120153, 3665 | "horbar" => 8213, 3666 | "hscr" => 119997, 3667 | "hslash" => 8463, 3668 | "hstrok" => 295, 3669 | "hybull" => 8259, 3670 | "hyphen" => 8208, 3671 | "iacute" => 237, 3672 | "ic" => 8291, 3673 | "icirc" => 238, 3674 | "icy" => 1080, 3675 | "iecy" => 1077, 3676 | "iexcl" => 161, 3677 | "iff" => 8660, 3678 | "ifr" => 120102, 3679 | "igrave" => 236, 3680 | "ii" => 8520, 3681 | "iiiint" => 10764, 3682 | "iiint" => 8749, 3683 | "iinfin" => 10716, 3684 | "iiota" => 8489, 3685 | "ijlig" => 307, 3686 | "imacr" => 299, 3687 | "image" => 8465, 3688 | "imagline" => 8464, 3689 | "imagpart" => 8465, 3690 | "imath" => 305, 3691 | "imof" => 8887, 3692 | "imped" => 437, 3693 | "in" => 8712, 3694 | "incare" => 8453, 3695 | "infin" => 8734, 3696 | "infintie" => 10717, 3697 | "inodot" => 305, 3698 | "int" => 8747, 3699 | "intcal" => 8890, 3700 | "integers" => 8484, 3701 | "intercal" => 8890, 3702 | "intlarhk" => 10775, 3703 | "intprod" => 10812, 3704 | "iocy" => 1105, 3705 | "iogon" => 303, 3706 | "iopf" => 120154, 3707 | "iota" => 953, 3708 | "iprod" => 10812, 3709 | "iquest" => 191, 3710 | "iscr" => 119998, 3711 | "isin" => 8712, 3712 | "isinE" => 8953, 3713 | "isindot" => 8949, 3714 | "isins" => 8948, 3715 | "isinsv" => 8947, 3716 | "isinv" => 8712, 3717 | "it" => 8290, 3718 | "itilde" => 297, 3719 | "iukcy" => 1110, 3720 | "iuml" => 239, 3721 | "jcirc" => 309, 3722 | "jcy" => 1081, 3723 | "jfr" => 120103, 3724 | "jmath" => 567, 3725 | "jopf" => 120155, 3726 | "jscr" => 119999, 3727 | "jsercy" => 1112, 3728 | "jukcy" => 1108, 3729 | "kappa" => 954, 3730 | "kappav" => 1008, 3731 | "kcedil" => 311, 3732 | "kcy" => 1082, 3733 | "kfr" => 120104, 3734 | "kgreen" => 312, 3735 | "khcy" => 1093, 3736 | "kjcy" => 1116, 3737 | "kopf" => 120156, 3738 | "kscr" => 120000, 3739 | "lAarr" => 8666, 3740 | "lArr" => 8656, 3741 | "lAtail" => 10523, 3742 | "lBarr" => 10510, 3743 | "lE" => 8806, 3744 | "lEg" => 10891, 3745 | "lHar" => 10594, 3746 | "lacute" => 314, 3747 | "laemptyv" => 10676, 3748 | "lagran" => 8466, 3749 | "lambda" => 955, 3750 | "lang" => 10216, 3751 | "langd" => 10641, 3752 | "langle" => 10216, 3753 | "lap" => 10885, 3754 | "laquo" => 171, 3755 | "larr" => 8592, 3756 | "larrb" => 8676, 3757 | "larrbfs" => 10527, 3758 | "larrfs" => 10525, 3759 | "larrhk" => 8617, 3760 | "larrlp" => 8619, 3761 | "larrpl" => 10553, 3762 | "larrsim" => 10611, 3763 | "larrtl" => 8610, 3764 | "lat" => 10923, 3765 | "latail" => 10521, 3766 | "late" => 10925, 3767 | "lates" => 10925, 3768 | "lbarr" => 10508, 3769 | "lbbrk" => 10098, 3770 | "lbrace" => 123, 3771 | "lbrack" => 91, 3772 | "lbrke" => 10635, 3773 | "lbrksld" => 10639, 3774 | "lbrkslu" => 10637, 3775 | "lcaron" => 318, 3776 | "lcedil" => 316, 3777 | "lceil" => 8968, 3778 | "lcub" => 123, 3779 | "lcy" => 1083, 3780 | "ldca" => 10550, 3781 | "ldquo" => 8220, 3782 | "ldquor" => 8222, 3783 | "ldrdhar" => 10599, 3784 | "ldrushar" => 10571, 3785 | "ldsh" => 8626, 3786 | "le" => 8804, 3787 | "leftarrow" => 8592, 3788 | "leftarrowtail" => 8610, 3789 | "leftharpoondown" => 8637, 3790 | "leftharpoonup" => 8636, 3791 | "leftleftarrows" => 8647, 3792 | "leftrightarrow" => 8596, 3793 | "leftrightarrows" => 8646, 3794 | "leftrightharpoons" => 8651, 3795 | "leftrightsquigarrow" => 8621, 3796 | "leftthreetimes" => 8907, 3797 | "leg" => 8922, 3798 | "leq" => 8804, 3799 | "leqq" => 8806, 3800 | "leqslant" => 10877, 3801 | "les" => 10877, 3802 | "lescc" => 10920, 3803 | "lesdot" => 10879, 3804 | "lesdoto" => 10881, 3805 | "lesdotor" => 10883, 3806 | "lesg" => 8922, 3807 | "lesges" => 10899, 3808 | "lessapprox" => 10885, 3809 | "lessdot" => 8918, 3810 | "lesseqgtr" => 8922, 3811 | "lesseqqgtr" => 10891, 3812 | "lessgtr" => 8822, 3813 | "lesssim" => 8818, 3814 | "lfisht" => 10620, 3815 | "lfloor" => 8970, 3816 | "lfr" => 120105, 3817 | "lg" => 8822, 3818 | "lgE" => 10897, 3819 | "lhard" => 8637, 3820 | "lharu" => 8636, 3821 | "lharul" => 10602, 3822 | "lhblk" => 9604, 3823 | "ljcy" => 1113, 3824 | "ll" => 8810, 3825 | "llarr" => 8647, 3826 | "llcorner" => 8990, 3827 | "llhard" => 10603, 3828 | "lltri" => 9722, 3829 | "lmidot" => 320, 3830 | "lmoust" => 9136, 3831 | "lmoustache" => 9136, 3832 | "lnE" => 8808, 3833 | "lnap" => 10889, 3834 | "lnapprox" => 10889, 3835 | "lne" => 10887, 3836 | "lneq" => 10887, 3837 | "lneqq" => 8808, 3838 | "lnsim" => 8934, 3839 | "loang" => 10220, 3840 | "loarr" => 8701, 3841 | "lobrk" => 10214, 3842 | "longleftarrow" => 10229, 3843 | "longleftrightarrow" => 10231, 3844 | "longmapsto" => 10236, 3845 | "longrightarrow" => 10230, 3846 | "looparrowleft" => 8619, 3847 | "looparrowright" => 8620, 3848 | "lopar" => 10629, 3849 | "lopf" => 120157, 3850 | "loplus" => 10797, 3851 | "lotimes" => 10804, 3852 | "lowast" => 8727, 3853 | "lowbar" => 95, 3854 | "loz" => 9674, 3855 | "lozenge" => 9674, 3856 | "lozf" => 10731, 3857 | "lpar" => 40, 3858 | "lparlt" => 10643, 3859 | "lrarr" => 8646, 3860 | "lrcorner" => 8991, 3861 | "lrhar" => 8651, 3862 | "lrhard" => 10605, 3863 | "lrm" => 8206, 3864 | "lrtri" => 8895, 3865 | "lsaquo" => 8249, 3866 | "lscr" => 120001, 3867 | "lsh" => 8624, 3868 | "lsim" => 8818, 3869 | "lsime" => 10893, 3870 | "lsimg" => 10895, 3871 | "lsqb" => 91, 3872 | "lsquo" => 8216, 3873 | "lsquor" => 8218, 3874 | "lstrok" => 322, 3875 | "lt" => 60, 3876 | "ltcc" => 10918, 3877 | "ltcir" => 10873, 3878 | "ltdot" => 8918, 3879 | "lthree" => 8907, 3880 | "ltimes" => 8905, 3881 | "ltlarr" => 10614, 3882 | "ltquest" => 10875, 3883 | "ltrPar" => 10646, 3884 | "ltri" => 9667, 3885 | "ltrie" => 8884, 3886 | "ltrif" => 9666, 3887 | "lurdshar" => 10570, 3888 | "luruhar" => 10598, 3889 | "lvertneqq" => 8808, 3890 | "lvnE" => 8808, 3891 | "mDDot" => 8762, 3892 | "macr" => 175, 3893 | "male" => 9794, 3894 | "malt" => 10016, 3895 | "maltese" => 10016, 3896 | "map" => 8614, 3897 | "mapsto" => 8614, 3898 | "mapstodown" => 8615, 3899 | "mapstoleft" => 8612, 3900 | "mapstoup" => 8613, 3901 | "marker" => 9646, 3902 | "mcomma" => 10793, 3903 | "mcy" => 1084, 3904 | "mdash" => 8212, 3905 | "measuredangle" => 8737, 3906 | "mfr" => 120106, 3907 | "mho" => 8487, 3908 | "micro" => 181, 3909 | "mid" => 8739, 3910 | "midast" => 42, 3911 | "midcir" => 10992, 3912 | "middot" => 183, 3913 | "minus" => 8722, 3914 | "minusb" => 8863, 3915 | "minusd" => 8760, 3916 | "minusdu" => 10794, 3917 | "mlcp" => 10971, 3918 | "mldr" => 8230, 3919 | "mnplus" => 8723, 3920 | "models" => 8871, 3921 | "mopf" => 120158, 3922 | "mp" => 8723, 3923 | "mscr" => 120002, 3924 | "mstpos" => 8766, 3925 | "mu" => 956, 3926 | "multimap" => 8888, 3927 | "mumap" => 8888, 3928 | "nGg" => 8921, 3929 | "nGt" => 8811, 3930 | "nGtv" => 8811, 3931 | "nLeftarrow" => 8653, 3932 | "nLeftrightarrow" => 8654, 3933 | "nLl" => 8920, 3934 | "nLt" => 8810, 3935 | "nLtv" => 8810, 3936 | "nRightarrow" => 8655, 3937 | "nVDash" => 8879, 3938 | "nVdash" => 8878, 3939 | "nabla" => 8711, 3940 | "nacute" => 324, 3941 | "nang" => 8736, 3942 | "nap" => 8777, 3943 | "napE" => 10864, 3944 | "napid" => 8779, 3945 | "napos" => 329, 3946 | "napprox" => 8777, 3947 | "natur" => 9838, 3948 | "natural" => 9838, 3949 | "naturals" => 8469, 3950 | "nbsp" => 160, 3951 | "nbump" => 8782, 3952 | "nbumpe" => 8783, 3953 | "ncap" => 10819, 3954 | "ncaron" => 328, 3955 | "ncedil" => 326, 3956 | "ncong" => 8775, 3957 | "ncongdot" => 10861, 3958 | "ncup" => 10818, 3959 | "ncy" => 1085, 3960 | "ndash" => 8211, 3961 | "ne" => 8800, 3962 | "neArr" => 8663, 3963 | "nearhk" => 10532, 3964 | "nearr" => 8599, 3965 | "nearrow" => 8599, 3966 | "nedot" => 8784, 3967 | "nequiv" => 8802, 3968 | "nesear" => 10536, 3969 | "nesim" => 8770, 3970 | "nexist" => 8708, 3971 | "nexists" => 8708, 3972 | "nfr" => 120107, 3973 | "ngE" => 8807, 3974 | "nge" => 8817, 3975 | "ngeq" => 8817, 3976 | "ngeqq" => 8807, 3977 | "ngeqslant" => 10878, 3978 | "nges" => 10878, 3979 | "ngsim" => 8821, 3980 | "ngt" => 8815, 3981 | "ngtr" => 8815, 3982 | "nhArr" => 8654, 3983 | "nharr" => 8622, 3984 | "nhpar" => 10994, 3985 | "ni" => 8715, 3986 | "nis" => 8956, 3987 | "nisd" => 8954, 3988 | "niv" => 8715, 3989 | "njcy" => 1114, 3990 | "nlArr" => 8653, 3991 | "nlE" => 8806, 3992 | "nlarr" => 8602, 3993 | "nldr" => 8229, 3994 | "nle" => 8816, 3995 | "nleftarrow" => 8602, 3996 | "nleftrightarrow" => 8622, 3997 | "nleq" => 8816, 3998 | "nleqq" => 8806, 3999 | "nleqslant" => 10877, 4000 | "nles" => 10877, 4001 | "nless" => 8814, 4002 | "nlsim" => 8820, 4003 | "nlt" => 8814, 4004 | "nltri" => 8938, 4005 | "nltrie" => 8940, 4006 | "nmid" => 8740, 4007 | "nopf" => 120159, 4008 | "not" => 172, 4009 | "notin" => 8713, 4010 | "notinE" => 8953, 4011 | "notindot" => 8949, 4012 | "notinva" => 8713, 4013 | "notinvb" => 8951, 4014 | "notinvc" => 8950, 4015 | "notni" => 8716, 4016 | "notniva" => 8716, 4017 | "notnivb" => 8958, 4018 | "notnivc" => 8957, 4019 | "npar" => 8742, 4020 | "nparallel" => 8742, 4021 | "nparsl" => 11005, 4022 | "npart" => 8706, 4023 | "npolint" => 10772, 4024 | "npr" => 8832, 4025 | "nprcue" => 8928, 4026 | "npre" => 10927, 4027 | "nprec" => 8832, 4028 | "npreceq" => 10927, 4029 | "nrArr" => 8655, 4030 | "nrarr" => 8603, 4031 | "nrarrc" => 10547, 4032 | "nrarrw" => 8605, 4033 | "nrightarrow" => 8603, 4034 | "nrtri" => 8939, 4035 | "nrtrie" => 8941, 4036 | "nsc" => 8833, 4037 | "nsccue" => 8929, 4038 | "nsce" => 10928, 4039 | "nscr" => 120003, 4040 | "nshortmid" => 8740, 4041 | "nshortparallel" => 8742, 4042 | "nsim" => 8769, 4043 | "nsime" => 8772, 4044 | "nsimeq" => 8772, 4045 | "nsmid" => 8740, 4046 | "nspar" => 8742, 4047 | "nsqsube" => 8930, 4048 | "nsqsupe" => 8931, 4049 | "nsub" => 8836, 4050 | "nsubE" => 10949, 4051 | "nsube" => 8840, 4052 | "nsubset" => 8834, 4053 | "nsubseteq" => 8840, 4054 | "nsubseteqq" => 10949, 4055 | "nsucc" => 8833, 4056 | "nsucceq" => 10928, 4057 | "nsup" => 8837, 4058 | "nsupE" => 10950, 4059 | "nsupe" => 8841, 4060 | "nsupset" => 8835, 4061 | "nsupseteq" => 8841, 4062 | "nsupseteqq" => 10950, 4063 | "ntgl" => 8825, 4064 | "ntilde" => 241, 4065 | "ntlg" => 8824, 4066 | "ntriangleleft" => 8938, 4067 | "ntrianglelefteq" => 8940, 4068 | "ntriangleright" => 8939, 4069 | "ntrianglerighteq" => 8941, 4070 | "nu" => 957, 4071 | "num" => 35, 4072 | "numero" => 8470, 4073 | "numsp" => 8199, 4074 | "nvDash" => 8877, 4075 | "nvHarr" => 10500, 4076 | "nvap" => 8781, 4077 | "nvdash" => 8876, 4078 | "nvge" => 8805, 4079 | "nvgt" => 62, 4080 | "nvinfin" => 10718, 4081 | "nvlArr" => 10498, 4082 | "nvle" => 8804, 4083 | "nvlt" => 60, 4084 | "nvltrie" => 8884, 4085 | "nvrArr" => 10499, 4086 | "nvrtrie" => 8885, 4087 | "nvsim" => 8764, 4088 | "nwArr" => 8662, 4089 | "nwarhk" => 10531, 4090 | "nwarr" => 8598, 4091 | "nwarrow" => 8598, 4092 | "nwnear" => 10535, 4093 | "oS" => 9416, 4094 | "oacute" => 243, 4095 | "oast" => 8859, 4096 | "ocir" => 8858, 4097 | "ocirc" => 244, 4098 | "ocy" => 1086, 4099 | "odash" => 8861, 4100 | "odblac" => 337, 4101 | "odiv" => 10808, 4102 | "odot" => 8857, 4103 | "odsold" => 10684, 4104 | "oelig" => 339, 4105 | "ofcir" => 10687, 4106 | "ofr" => 120108, 4107 | "ogon" => 731, 4108 | "ograve" => 242, 4109 | "ogt" => 10689, 4110 | "ohbar" => 10677, 4111 | "ohm" => 937, 4112 | "oint" => 8750, 4113 | "olarr" => 8634, 4114 | "olcir" => 10686, 4115 | "olcross" => 10683, 4116 | "oline" => 8254, 4117 | "olt" => 10688, 4118 | "omacr" => 333, 4119 | "omega" => 969, 4120 | "omicron" => 959, 4121 | "omid" => 10678, 4122 | "ominus" => 8854, 4123 | "oopf" => 120160, 4124 | "opar" => 10679, 4125 | "operp" => 10681, 4126 | "oplus" => 8853, 4127 | "or" => 8744, 4128 | "orarr" => 8635, 4129 | "ord" => 10845, 4130 | "order" => 8500, 4131 | "orderof" => 8500, 4132 | "ordf" => 170, 4133 | "ordm" => 186, 4134 | "origof" => 8886, 4135 | "oror" => 10838, 4136 | "orslope" => 10839, 4137 | "orv" => 10843, 4138 | "oscr" => 8500, 4139 | "oslash" => 248, 4140 | "osol" => 8856, 4141 | "otilde" => 245, 4142 | "otimes" => 8855, 4143 | "otimesas" => 10806, 4144 | "ouml" => 246, 4145 | "ovbar" => 9021, 4146 | "par" => 8741, 4147 | "para" => 182, 4148 | "parallel" => 8741, 4149 | "parsim" => 10995, 4150 | "parsl" => 11005, 4151 | "part" => 8706, 4152 | "pcy" => 1087, 4153 | "percnt" => 37, 4154 | "period" => 46, 4155 | "permil" => 8240, 4156 | "perp" => 8869, 4157 | "pertenk" => 8241, 4158 | "pfr" => 120109, 4159 | "phi" => 966, 4160 | "phiv" => 981, 4161 | "phmmat" => 8499, 4162 | "phone" => 9742, 4163 | "pi" => 960, 4164 | "pitchfork" => 8916, 4165 | "piv" => 982, 4166 | "planck" => 8463, 4167 | "planckh" => 8462, 4168 | "plankv" => 8463, 4169 | "plus" => 43, 4170 | "plusacir" => 10787, 4171 | "plusb" => 8862, 4172 | "pluscir" => 10786, 4173 | "plusdo" => 8724, 4174 | "plusdu" => 10789, 4175 | "pluse" => 10866, 4176 | "plusmn" => 177, 4177 | "plussim" => 10790, 4178 | "plustwo" => 10791, 4179 | "pm" => 177, 4180 | "pointint" => 10773, 4181 | "popf" => 120161, 4182 | "pound" => 163, 4183 | "pr" => 8826, 4184 | "prE" => 10931, 4185 | "prap" => 10935, 4186 | "prcue" => 8828, 4187 | "pre" => 10927, 4188 | "prec" => 8826, 4189 | "precapprox" => 10935, 4190 | "preccurlyeq" => 8828, 4191 | "preceq" => 10927, 4192 | "precnapprox" => 10937, 4193 | "precneqq" => 10933, 4194 | "precnsim" => 8936, 4195 | "precsim" => 8830, 4196 | "prime" => 8242, 4197 | "primes" => 8473, 4198 | "prnE" => 10933, 4199 | "prnap" => 10937, 4200 | "prnsim" => 8936, 4201 | "prod" => 8719, 4202 | "profalar" => 9006, 4203 | "profline" => 8978, 4204 | "profsurf" => 8979, 4205 | "prop" => 8733, 4206 | "propto" => 8733, 4207 | "prsim" => 8830, 4208 | "prurel" => 8880, 4209 | "pscr" => 120005, 4210 | "psi" => 968, 4211 | "puncsp" => 8200, 4212 | "qfr" => 120110, 4213 | "qint" => 10764, 4214 | "qopf" => 120162, 4215 | "qprime" => 8279, 4216 | "qscr" => 120006, 4217 | "quaternions" => 8461, 4218 | "quatint" => 10774, 4219 | "quest" => 63, 4220 | "questeq" => 8799, 4221 | "quot" => 34, 4222 | "rAarr" => 8667, 4223 | "rArr" => 8658, 4224 | "rAtail" => 10524, 4225 | "rBarr" => 10511, 4226 | "rHar" => 10596, 4227 | "race" => 8765, 4228 | "racute" => 341, 4229 | "radic" => 8730, 4230 | "raemptyv" => 10675, 4231 | "rang" => 10217, 4232 | "rangd" => 10642, 4233 | "range" => 10661, 4234 | "rangle" => 10217, 4235 | "raquo" => 187, 4236 | "rarr" => 8594, 4237 | "rarrap" => 10613, 4238 | "rarrb" => 8677, 4239 | "rarrbfs" => 10528, 4240 | "rarrc" => 10547, 4241 | "rarrfs" => 10526, 4242 | "rarrhk" => 8618, 4243 | "rarrlp" => 8620, 4244 | "rarrpl" => 10565, 4245 | "rarrsim" => 10612, 4246 | "rarrtl" => 8611, 4247 | "rarrw" => 8605, 4248 | "ratail" => 10522, 4249 | "ratio" => 8758, 4250 | "rationals" => 8474, 4251 | "rbarr" => 10509, 4252 | "rbbrk" => 10099, 4253 | "rbrace" => 125, 4254 | "rbrack" => 93, 4255 | "rbrke" => 10636, 4256 | "rbrksld" => 10638, 4257 | "rbrkslu" => 10640, 4258 | "rcaron" => 345, 4259 | "rcedil" => 343, 4260 | "rceil" => 8969, 4261 | "rcub" => 125, 4262 | "rcy" => 1088, 4263 | "rdca" => 10551, 4264 | "rdldhar" => 10601, 4265 | "rdquo" => 8221, 4266 | "rdquor" => 8221, 4267 | "rdsh" => 8627, 4268 | "real" => 8476, 4269 | "realine" => 8475, 4270 | "realpart" => 8476, 4271 | "reals" => 8477, 4272 | "rect" => 9645, 4273 | "reg" => 174, 4274 | "rfisht" => 10621, 4275 | "rfloor" => 8971, 4276 | "rfr" => 120111, 4277 | "rhard" => 8641, 4278 | "rharu" => 8640, 4279 | "rharul" => 10604, 4280 | "rho" => 961, 4281 | "rhov" => 1009, 4282 | "rightarrow" => 8594, 4283 | "rightarrowtail" => 8611, 4284 | "rightharpoondown" => 8641, 4285 | "rightharpoonup" => 8640, 4286 | "rightleftarrows" => 8644, 4287 | "rightleftharpoons" => 8652, 4288 | "rightrightarrows" => 8649, 4289 | "rightsquigarrow" => 8605, 4290 | "rightthreetimes" => 8908, 4291 | "ring" => 730, 4292 | "risingdotseq" => 8787, 4293 | "rlarr" => 8644, 4294 | "rlhar" => 8652, 4295 | "rlm" => 8207, 4296 | "rmoust" => 9137, 4297 | "rmoustache" => 9137, 4298 | "rnmid" => 10990, 4299 | "roang" => 10221, 4300 | "roarr" => 8702, 4301 | "robrk" => 10215, 4302 | "ropar" => 10630, 4303 | "ropf" => 120163, 4304 | "roplus" => 10798, 4305 | "rotimes" => 10805, 4306 | "rpar" => 41, 4307 | "rpargt" => 10644, 4308 | "rppolint" => 10770, 4309 | "rrarr" => 8649, 4310 | "rsaquo" => 8250, 4311 | "rscr" => 120007, 4312 | "rsh" => 8625, 4313 | "rsqb" => 93, 4314 | "rsquo" => 8217, 4315 | "rsquor" => 8217, 4316 | "rthree" => 8908, 4317 | "rtimes" => 8906, 4318 | "rtri" => 9657, 4319 | "rtrie" => 8885, 4320 | "rtrif" => 9656, 4321 | "rtriltri" => 10702, 4322 | "ruluhar" => 10600, 4323 | "rx" => 8478, 4324 | "sacute" => 347, 4325 | "sbquo" => 8218, 4326 | "sc" => 8827, 4327 | "scE" => 10932, 4328 | "scap" => 10936, 4329 | "scaron" => 353, 4330 | "sccue" => 8829, 4331 | "sce" => 10928, 4332 | "scedil" => 351, 4333 | "scirc" => 349, 4334 | "scnE" => 10934, 4335 | "scnap" => 10938, 4336 | "scnsim" => 8937, 4337 | "scpolint" => 10771, 4338 | "scsim" => 8831, 4339 | "scy" => 1089, 4340 | "sdot" => 8901, 4341 | "sdotb" => 8865, 4342 | "sdote" => 10854, 4343 | "seArr" => 8664, 4344 | "searhk" => 10533, 4345 | "searr" => 8600, 4346 | "searrow" => 8600, 4347 | "sect" => 167, 4348 | "semi" => 59, 4349 | "seswar" => 10537, 4350 | "setminus" => 8726, 4351 | "setmn" => 8726, 4352 | "sext" => 10038, 4353 | "sfr" => 120112, 4354 | "sfrown" => 8994, 4355 | "sharp" => 9839, 4356 | "shchcy" => 1097, 4357 | "shcy" => 1096, 4358 | "shortmid" => 8739, 4359 | "shortparallel" => 8741, 4360 | "shy" => 173, 4361 | "sigma" => 963, 4362 | "sigmaf" => 962, 4363 | "sigmav" => 962, 4364 | "sim" => 8764, 4365 | "simdot" => 10858, 4366 | "sime" => 8771, 4367 | "simeq" => 8771, 4368 | "simg" => 10910, 4369 | "simgE" => 10912, 4370 | "siml" => 10909, 4371 | "simlE" => 10911, 4372 | "simne" => 8774, 4373 | "simplus" => 10788, 4374 | "simrarr" => 10610, 4375 | "slarr" => 8592, 4376 | "smallsetminus" => 8726, 4377 | "smashp" => 10803, 4378 | "smeparsl" => 10724, 4379 | "smid" => 8739, 4380 | "smile" => 8995, 4381 | "smt" => 10922, 4382 | "smte" => 10924, 4383 | "smtes" => 10924, 4384 | "softcy" => 1100, 4385 | "sol" => 47, 4386 | "solb" => 10692, 4387 | "solbar" => 9023, 4388 | "sopf" => 120164, 4389 | "spades" => 9824, 4390 | "spadesuit" => 9824, 4391 | "spar" => 8741, 4392 | "sqcap" => 8851, 4393 | "sqcaps" => 8851, 4394 | "sqcup" => 8852, 4395 | "sqcups" => 8852, 4396 | "sqsub" => 8847, 4397 | "sqsube" => 8849, 4398 | "sqsubset" => 8847, 4399 | "sqsubseteq" => 8849, 4400 | "sqsup" => 8848, 4401 | "sqsupe" => 8850, 4402 | "sqsupset" => 8848, 4403 | "sqsupseteq" => 8850, 4404 | "squ" => 9633, 4405 | "square" => 9633, 4406 | "squarf" => 9642, 4407 | "squf" => 9642, 4408 | "srarr" => 8594, 4409 | "sscr" => 120008, 4410 | "ssetmn" => 8726, 4411 | "ssmile" => 8995, 4412 | "sstarf" => 8902, 4413 | "star" => 9734, 4414 | "starf" => 9733, 4415 | "straightepsilon" => 1013, 4416 | "straightphi" => 981, 4417 | "strns" => 175, 4418 | "sub" => 8834, 4419 | "subE" => 10949, 4420 | "subdot" => 10941, 4421 | "sube" => 8838, 4422 | "subedot" => 10947, 4423 | "submult" => 10945, 4424 | "subnE" => 10955, 4425 | "subne" => 8842, 4426 | "subplus" => 10943, 4427 | "subrarr" => 10617, 4428 | "subset" => 8834, 4429 | "subseteq" => 8838, 4430 | "subseteqq" => 10949, 4431 | "subsetneq" => 8842, 4432 | "subsetneqq" => 10955, 4433 | "subsim" => 10951, 4434 | "subsub" => 10965, 4435 | "subsup" => 10963, 4436 | "succ" => 8827, 4437 | "succapprox" => 10936, 4438 | "succcurlyeq" => 8829, 4439 | "succeq" => 10928, 4440 | "succnapprox" => 10938, 4441 | "succneqq" => 10934, 4442 | "succnsim" => 8937, 4443 | "succsim" => 8831, 4444 | "sum" => 8721, 4445 | "sung" => 9834, 4446 | "sup" => 8835, 4447 | "sup1" => 185, 4448 | "sup2" => 178, 4449 | "sup3" => 179, 4450 | "supE" => 10950, 4451 | "supdot" => 10942, 4452 | "supdsub" => 10968, 4453 | "supe" => 8839, 4454 | "supedot" => 10948, 4455 | "suphsol" => 10185, 4456 | "suphsub" => 10967, 4457 | "suplarr" => 10619, 4458 | "supmult" => 10946, 4459 | "supnE" => 10956, 4460 | "supne" => 8843, 4461 | "supplus" => 10944, 4462 | "supset" => 8835, 4463 | "supseteq" => 8839, 4464 | "supseteqq" => 10950, 4465 | "supsetneq" => 8843, 4466 | "supsetneqq" => 10956, 4467 | "supsim" => 10952, 4468 | "supsub" => 10964, 4469 | "supsup" => 10966, 4470 | "swArr" => 8665, 4471 | "swarhk" => 10534, 4472 | "swarr" => 8601, 4473 | "swarrow" => 8601, 4474 | "swnwar" => 10538, 4475 | "szlig" => 223, 4476 | "target" => 8982, 4477 | "tau" => 964, 4478 | "tbrk" => 9140, 4479 | "tcaron" => 357, 4480 | "tcedil" => 355, 4481 | "tcy" => 1090, 4482 | "tdot" => 8411, 4483 | "telrec" => 8981, 4484 | "tfr" => 120113, 4485 | "there4" => 8756, 4486 | "therefore" => 8756, 4487 | "theta" => 952, 4488 | "thetasym" => 977, 4489 | "thetav" => 977, 4490 | "thickapprox" => 8776, 4491 | "thicksim" => 8764, 4492 | "thinsp" => 8201, 4493 | "thkap" => 8776, 4494 | "thksim" => 8764, 4495 | "thorn" => 254, 4496 | "tilde" => 732, 4497 | "times" => 215, 4498 | "timesb" => 8864, 4499 | "timesbar" => 10801, 4500 | "timesd" => 10800, 4501 | "tint" => 8749, 4502 | "toea" => 10536, 4503 | "top" => 8868, 4504 | "topbot" => 9014, 4505 | "topcir" => 10993, 4506 | "topf" => 120165, 4507 | "topfork" => 10970, 4508 | "tosa" => 10537, 4509 | "tprime" => 8244, 4510 | "trade" => 8482, 4511 | "triangle" => 9653, 4512 | "triangledown" => 9663, 4513 | "triangleleft" => 9667, 4514 | "trianglelefteq" => 8884, 4515 | "triangleq" => 8796, 4516 | "triangleright" => 9657, 4517 | "trianglerighteq" => 8885, 4518 | "tridot" => 9708, 4519 | "trie" => 8796, 4520 | "triminus" => 10810, 4521 | "triplus" => 10809, 4522 | "trisb" => 10701, 4523 | "tritime" => 10811, 4524 | "trpezium" => 9186, 4525 | "tscr" => 120009, 4526 | "tscy" => 1094, 4527 | "tshcy" => 1115, 4528 | "tstrok" => 359, 4529 | "twixt" => 8812, 4530 | "twoheadleftarrow" => 8606, 4531 | "twoheadrightarrow" => 8608, 4532 | "uArr" => 8657, 4533 | "uHar" => 10595, 4534 | "uacute" => 250, 4535 | "uarr" => 8593, 4536 | "ubrcy" => 1118, 4537 | "ubreve" => 365, 4538 | "ucirc" => 251, 4539 | "ucy" => 1091, 4540 | "udarr" => 8645, 4541 | "udblac" => 369, 4542 | "udhar" => 10606, 4543 | "ufisht" => 10622, 4544 | "ufr" => 120114, 4545 | "ugrave" => 249, 4546 | "uharl" => 8639, 4547 | "uharr" => 8638, 4548 | "uhblk" => 9600, 4549 | "ulcorn" => 8988, 4550 | "ulcorner" => 8988, 4551 | "ulcrop" => 8975, 4552 | "ultri" => 9720, 4553 | "umacr" => 363, 4554 | "uml" => 168, 4555 | "uogon" => 371, 4556 | "uopf" => 120166, 4557 | "uparrow" => 8593, 4558 | "updownarrow" => 8597, 4559 | "upharpoonleft" => 8639, 4560 | "upharpoonright" => 8638, 4561 | "uplus" => 8846, 4562 | "upsi" => 965, 4563 | "upsih" => 978, 4564 | "upsilon" => 965, 4565 | "upuparrows" => 8648, 4566 | "urcorn" => 8989, 4567 | "urcorner" => 8989, 4568 | "urcrop" => 8974, 4569 | "uring" => 367, 4570 | "urtri" => 9721, 4571 | "uscr" => 120010, 4572 | "utdot" => 8944, 4573 | "utilde" => 361, 4574 | "utri" => 9653, 4575 | "utrif" => 9652, 4576 | "uuarr" => 8648, 4577 | "uuml" => 252, 4578 | "uwangle" => 10663, 4579 | "vArr" => 8661, 4580 | "vBar" => 10984, 4581 | "vBarv" => 10985, 4582 | "vDash" => 8872, 4583 | "vangrt" => 10652, 4584 | "varepsilon" => 1013, 4585 | "varkappa" => 1008, 4586 | "varnothing" => 8709, 4587 | "varphi" => 981, 4588 | "varpi" => 982, 4589 | "varpropto" => 8733, 4590 | "varr" => 8597, 4591 | "varrho" => 1009, 4592 | "varsigma" => 962, 4593 | "varsubsetneq" => 8842, 4594 | "varsubsetneqq" => 10955, 4595 | "varsupsetneq" => 8843, 4596 | "varsupsetneqq" => 10956, 4597 | "vartheta" => 977, 4598 | "vartriangleleft" => 8882, 4599 | "vartriangleright" => 8883, 4600 | "vcy" => 1074, 4601 | "vdash" => 8866, 4602 | "vee" => 8744, 4603 | "veebar" => 8891, 4604 | "veeeq" => 8794, 4605 | "vellip" => 8942, 4606 | "verbar" => 124, 4607 | "vert" => 124, 4608 | "vfr" => 120115, 4609 | "vltri" => 8882, 4610 | "vnsub" => 8834, 4611 | "vnsup" => 8835, 4612 | "vopf" => 120167, 4613 | "vprop" => 8733, 4614 | "vrtri" => 8883, 4615 | "vscr" => 120011, 4616 | "vsubnE" => 10955, 4617 | "vsubne" => 8842, 4618 | "vsupnE" => 10956, 4619 | "vsupne" => 8843, 4620 | "vzigzag" => 10650, 4621 | "wcirc" => 373, 4622 | "wedbar" => 10847, 4623 | "wedge" => 8743, 4624 | "wedgeq" => 8793, 4625 | "weierp" => 8472, 4626 | "wfr" => 120116, 4627 | "wopf" => 120168, 4628 | "wp" => 8472, 4629 | "wr" => 8768, 4630 | "wreath" => 8768, 4631 | "wscr" => 120012, 4632 | "xcap" => 8898, 4633 | "xcirc" => 9711, 4634 | "xcup" => 8899, 4635 | "xdtri" => 9661, 4636 | "xfr" => 120117, 4637 | "xhArr" => 10234, 4638 | "xharr" => 10231, 4639 | "xi" => 958, 4640 | "xlArr" => 10232, 4641 | "xlarr" => 10229, 4642 | "xmap" => 10236, 4643 | "xnis" => 8955, 4644 | "xodot" => 10752, 4645 | "xopf" => 120169, 4646 | "xoplus" => 10753, 4647 | "xotime" => 10754, 4648 | "xrArr" => 10233, 4649 | "xrarr" => 10230, 4650 | "xscr" => 120013, 4651 | "xsqcup" => 10758, 4652 | "xuplus" => 10756, 4653 | "xutri" => 9651, 4654 | "xvee" => 8897, 4655 | "xwedge" => 8896, 4656 | "yacute" => 253, 4657 | "yacy" => 1103, 4658 | "ycirc" => 375, 4659 | "ycy" => 1099, 4660 | "yen" => 165, 4661 | "yfr" => 120118, 4662 | "yicy" => 1111, 4663 | "yopf" => 120170, 4664 | "yscr" => 120014, 4665 | "yucy" => 1102, 4666 | "yuml" => 255, 4667 | "zacute" => 378, 4668 | "zcaron" => 382, 4669 | "zcy" => 1079, 4670 | "zdot" => 380, 4671 | "zeetrf" => 8488, 4672 | "zeta" => 950, 4673 | "zfr" => 120119, 4674 | "zhcy" => 1078, 4675 | "zigrarr" => 8669, 4676 | "zopf" => 120171, 4677 | "zscr" => 120015, 4678 | "zwj" => 8205, 4679 | "zwnj" => 8204, 4680 | } 4681 | } 4682 | 4683 | fn lookup_words(key: &[u8]) -> Option { 4684 | hashify::tiny_map! { key, 4685 | "addflag" => Word::AddFlag, 4686 | "addheader" => Word::AddHeader, 4687 | "address" => Word::Address, 4688 | "addresses" => Word::Addresses, 4689 | "all" => Word::All, 4690 | "allof" => Word::AllOf, 4691 | "anychild" => Word::AnyChild, 4692 | "anyof" => Word::AnyOf, 4693 | "body" => Word::Body, 4694 | "break" => Word::Break, 4695 | "bymode" => Word::ByMode, 4696 | "bytimeabsolute" => Word::ByTimeAbsolute, 4697 | "bytimerelative" => Word::ByTimeRelative, 4698 | "bytrace" => Word::ByTrace, 4699 | "comparator" => Word::Comparator, 4700 | "contains" => Word::Contains, 4701 | "content" => Word::Content, 4702 | "contenttype" => Word::ContentType, 4703 | "convert" => Word::Convert, 4704 | "copy" => Word::Copy, 4705 | "count" => Word::Count, 4706 | "create" => Word::Create, 4707 | "currentdate" => Word::CurrentDate, 4708 | "date" => Word::Date, 4709 | "days" => Word::Days, 4710 | "deleteheader" => Word::DeleteHeader, 4711 | "detail" => Word::Detail, 4712 | "discard" => Word::Discard, 4713 | "domain" => Word::Domain, 4714 | "duplicate" => Word::Duplicate, 4715 | "else" => Word::Else, 4716 | "elsif" => Word::ElsIf, 4717 | "enclose" => Word::Enclose, 4718 | "encodeurl" => Word::EncodeUrl, 4719 | "envelope" => Word::Envelope, 4720 | "environment" => Word::Environment, 4721 | "ereject" => Word::Ereject, 4722 | "error" => Word::Error, 4723 | "exists" => Word::Exists, 4724 | "extracttext" => Word::ExtractText, 4725 | "false" => Word::False, 4726 | "fcc" => Word::Fcc, 4727 | "fileinto" => Word::FileInto, 4728 | "first" => Word::First, 4729 | "flags" => Word::Flags, 4730 | "foreverypart" => Word::ForEveryPart, 4731 | "from" => Word::From, 4732 | "global" => Word::Global, 4733 | "handle" => Word::Handle, 4734 | "hasflag" => Word::HasFlag, 4735 | "header" => Word::Header, 4736 | "headers" => Word::Headers, 4737 | "if" => Word::If, 4738 | "ihave" => Word::Ihave, 4739 | "importance" => Word::Importance, 4740 | "include" => Word::Include, 4741 | "index" => Word::Index, 4742 | "is" => Word::Is, 4743 | "keep" => Word::Keep, 4744 | "last" => Word::Last, 4745 | "length" => Word::Length, 4746 | "list" => Word::List, 4747 | "localpart" => Word::LocalPart, 4748 | "lower" => Word::Lower, 4749 | "lowerfirst" => Word::LowerFirst, 4750 | "mailboxexists" => Word::MailboxExists, 4751 | "mailboxid" => Word::MailboxId, 4752 | "mailboxidexists" => Word::MailboxIdExists, 4753 | "matches" => Word::Matches, 4754 | "message" => Word::Message, 4755 | "metadata" => Word::Metadata, 4756 | "metadataexists" => Word::MetadataExists, 4757 | "mime" => Word::Mime, 4758 | "name" => Word::Name, 4759 | "not" => Word::Not, 4760 | "notify" => Word::Notify, 4761 | "notify_method_capability" => Word::NotifyMethodCapability, 4762 | "once" => Word::Once, 4763 | "optional" => Word::Optional, 4764 | "options" => Word::Options, 4765 | "originalzone" => Word::OriginalZone, 4766 | "over" => Word::Over, 4767 | "param" => Word::Param, 4768 | "percent" => Word::Percent, 4769 | "personal" => Word::Personal, 4770 | "quoteregex" => Word::QuoteRegex, 4771 | "quotewildcard" => Word::QuoteWildcard, 4772 | "raw" => Word::Raw, 4773 | "redirect" => Word::Redirect, 4774 | "regex" => Word::Regex, 4775 | "reject" => Word::Reject, 4776 | "removeflag" => Word::RemoveFlag, 4777 | "replace" => Word::Replace, 4778 | "require" => Word::Require, 4779 | "ret" => Word::Ret, 4780 | "return" => Word::Return, 4781 | "seconds" => Word::Seconds, 4782 | "servermetadata" => Word::ServerMetadata, 4783 | "servermetadataexists" => Word::ServerMetadataExists, 4784 | "set" => Word::Set, 4785 | "setflag" => Word::SetFlag, 4786 | "size" => Word::Size, 4787 | "spamtest" => Word::SpamTest, 4788 | "specialuse" => Word::SpecialUse, 4789 | "specialuse_exists" => Word::SpecialUseExists, 4790 | "stop" => Word::Stop, 4791 | "string" => Word::String, 4792 | "subject" => Word::Subject, 4793 | "subtype" => Word::Subtype, 4794 | "text" => Word::Text, 4795 | "true" => Word::True, 4796 | "type" => Word::Type, 4797 | "under" => Word::Under, 4798 | "uniqueid" => Word::UniqueId, 4799 | "upper" => Word::Upper, 4800 | "upperfirst" => Word::UpperFirst, 4801 | "user" => Word::User, 4802 | "vacation" => Word::Vacation, 4803 | "valid_ext_list" => Word::ValidExtList, 4804 | "valid_notify_method" => Word::ValidNotifyMethod, 4805 | "value" => Word::Value, 4806 | "virustest" => Word::VirusTest, 4807 | "zone" => Word::Zone, 4808 | "eval" => Word::Eval, 4809 | "local" => Word::Local, 4810 | "while" => Word::While, 4811 | "let" => Word::Let, 4812 | "continue" => Word::Continue, 4813 | } 4814 | } 4815 | 4816 | fn lookup_charsets(key: &[u8]) -> Option { 4817 | hashify::tiny_map! { 4818 | key, 4819 | "koi8_r" => 35, 4820 | "windows_1253" => 97, 4821 | "windows_1257" => 114, 4822 | "iso_8859_10" => 69, 4823 | "windows_1251" => 70, 4824 | "ks_c_5601_1989" => 64, 4825 | "cswindows1255" => 71, 4826 | "windows_1254" => 78, 4827 | "csiso885916" => 66, 4828 | "iso_8859_10:1992" => 87, 4829 | "iso_8859_8:1988" => 47, 4830 | "latin2" => 30, 4831 | "csiso885914" => 50, 4832 | "cstis620" => 88, 4833 | "iso_8859_5:1988" => 59, 4834 | "windows_1250" => 94, 4835 | "csisolatin5" => 108, 4836 | "utf_16" => 116, 4837 | "ms_kanji" => 133, 4838 | "iso_ir_148" => 22, 4839 | "iso_8859_2" => 118, 4840 | "l6" => 13, 4841 | "csiso2022jp" => 143, 4842 | "latin_9" => 25, 4843 | "l2" => 27, 4844 | "csisolatin3" => 119, 4845 | "shift_jis" => 28, 4846 | "cswindows1254" => 63, 4847 | "cspc850multilingual" => 148, 4848 | "cswindows1258" => 58, 4849 | "l10" => 38, 4850 | "iso_ir_100" => 89, 4851 | "cp850" => 20, 4852 | "iso_ir_101" => 32, 4853 | "iso_celtic" => 23, 4854 | "iso_8859_7:1987" => 136, 4855 | "latin8" => 3, 4856 | "latin4" => 6, 4857 | "csisolatin4" => 105, 4858 | "utf_16le" => 113, 4859 | "csisolatingreek" => 103, 4860 | "tis_620" => 45, 4861 | "euc_kr" => 24, 4862 | "elot_928" => 46, 4863 | "iso_ir_127" => 142, 4864 | "iso_ir_199" => 65, 4865 | "utf_16be" => 117, 4866 | "cswindows1256" => 79, 4867 | "iso_2022_jp" => 126, 4868 | "ms936" => 138, 4869 | "gb18030" => 49, 4870 | "extended_unix_code_packed_format_for_japanese" => 125, 4871 | "iso_8859_9" => 80, 4872 | "iso_8859_5" => 68, 4873 | "l4" => 4, 4874 | "l5" => 8, 4875 | "iso_8859_1:1987" => 95, 4876 | "latin6" => 15, 4877 | "latin1" => 1, 4878 | "l3" => 19, 4879 | "windows_936" => 93, 4880 | "cp936" => 26, 4881 | "csiso885913" => 76, 4882 | "ecma_114" => 130, 4883 | "big5" => 16, 4884 | "cswindows1251" => 54, 4885 | "greek" => 10, 4886 | "iso_8859_9:1989" => 81, 4887 | "csutf16le" => 115, 4888 | "cyrillic" => 34, 4889 | "iso_ir_144" => 29, 4890 | "850" => 42, 4891 | "l8" => 2, 4892 | "iso_8859_7" => 134, 4893 | "gbk" => 7, 4894 | "iso_8859_16" => 62, 4895 | "iso_8859_15" => 53, 4896 | "gb2312" => 82, 4897 | "windows_1256" => 91, 4898 | "iso_8859_3" => 100, 4899 | "windows_1252" => 109, 4900 | "iso_ir_109" => 75, 4901 | "866" => 31, 4902 | "cswindows874" => 67, 4903 | "cp819" => 14, 4904 | "euc_jp" => 33, 4905 | "iso_8859_16:2001" => 40, 4906 | "cswindows1252" => 98, 4907 | "cswindows1257" => 107, 4908 | "csmacintosh" => 139, 4909 | "csgbk" => 5, 4910 | "latin5" => 9, 4911 | "iso_8859_11" => 37, 4912 | "ibm850" => 141, 4913 | "latin3" => 21, 4914 | "arabic" => 127, 4915 | "windows_874" => 90, 4916 | "iso_8859_3:1988" => 77, 4917 | "ecma_118" => 121, 4918 | "iso_8859_2:1987" => 131, 4919 | "mac" => 110, 4920 | "l1" => 0, 4921 | "csgb18030" => 106, 4922 | "iso_ir_126" => 92, 4923 | "cskoi8u" => 145, 4924 | "csiso885915" => 56, 4925 | "macintosh" => 146, 4926 | "iso_8859_6:1987" => 111, 4927 | "cswindows1253" => 86, 4928 | "latin10" => 41, 4929 | "iso_8859_13" => 72, 4930 | "iso_8859_4" => 55, 4931 | "koi8_u" => 104, 4932 | "csbig5" => 12, 4933 | "csisolatin2" => 132, 4934 | "iso_8859_6" => 85, 4935 | "windows_1255" => 83, 4936 | "cseucpkdfmtjapanese" => 144, 4937 | "iso_8859_14:1998" => 44, 4938 | "csisolatin6" => 112, 4939 | "iso_8859_8" => 43, 4940 | "iso_ir_157" => 123, 4941 | "ibm819" => 135, 4942 | "asmo_708" => 147, 4943 | "csutf16be" => 122, 4944 | "windows_1258" => 73, 4945 | "iso_ir_110" => 61, 4946 | "ks_c_5601_1987" => 99, 4947 | "csshiftjis" => 18, 4948 | "csutf16" => 120, 4949 | "utf_7" => 140, 4950 | "csisolatin1" => 96, 4951 | "iso_8859_4:1988" => 52, 4952 | "cskoi8r" => 51, 4953 | "csisolatinarabic" => 101, 4954 | "csisolatincyrillic" => 102, 4955 | "cswindows1250" => 84, 4956 | "greek8" => 11, 4957 | "csisolatinhebrew" => 124, 4958 | "hebrew" => 60, 4959 | "iso_8859_1" => 36, 4960 | "iso_ir_138" => 39, 4961 | "csibm866" => 74, 4962 | "iso_ir_226" => 128, 4963 | "csutf7" => 129, 4964 | "cseuckr" => 57, 4965 | "iso_8859_14" => 48, 4966 | "cp866" => 17, 4967 | "ibm866" => 137, 4968 | } 4969 | } 4970 | 4971 | fn lookup_charsets_lc(key: &[u8]) -> Option { 4972 | hashify::tiny_map_ignore_case! { 4973 | key, 4974 | "koi8_r" => 35, 4975 | "windows_1253" => 97, 4976 | "windows_1257" => 114, 4977 | "iso_8859_10" => 69, 4978 | "windows_1251" => 70, 4979 | "ks_c_5601_1989" => 64, 4980 | "cswindows1255" => 71, 4981 | "windows_1254" => 78, 4982 | "csiso885916" => 66, 4983 | "iso_8859_10:1992" => 87, 4984 | "iso_8859_8:1988" => 47, 4985 | "latin2" => 30, 4986 | "csiso885914" => 50, 4987 | "cstis620" => 88, 4988 | "iso_8859_5:1988" => 59, 4989 | "windows_1250" => 94, 4990 | "csisolatin5" => 108, 4991 | "utf_16" => 116, 4992 | "ms_kanji" => 133, 4993 | "iso_ir_148" => 22, 4994 | "iso_8859_2" => 118, 4995 | "l6" => 13, 4996 | "csiso2022jp" => 143, 4997 | "LATIN_9" => 25, 4998 | "l2" => 27, 4999 | "csisolatin3" => 119, 5000 | "shift_jis" => 28, 5001 | "cswindows1254" => 63, 5002 | "cspc850multilingual" => 148, 5003 | "cswindows1258" => 58, 5004 | "l10" => 38, 5005 | "iso_ir_100" => 89, 5006 | "cp850" => 20, 5007 | "iso_ir_101" => 32, 5008 | "iso_celtic" => 23, 5009 | "iso_8859_7:1987" => 136, 5010 | "latin8" => 3, 5011 | "latin4" => 6, 5012 | "csisolatin4" => 105, 5013 | "utf_16le" => 113, 5014 | "csisoLatingreek" => 103, 5015 | "tis_620" => 45, 5016 | "euc_kr" => 24, 5017 | "elot_928" => 46, 5018 | "iso_ir_127" => 142, 5019 | "iso_ir_199" => 65, 5020 | "utf_16be" => 117, 5021 | "cswindows1256" => 79, 5022 | "iso_2022_jp" => 126, 5023 | "ms936" => 138, 5024 | "gb18030" => 49, 5025 | "extended_unix_code_packed_format_for_japanese" => 125, 5026 | "iso_8859_9" => 80, 5027 | "iso_8859_5" => 68, 5028 | "l4" => 4, 5029 | "l5" => 8, 5030 | "Iso_8859_1:1987" => 95, 5031 | "latin6" => 15, 5032 | "latin1" => 1, 5033 | "l3" => 19, 5034 | "windows_936" => 93, 5035 | "cp936" => 26, 5036 | "csiso885913" => 76, 5037 | "ecma_114" => 130, 5038 | "big5" => 16, 5039 | "cswindows1251" => 54, 5040 | "greek" => 10, 5041 | "iso_8859_9:1989" => 81, 5042 | "csutf16le" => 115, 5043 | "cyrillic" => 34, 5044 | "iso_ir_144" => 29, 5045 | "850" => 42, 5046 | "l8" => 2, 5047 | "iso_8859_7" => 134, 5048 | "gbk" => 7, 5049 | "iso_8859_16" => 62, 5050 | "iso_8859_15" => 53, 5051 | "gb2312" => 82, 5052 | "windows_1256" => 91, 5053 | "iso_8859_3" => 100, 5054 | "windows_1252" => 109, 5055 | "iso_ir_109" => 75, 5056 | "866" => 31, 5057 | "cswindows874" => 67, 5058 | "cp819" => 14, 5059 | "euc_jp" => 33, 5060 | "iso_8859_16:2001" => 40, 5061 | "cswindows1252" => 98, 5062 | "cswindows1257" => 107, 5063 | "csmacintosh" => 139, 5064 | "csgbk" => 5, 5065 | "latin5" => 9, 5066 | "iso_8859_11" => 37, 5067 | "ibm850" => 141, 5068 | "latin3" => 21, 5069 | "arabic" => 127, 5070 | "windows_874" => 90, 5071 | "iso_8859_3:1988" => 77, 5072 | "ecma_118" => 121, 5073 | "iso_8859_2:1987" => 131, 5074 | "mac" => 110, 5075 | "l1" => 0, 5076 | "csgb18030" => 106, 5077 | "iso_ir_126" => 92, 5078 | "cskoi8u" => 145, 5079 | "csiso885915" => 56, 5080 | "macintosh" => 146, 5081 | "iso_8859_6:1987" => 111, 5082 | "cswindows1253" => 86, 5083 | "latin10" => 41, 5084 | "iso_8859_13" => 72, 5085 | "iso_8859_4" => 55, 5086 | "koi8_u" => 104, 5087 | "csbig5" => 12, 5088 | "csisolatin2" => 132, 5089 | "iso_8859_6" => 85, 5090 | "windows_1255" => 83, 5091 | "cseucpkdfmtjapanese" => 144, 5092 | "iso_8859_14:1998" => 44, 5093 | "csisolatin6" => 112, 5094 | "iso_8859_8" => 43, 5095 | "iso_ir_157" => 123, 5096 | "ibm819" => 135, 5097 | "asmo_708" => 147, 5098 | "csutf16be" => 122, 5099 | "windows_1258" => 73, 5100 | "iso_ir_110" => 61, 5101 | "ks_c_5601_1987" => 99, 5102 | "csshiftjis" => 18, 5103 | "csutf16" => 120, 5104 | "utf_7" => 140, 5105 | "csisolatin1" => 96, 5106 | "iso_8859_4:1988" => 52, 5107 | "cskoi8r" => 51, 5108 | "csisolatinarabic" => 101, 5109 | "csisolatincyrillic" => 102, 5110 | "cswindows1250" => 84, 5111 | "greek8" => 11, 5112 | "csisolatinhebrew" => 124, 5113 | "hebrew" => 60, 5114 | "iso_8859_1" => 36, 5115 | "iso_ir_138" => 39, 5116 | "csibm866" => 74, 5117 | "iso_ir_226" => 128, 5118 | "csutf7" => 129, 5119 | "cseuckr" => 57, 5120 | "iso_8859_14" => 48, 5121 | "cp866" => 17, 5122 | "ibm866" => 137, 5123 | } 5124 | } 5125 | 5126 | #[test] 5127 | fn main() { 5128 | let mut value = 1; 5129 | hashify::fnc_map_ignore_case!("all".as_bytes(), 5130 | "ALL" => { 5131 | value = 2; 5132 | }, 5133 | "FULL" => { 5134 | value = 3; 5135 | }, 5136 | "FAST" => { 5137 | value = 4; 5138 | }, 5139 | "ENVELOPE" => { 5140 | value = 5; 5141 | }, 5142 | _ => { 5143 | value = 6; 5144 | } 5145 | ); 5146 | assert_eq!(value, 2); 5147 | 5148 | let mut value = 1; 5149 | hashify::fnc_map_ignore_case!("other".as_bytes(), 5150 | "ALL" => { 5151 | value = 2; 5152 | }, 5153 | "FULL" => { 5154 | value = 3; 5155 | }, 5156 | _ => { 5157 | value = 6; 5158 | } 5159 | ); 5160 | assert_eq!(value, 6); 5161 | 5162 | // Single entry 5163 | fn find(input: &[u8]) -> Option { 5164 | hashify::tiny_map! { 5165 | input, 5166 | "months" => 1, 5167 | "m" => 2, 5168 | } 5169 | } 5170 | assert_eq!(find(b"months"), Some(1)); 5171 | 5172 | // Sets 5173 | fn tiny_set(input: &str) -> bool { 5174 | hashify::tiny_set!( 5175 | input.as_bytes(), 5176 | "a", 5177 | "about", 5178 | "above", 5179 | "after", 5180 | "again", 5181 | "against", 5182 | "ain", 5183 | "all", 5184 | "am", 5185 | "an", 5186 | "and", 5187 | "any", 5188 | "are", 5189 | "aren", 5190 | "aren't", 5191 | ) 5192 | } 5193 | 5194 | fn large_set(input: &str) -> bool { 5195 | hashify::set!( 5196 | input.as_bytes(), 5197 | "a", 5198 | "about", 5199 | "above", 5200 | "after", 5201 | "again", 5202 | "against", 5203 | "ain", 5204 | "all", 5205 | "am", 5206 | "an", 5207 | "and", 5208 | "any", 5209 | "are", 5210 | "aren", 5211 | "aren't", 5212 | ) 5213 | } 5214 | assert!(tiny_set("an")); 5215 | assert!(large_set("an")); 5216 | 5217 | // Lowercase 5218 | fn lc_tiny_map_lc(input: &[u8]) -> Option { 5219 | hashify::tiny_map_ignore_case! { 5220 | input, 5221 | "ABC" => 1, 5222 | "def" => 2, 5223 | "GHI" => 3, 5224 | "jKl" => 4, 5225 | } 5226 | } 5227 | fn lc_map_lc(input: &[u8]) -> Option { 5228 | hashify::map_ignore_case! { 5229 | input, 5230 | u32, 5231 | "ABC" => 1, 5232 | "def" => 2, 5233 | "GHI" => 3, 5234 | "jKl" => 4, 5235 | } 5236 | .copied() 5237 | } 5238 | fn lc_tiny_set_lc(input: &[u8]) -> bool { 5239 | hashify::tiny_set_ignore_case! { 5240 | input, 5241 | "ABC", 5242 | "def", 5243 | "GHI", 5244 | "jKl", 5245 | } 5246 | } 5247 | fn lc_set_lc(input: &[u8]) -> bool { 5248 | hashify::set_ignore_case! { 5249 | input, 5250 | "ABC", 5251 | "def", 5252 | "GHI", 5253 | "jKl", 5254 | } 5255 | } 5256 | for (idx, entry) in ["AbC", "DeF", "Ghi", "JkL"].into_iter().enumerate() { 5257 | assert_eq!(lc_tiny_map_lc(entry.as_bytes()), Some((idx + 1) as u32)); 5258 | assert_eq!(lc_map_lc(entry.as_bytes()), Some((idx + 1) as u32)); 5259 | assert!(lc_tiny_set_lc(entry.as_bytes())); 5260 | assert!(lc_set_lc(entry.as_bytes())); 5261 | } 5262 | 5263 | let words = WORDS.keys().copied().collect::>(); 5264 | let charsets = CHARSETS.keys().copied().collect::>(); 5265 | let entities = ENTITIES.keys().copied().collect::>(); 5266 | 5267 | for entitiy in entities { 5268 | println!("Looking up entity: {:?}", entitiy); 5269 | assert_eq!( 5270 | ENTITIES.get(entitiy).unwrap(), 5271 | lookup_entity(entitiy.as_bytes()).unwrap() 5272 | ); 5273 | } 5274 | 5275 | for word in words { 5276 | println!("Looking up word: {:?}", word); 5277 | assert_eq!( 5278 | *WORDS.get(word).unwrap(), 5279 | lookup_words(word.as_bytes()).unwrap() 5280 | ); 5281 | } 5282 | 5283 | for charset in charsets { 5284 | println!("Looking up charset: {:?}", charset); 5285 | let v = *CHARSETS.get(charset).unwrap(); 5286 | assert_eq!(v, lookup_charsets(charset.as_bytes()).unwrap()); 5287 | assert_eq!( 5288 | v, 5289 | lookup_charsets_lc(charset.to_ascii_uppercase().as_bytes()).unwrap() 5290 | ); 5291 | } 5292 | } 5293 | --------------------------------------------------------------------------------