Registry / utility / unicode-display-width

unicode-display-width

JSON →
library3.2.0rbrubygemsunverified

Determines the monospace display width of a string using EastAsianWidth.txt, Unicode general category, Emoji specification, and other data.

gem install unicode-display_width
INSTALL
IMPORT
SIG · UNICODE-DISPLAY-WI
U
unicode-display-width
utilityrubyv3.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Unicode::DisplayWidth
require 'unicode/display_width'

Get display width of a Unicode string

require 'unicode/display_width' Unicode::DisplayWidth.of('你好') # => 4
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
unicode-display-width — gem install unicode-display-width · libregistry