Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
utf8_entities.h
Go to the documentation of this file.
1
13#ifndef __UTF8_ENTITIES_H__
14#define __UTF8_ENTITIES_H__
15
16/*
17 * Common UTF-8 sequences.
18 * Although we've supported UTF-8 encoded source files since April 2019 /
19 * bd75f5af0a, it can be useful to explictly encode some code points in
20 * order to ensure that we use them consistently.
21 *
22 * Sequences can be found at
23 * http://www.fileformat.info/info/unicode/
24 * http://www.utf8-chartable.de/
25 * and other places
26 *
27 * Please be conservative when adding code points below. While many modern
28 * systems default to UTF-8 and handle it well, some do not. The Windows
29 * console is a notable example. As a general rule you probably shouldn't
30 * stray too far from code page 437 or WGL4:
31 * https://en.wikipedia.org/wiki/Code_page_437
32 * https://en.wikipedia.org/wiki/Windows_Glyph_List_4
33 */
34
35#define UTF8_DEGREE_SIGN "\u00b0" /* 176 / 0xb0 */
36#define UTF8_SUPERSCRIPT_TWO "\u00b2" /* 178 / 0xb2 */
37#define UTF8_MICRO_SIGN "\u00b5" /* 181 / 0xb5 */
38#define UTF8_MIDDLE_DOT "\u00b7" /* 183 / 0xb7 */
39#define UTF8_RIGHT_POINTING_DOUBLE_ANGLE_QUOTATION_MARK "\u00bb" /* 187 / 0xbb */
40
41#define UTF8_CAPITAL_DELTA "\u0394" /* 916 / 0x394 */
42#define UTF8_CAPITAL_OMEGA "\u03a9" /* 937 / 0x3a9 */
43#define UTF8_DELTA "\u03b4" /* 948 / 0x3b4 */
44#define UTF8_OMEGA "\u03c9" /* 969 / 0x3c9 */
45
46#define UTF8_BULLET "\u2024" /* 8226 / 0x2024 */
47#define UTF8_EM_DASH "\u2014" /* 8212 / 0x2014 */
48#define UTF8_HORIZONTAL_ELLIPSIS "\u2026" /* 8230 / 0x2026 */
49
50#define UTF8_SUBSCRIPT_ZERO "\u2080" /* 8320 / 0x2080 */
51
52#define UTF8_LEFTWARDS_ARROW "\u2190" /* 8592 / 0x2190 */
53#define UTF8_RIGHTWARDS_ARROW "\u2192" /* 8594 / 0x2192 */
54#define UTF8_LEFT_RIGHT_ARROW "\u2194" /* 8596 / 0x2194 */
55
56#define UTF8_SQUARE_ROOT "\u221a" /* 8730 / 0x221a */
57
58/* macOS command key */
59#define UTF8_PLACE_OF_INTEREST_SIGN "\u2318" /* 8984 / 0x2318 */
60
61#define UTF8_SYMBOL_FOR_NULL "\u2400" /* 9216 / 0x2400 */
62
63#define UTF8_CHECK_MARK "\u2713" /* 10003 / 0x2713 */
64#define UTF8_BALLOT_X "\u2717" /* 10007 / 0x2717 */
65#define UTF8_LONG_RIGHTWARDS_ARROW "\u27f6" /* 10230 / 0x27f6 */
66
67#define UTF8_ZERO_WIDTH_NO_BREAK_SPACE "\ufeff" /* 65279 / 0xfeff */
68#define UTF8_BOM UTF8_ZERO_WIDTH_NO_BREAK_SPACE
69
70#endif /* __UTF8_ENTITIES_H__ */
71
72/*
73 * Editor modelines
74 *
75 * Local Variables:
76 * c-basic-offset: 4
77 * tab-width: 8
78 * indent-tabs-mode: nil
79 * End:
80 *
81 * ex: set shiftwidth=4 tabstop=8 expandtab
82 * :indentSize=4:tabSize=8:noTabs=true:
83 */