2010-06-25 22:09:34 +00:00
|
|
|
/* utf8_entities.h
|
|
|
|
* Byte sequences for various UTF-8 entities
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2010-06-25 22:09:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __UTF8_ENTITIES_H__
|
|
|
|
#define __UTF8_ENTITIES_H__
|
|
|
|
|
2010-08-16 17:53:43 +00:00
|
|
|
/*
|
|
|
|
* Sequences can be found at
|
|
|
|
* http://www.fileformat.info/info/unicode/
|
|
|
|
* http://www.utf8-chartable.de/
|
|
|
|
* and other places
|
2016-05-06 17:25:02 +00:00
|
|
|
*
|
2016-11-15 18:30:31 +00:00
|
|
|
* Please be conservative when adding code points below. While many modern
|
|
|
|
* systems default to UTF-8 and handle it well, some do not. The Windows
|
|
|
|
* console is a notable example. As a general rule you probably shouldn't
|
|
|
|
* stray too far from code page 437 or WGL4:
|
2016-05-06 17:25:02 +00:00
|
|
|
* https://en.wikipedia.org/wiki/Code_page_437
|
|
|
|
* https://en.wikipedia.org/wiki/Windows_Glyph_List_4
|
2016-11-15 18:30:31 +00:00
|
|
|
*
|
|
|
|
* Hopefully we can dispense with the sequences below and simply encode our
|
|
|
|
* files as UTF 8 at some point. For example gcc has supported UTF 8 since
|
|
|
|
* at least 3.4. Visual C++ on the other hand is much more problematic.
|
|
|
|
* 2015 and later support /source-charset:utf-8, but prior versions appear
|
|
|
|
* to require a UTF 8 BOM.
|
2010-08-16 17:53:43 +00:00
|
|
|
*/
|
2010-06-25 22:09:34 +00:00
|
|
|
|
2015-10-16 23:24:32 +00:00
|
|
|
#define UTF8_DEGREE_SIGN "\xc2\xb0" /* 176 / 0xb0 */
|
2016-12-16 20:35:13 +00:00
|
|
|
#define UTF8_SUPERSCRIPT_TWO "\xc2\xb2" /* 178 / 0xb2 */
|
2016-02-14 18:06:51 +00:00
|
|
|
#define UTF8_MICRO_SIGN "\xc2\xb5" /* 181 / 0xb5 */
|
2015-02-02 17:01:29 +00:00
|
|
|
#define UTF8_MIDDLE_DOT "\xc2\xb7" /* 183 / 0xb7 */
|
2012-08-01 19:18:49 +00:00
|
|
|
|
2015-02-02 17:01:29 +00:00
|
|
|
#define UTF8_BULLET "\xe2\x80\xa2" /* 8226 / 0x2024 */
|
|
|
|
#define UTF8_EM_DASH "\xe2\x80\x94" /* 8212 / 0x2014 */
|
|
|
|
#define UTF8_HORIZONTAL_ELLIPSIS "\xe2\x80\xa6" /* 8230 / 0x2026 */
|
2016-02-14 18:06:51 +00:00
|
|
|
|
2015-02-02 17:01:29 +00:00
|
|
|
#define UTF8_LEFTWARDS_ARROW "\xe2\x86\x90" /* 8592 / 0x2190 */
|
|
|
|
#define UTF8_RIGHTWARDS_ARROW "\xe2\x86\x92" /* 8594 / 0x2192 */
|
|
|
|
#define UTF8_LEFT_RIGHT_ARROW "\xe2\x86\x94" /* 8596 / 0x2194 */
|
2010-06-25 22:09:34 +00:00
|
|
|
|
2017-04-05 19:15:27 +00:00
|
|
|
/* macOS command key */
|
2015-02-02 17:01:29 +00:00
|
|
|
#define UTF8_PLACE_OF_INTEREST_SIGN "\xe2\x8c\x98" /* 8984 / 0x2318 */
|
|
|
|
|
2016-02-14 22:01:09 +00:00
|
|
|
#define UTF8_SYMBOL_FOR_NULL "\xe2\x90\x80" /* 9216 / 0x2400 */
|
|
|
|
|
2015-02-02 17:01:29 +00:00
|
|
|
#define UTF8_CHECK_MARK "\xe2\x9c\x93" /* 10003 / 0x2713 */
|
|
|
|
#define UTF8_BALLOT_X "\xe2\x9c\x97" /* 10007 / 0x2717 */
|
2016-02-14 18:06:51 +00:00
|
|
|
#define UTF8_LONG_RIGHTWARDS_ARROW "\xe2\x9f\xb6" /* 10230 / 0x27f6 */
|
2015-10-04 17:10:29 +00:00
|
|
|
|
2016-05-09 20:35:36 +00:00
|
|
|
#define UTF8_ZERO_WIDTH_NO_BREAK_SPACE "\xef\xbb\xbf" /* 65279 / 0xffef */
|
|
|
|
#define UTF8_BOM UTF8_ZERO_WIDTH_NO_BREAK_SPACE
|
|
|
|
|
2010-06-25 22:09:34 +00:00
|
|
|
#endif /* __UTF8_ENTITIES_H__ */
|
2011-12-29 00:12:22 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|