This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is an implementation of wcwidth() and wcswidth() (defined in | |
* IEEE Std 1002.1-2001) for Unicode. | |
* | |
* http://www.opengroup.org/onlinepubs/007904975/functions/wcwidth.html | |
* http://www.opengroup.org/onlinepubs/007904975/functions/wcswidth.html | |
* | |
* In fixed-width output devices, Latin characters all occupy a single | |
* "cell" position of equal width, whereas ideographic CJK characters | |
* occupy two such cells. Interoperability between terminal-line |