diff options
author | Fabian Keßler <fabian_kessler@gmx.de> | 2024-05-01 00:08:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 15:08:38 -0700 |
commit | cd7a7a56fc73c73855036f77a4f69ea90c75c27a (patch) | |
tree | 198532b89e3bacd7eca2c9d6ad24349491c4e0ab /libc/docs | |
parent | 89f833588e573b6b9762bb4eca5b08a5d7bad9c5 (diff) | |
download | llvm-cd7a7a56fc73c73855036f77a4f69ea90c75c27a.zip llvm-cd7a7a56fc73c73855036f77a4f69ea90c75c27a.tar.gz llvm-cd7a7a56fc73c73855036f77a4f69ea90c75c27a.tar.bz2 |
Add basic char*_t support for libc (partial WG14 N2653) (#90360)
This PR implements a part of WG14 N2653:
- Define C23 char8_t
- Define C11 char16_t
- Define C11 char32_t
Missing goals are:
- The type of UTF-8 character literals is changed from unsigned char to
char8_t. (Since UTF-8 character literals already have type unsigned
char, this is not a semantic change).
- New mbrtoc8() and c8rtomb() functions declared in <uchar.h> enable
conversions between multibyte characters and UTF-8.
- A new ATOMIC_CHAR8_T_LOCK_FREE macro.
- A new atomic_char8_t typedef name.
Diffstat (limited to 'libc/docs')
-rw-r--r-- | libc/docs/c23.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/docs/c23.rst b/libc/docs/c23.rst index 44724fe..8ccfd46 100644 --- a/libc/docs/c23.rst +++ b/libc/docs/c23.rst @@ -158,4 +158,4 @@ Additions: * mbrtoc8 * c8rtomb - * char*_t + * char*_t |check| |