Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/utf_user.c

raw
1 #include <stdint.h>
2
3 static uint16_t utf16_string[] = {
4 0x73, 0x74, 0x61, 0x70, // "stap" (one-byte UTF-8 each)
5 0x7F, 0x80, // last one-byte, first two-byte
6 0x391, 0x3A9, // "ΑΩ" (two-byte UTF-8 each)
7 0x7FF, 0x800, // last two-byte, first three-byte
8 0x263A, // "☺" (three-byte UTF-8)
9 0xFFFF, 0xD800, 0xDC00, // last three-byte, first four-byte
10 0xD83D, 0xDE08, // U+1F608 "😈" (four-byte UTF-8)
11 0xDBFF, 0xDFFF, // last supported four-byte
12 0
13 };
14
15 static uint32_t utf32_string[] = {
16 0x73, 0x74, 0x61, 0x70, // "stap" (one-byte UTF-8 each)
17 0x7F, 0x80, // last one-byte, first two-byte
18 0x391, 0x3A9, // "ΑΩ" (two-byte UTF-8 each)
19 0x7FF, 0x800, // last two-byte, first three-byte
20 0x263A, // "☺" (three-byte UTF-8)
21 0xFFFF, 0x10000, // last three-byte, first four-byte
22 0x1F608, // "😈" (four-byte UTF-8)
23 0x10FFFF, // last supported four-byte
24 0
25 };
26
27 int main()
28 {
29 return 0;
30 }