[Issue 17810] New: Add wcwidth/wcswidth equivalents to std.uni

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Sep 6 05:15:14 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17810

          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 at puremagic.com
          Reporter: jrdemail2000-dlang at 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
standard.

--


More information about the Digitalmars-d-bugs mailing list