use once_cell::sync::Lazy;
use serde_json::Value;
use std::collections::HashSet;
static VARIANT_SET: Lazy<HashSet<&'static str>> = Lazy::new(|| {
let mut set: HashSet<&'static str> = HashSet::new();
let json = include_str!("../assets/fullwidth_variants.json");
let map: Value = serde_json::from_str(json).expect("Invalid fullwidth_variants.json");
for (k, _) in map.as_object().unwrap() {
set.insert(Box::leak(k.clone().into_boxed_str()));
}
set
});
pub(crate) fn is_fullwidth_variant(g: &str) -> bool {
VARIANT_SET.contains(g)
}