Skip to content

Commit 33b9e6f

Browse files
Add richer printing
1 parent af243d4 commit 33b9e6f

File tree

1 file changed

+9
-1
lines changed
  • src/tools/unicode-table-generator/src

1 file changed

+9
-1
lines changed

src/tools/unicode-table-generator/src/main.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,15 @@ fn main() {
171171
emit_codepoints(&mut emitter, &ranges);
172172

173173
modules.push((property.to_lowercase().to_string(), emitter.file));
174-
println!("{:15}: {} bytes, {} codepoints", property, emitter.bytes_used, datapoints,);
174+
println!(
175+
"{:15}: {} bytes, {} codepoints in {} ranges ({} - {})",
176+
property,
177+
emitter.bytes_used,
178+
datapoints,
179+
ranges.len(),
180+
ranges.first().unwrap().start,
181+
ranges.last().unwrap().end
182+
);
175183
total_bytes += emitter.bytes_used;
176184
}
177185

0 commit comments

Comments
 (0)