tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: icu wants c++11

On Sun, Apr 23, 2017 at 05:55:10PM +0200, Thomas Klausner wrote:
> Any suggestions?

ICU4C used to use the UChar typedef throughout. It is an unsigned 16-bit
integer type.

The UChar typedef was compile-time-configurable, and its default
definition depended on the platform. For example, it was usually defined
to be uint16_t on Linux and macOS X, but wchar_t=WCHAR on Windows (for
ease of use with Windows APIs and libraries).

In other words, portable code could not rely on a fixed definition of

ICU4C library and C++ test code now always uses UChar=char16_t.

For callers of ICU, UChar is now a typedef for char16_t by default on
all platforms, but it continues to be compile-time-configurable.

Home | Main Index | Thread Index | Old Index