dump_widths/dump_widths.rs
1//! Dev tool: print `cp<TAB>width` for every code point, for cross-checking
2//! against another implementation. Not part of the library.
3fn main() {
4 let mut out = String::new();
5 for cp in 0u32..=0x10FFFF {
6 if let Some(c) = char::from_u32(cp) {
7 out.push_str(&format!("{cp}\t{}\n", cellwidth::char_width(c)));
8 }
9 }
10 print!("{out}");
11}