History log of /haiku/headers/posix/uchar.h
Revision Date Author Comments
# 0f67b2ac 07-Apr-2023 Augustin Cavalier <waddlesplash@gmail.com>

uchar.h: Add missing include of stdint.h.

Fixes #17040.


# 9304fbae 09-May-2020 Augustin Cavalier <waddlesplash@gmail.com>

uchar.h: Remove duplicate definition of mbrtoc32.


# 22337d8f 09-May-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

uchar.h: char16_t must be uint_least16_t

We attempted to make it a 32bit char type, but that is actually not allowed
unless we also make uint_least16_t a 32bit type. And even then, we
wouldn't be allowed to store or handle values wider than 16bit.

Comply more closely to the standard. As a result, mbtoc16r is not
implemented. c16rtomb is implemented by casting the char to 32bit, which
isn't really correct either (I think you're supposed to be able to feed
the two halves of a > 16bit codepoint in two separate calls and get a
meaningful result out?)

Related to #15990 but we may want an actual implementation?

Change-Id: If8198675c27dd2aa412bc44d12d3df4e31d3e8c7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2623
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# cedb0e11 12-Jan-2018 Leorize <alaviss@users.noreply.github.com>

uchar: Introduce C11 uchar.h

Currently this implementation only supports UTF-32