www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17810] New: Add wcwidth/wcswidth equivalents to std.uni


          Issue ID: 17810
           Summary: Add wcwidth/wcswidth equivalents to std.uni
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: jrdemail2000-dlang yahoo.com

Enhancement request: Add the equivalents of the POSIX wcwidth/wcswidth
functions to std.uni.

These functions calculate the expected cell width of a wchar_t or wchar string.
This is the normal character width in fixed width fonts. It is useful in
command-line apps and other terminal displays where fixed width fonts are
commonly used. Generally, CJK characters are two cells wide, most other
characters are one cell wide. Cell width properties are part of the unicode

Sep 05 2017