east_asian_width 1.0.0
Unicode library for getting East Asian Width property
To use this package, run the following command in your project's root directory:
						Manual usage
						
						Put the following dependency into your project's dependences section:
					
eastasianwidth
Unicode library for getting East Asian Width property
import eastasianwidth;
assert(displayWidth("あいうえお") == 10);
// '☆' is Ambiguous character
assert(displayWidth('☆') == 1);
assert(displayWidth('☆', AmbiguousCharWidth.wide) == 2);
assert(displayWidth("☆D言語くん☆") == 11);
assert(displayWidth("☆D言語くん☆", AmbiguousCharWidth.wide) == 13);
assert(eastAsianWidth('A') == EastAsianWidthProperty.F); // Fullwidth
assert(eastAsianWidth('ア') == EastAsianWidthProperty.H);  // Halfwidth
assert(eastAsianWidth('ア') == EastAsianWidthProperty.W); // Wide
assert(eastAsianWidth('A') == EastAsianWidthProperty.Na); // Narrow
assert(eastAsianWidth('☆') == EastAsianWidthProperty.A); // Ambiguous
assert(eastAsianWidth('À') == EastAsianWidthProperty.N);  // Neutral
- 1.0.0 released 8 years ago
 - jprekz/east_asian_width
 - BSL-1.0
 - Copyright © 2017, jprekz
 
- Authors:
 - Dependencies:
 - none
 - Versions:
 - 
						
Show all 3 versions1.1.0 2022-Sep-19 1.0.0 2017-Mar-25 ~master 2022-Sep-19  - Download Stats:
 - 
						
- 
								
27 downloads today
 - 
								
140 downloads this week
 - 
								
223 downloads this month
 - 
								
6756 downloads total
 
 - 
								
 - Score:
 - 2.3
 - Short URL:
 - east_asian_width.dub.pm