[PATCH] Implemented llvm::sys::locale::columnWidth and isPrint for the case of generic UTF8-capable terminal.

Alexander Kornienko alexfh at google.com
Wed Jul 31 16:24:32 PDT 2013


Hi jordan_rose, gribozavr,

This is a second attempt to get this right. After reading the Unicode
Standard I came up with the code that uses definitions of "printable" and
"column width" more suitable for terminal output (i.e. fixed-width fonts and
special treatment of many control characters).
The implementation here can probably be used for Windows and MacOS if someone
can test it properly.
The patch addresses PR14910.

http://llvm-reviews.chandlerc.com/D1253

Files:
  include/llvm/Support/UnicodeCharRanges.h
  lib/Support/LocaleGeneric.inc
  unittests/Support/CMakeLists.txt
  unittests/Support/LocaleTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1253.1.patch
Type: text/x-patch
Size: 16810 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130731/c8a9cc5e/attachment.bin>


More information about the llvm-commits mailing list