From 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 22:58:58 -0500 Subject: removing all downloaded devdocs files --- devdocs/c/string%2Fmultibyte%2Fchar8_t.html | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 devdocs/c/string%2Fmultibyte%2Fchar8_t.html (limited to 'devdocs/c/string%2Fmultibyte%2Fchar8_t.html') diff --git a/devdocs/c/string%2Fmultibyte%2Fchar8_t.html b/devdocs/c/string%2Fmultibyte%2Fchar8_t.html deleted file mode 100644 index 56ae4d71..00000000 --- a/devdocs/c/string%2Fmultibyte%2Fchar8_t.html +++ /dev/null @@ -1,24 +0,0 @@ -

char8_t

Defined in header <uchar.h>
typedef unsigned char char8_t;
-
(since C23)

char8_t is an unsigned integer type used for UTF-8 and is the same type as unsigned char.

-

Example

#include <uchar.h>
-#include <stdio.h>
- 
-int main(void)
-{
-    char8_t str[] = u8"zß水🍌"; // or "z\u00df\u6c34\U0001f34c"
-    size_t str_sz = sizeof str; // sizeof *str == 1 by definition
-    printf("%zu UTF-8 code units: [ ", str_sz);
-    for (size_t n = 0; n < str_sz; ++n)
-        printf("%02X ", str[n]);
-    printf("]\n");
-}

Possible output:

-
11 UTF-8 code units: [ 7A C3 9F E6 B0 B4 F0 9F 8D 8C 00 ]

References

See also

-
C++ documentation for Fundamental types
-

- © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
- https://en.cppreference.com/w/c/string/multibyte/char8_t -

-
-- cgit v1.2.3