ruby-unicode-display-width

Determines the monospace display width of a string in Ruby
  https://github.com/janlelis/unicode-display_width
  0
  no reviews



When printed to the screen, the length of the string is usually equal to the number of cells it occupies. However, there are categories of characters that occupy 2 cells (full-wide), and others that occupy 0. This library provides functions similar to wcwidth() and wcswidth() known from C, to determine the monospace display width of a string.