Cell.width

The display width of the contents of the cell, which will be 1 (typical western characters, as well as ambiguous characters), 2 (typical CJK characters), or in some cases 0 (empty content, control characters, zero-width whitespace). Note that cells immediately following a cell with a wide character will themselves generally have no content (as their screen display real-estate is consumed by the wide character.)

This relies on the accuracy of the content in the imported east_asian_width package and the terminal/font combination (and for some characters it may even be sensitive to which Unicode edition is being supported). Therefore the results may not be perfectly correct for a given platform or font or context.

struct Cell
@property const nothrow pure @safe
ubyte
width
()

Meta