blob: d78e4b241011325ffaad98b4eaa2eefcb4c58743 (
plain)
1
2
3
4
5
|
Determines the monospace display width of a string in Ruby.
Implementation based on EastAsianWidth.txt and other data, 100% in
Ruby. Other than wcwidth(), which fulfills a similar purpose, it
does not rely on the OS vendor to provide an up-to-date method for
measuring string width.
|