1/*
2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#pragma once
27
28#include <unicode/utypes.h>
29
30namespace WTF {
31namespace Unicode {
32
33// Names here are taken from the Unicode standard.
34
35// Most of these are UChar constants, not UChar32, which makes them
36// more convenient for WebCore code that mostly uses UTF-16.
37
38const UChar = 0xF8FF;
39const UChar HiraganaLetterSmallA = 0x3041;
40const UChar32 aegeanWordSeparatorDot = 0x10101;
41const UChar32 aegeanWordSeparatorLine = 0x10100;
42const UChar apostrophe = 0x0027;
43const UChar blackCircle = 0x25CF;
44const UChar blackSquare = 0x25A0;
45const UChar blackUpPointingTriangle = 0x25B2;
46const UChar bullet = 0x2022;
47const UChar bullseye = 0x25CE;
48const UChar carriageReturn = 0x000D;
49const UChar combiningEnclosingKeycap = 0x20E3;
50const UChar ethiopicPrefaceColon = 0x1366;
51const UChar ethiopicWordspace = 0x1361;
52const UChar firstStrongIsolate = 0x2068;
53const UChar fisheye = 0x25C9;
54const UChar hebrewPunctuationGeresh = 0x05F3;
55const UChar hebrewPunctuationGershayim = 0x05F4;
56const UChar horizontalEllipsis = 0x2026;
57const UChar hyphen = 0x2010;
58const UChar hyphenMinus = 0x002D;
59const UChar ideographicComma = 0x3001;
60const UChar ideographicFullStop = 0x3002;
61const UChar ideographicSpace = 0x3000;
62const UChar leftDoubleQuotationMark = 0x201C;
63const UChar leftLowDoubleQuotationMark = 0x201E;
64const UChar leftSingleQuotationMark = 0x2018;
65const UChar leftLowSingleQuotationMark = 0x201A;
66const UChar leftToRightEmbed = 0x202A;
67const UChar leftToRightIsolate = 0x2066;
68const UChar leftToRightMark = 0x200E;
69const UChar leftToRightOverride = 0x202D;
70const UChar minusSign = 0x2212;
71const UChar narrowNoBreakSpace = 0x202F;
72const UChar narrowNonBreakingSpace = 0x202F;
73const UChar newlineCharacter = 0x000A;
74const UChar noBreakSpace = 0x00A0;
75const UChar objectReplacementCharacter = 0xFFFC;
76const UChar popDirectionalFormatting = 0x202C;
77const UChar popDirectionalIsolate = 0x2069;
78const UChar quotationMark = 0x0022;
79const UChar replacementCharacter = 0xFFFD;
80const UChar rightDoubleQuotationMark = 0x201D;
81const UChar rightSingleQuotationMark = 0x2019;
82const UChar rightToLeftEmbed = 0x202B;
83const UChar rightToLeftIsolate = 0x2067;
84const UChar rightToLeftMark = 0x200F;
85const UChar rightToLeftOverride = 0x202E;
86const UChar sesameDot = 0xFE45;
87const UChar smallLetterSharpS = 0x00DF;
88const UChar softHyphen = 0x00AD;
89const UChar space = 0x0020;
90const UChar tabCharacter = 0x0009;
91const UChar tibetanMarkDelimiterTshegBstar = 0x0F0C;
92const UChar tibetanMarkIntersyllabicTsheg = 0x0F0B;
93const UChar32 ugariticWordDivider = 0x1039F;
94const UChar whiteBullet = 0x25E6;
95const UChar whiteCircle = 0x25CB;
96const UChar whiteSesameDot = 0xFE46;
97const UChar whiteUpPointingTriangle = 0x25B3;
98const UChar wordJoiner = 0x2060;
99const UChar yenSign = 0x00A5;
100const UChar zeroWidthJoiner = 0x200D;
101const UChar zeroWidthNoBreakSpace = 0xFEFF;
102const UChar zeroWidthNonJoiner = 0x200C;
103const UChar zeroWidthSpace = 0x200B;
104
105} // namespace Unicode
106} // namespace WTF
107
108using WTF::Unicode::AppleLogo;
109using WTF::Unicode::HiraganaLetterSmallA;
110using WTF::Unicode::aegeanWordSeparatorDot;
111using WTF::Unicode::aegeanWordSeparatorLine;
112using WTF::Unicode::blackCircle;
113using WTF::Unicode::blackSquare;
114using WTF::Unicode::blackUpPointingTriangle;
115using WTF::Unicode::bullet;
116using WTF::Unicode::bullseye;
117using WTF::Unicode::carriageReturn;
118using WTF::Unicode::combiningEnclosingKeycap;
119using WTF::Unicode::ethiopicPrefaceColon;
120using WTF::Unicode::ethiopicWordspace;
121using WTF::Unicode::firstStrongIsolate;
122using WTF::Unicode::fisheye;
123using WTF::Unicode::hebrewPunctuationGeresh;
124using WTF::Unicode::hebrewPunctuationGershayim;
125using WTF::Unicode::horizontalEllipsis;
126using WTF::Unicode::hyphen;
127using WTF::Unicode::hyphenMinus;
128using WTF::Unicode::ideographicComma;
129using WTF::Unicode::ideographicFullStop;
130using WTF::Unicode::ideographicSpace;
131using WTF::Unicode::leftDoubleQuotationMark;
132using WTF::Unicode::leftLowDoubleQuotationMark;
133using WTF::Unicode::leftSingleQuotationMark;
134using WTF::Unicode::leftLowSingleQuotationMark;
135using WTF::Unicode::leftToRightEmbed;
136using WTF::Unicode::leftToRightIsolate;
137using WTF::Unicode::leftToRightMark;
138using WTF::Unicode::leftToRightOverride;
139using WTF::Unicode::minusSign;
140using WTF::Unicode::narrowNoBreakSpace;
141using WTF::Unicode::narrowNonBreakingSpace;
142using WTF::Unicode::newlineCharacter;
143using WTF::Unicode::noBreakSpace;
144using WTF::Unicode::objectReplacementCharacter;
145using WTF::Unicode::popDirectionalFormatting;
146using WTF::Unicode::popDirectionalIsolate;
147using WTF::Unicode::replacementCharacter;
148using WTF::Unicode::rightDoubleQuotationMark;
149using WTF::Unicode::rightSingleQuotationMark;
150using WTF::Unicode::rightToLeftEmbed;
151using WTF::Unicode::rightToLeftIsolate;
152using WTF::Unicode::rightToLeftMark;
153using WTF::Unicode::rightToLeftOverride;
154using WTF::Unicode::sesameDot;
155using WTF::Unicode::softHyphen;
156using WTF::Unicode::space;
157using WTF::Unicode::tabCharacter;
158using WTF::Unicode::tibetanMarkDelimiterTshegBstar;
159using WTF::Unicode::tibetanMarkIntersyllabicTsheg;
160using WTF::Unicode::ugariticWordDivider;
161using WTF::Unicode::whiteBullet;
162using WTF::Unicode::whiteCircle;
163using WTF::Unicode::whiteSesameDot;
164using WTF::Unicode::whiteUpPointingTriangle;
165using WTF::Unicode::wordJoiner;
166using WTF::Unicode::yenSign;
167using WTF::Unicode::zeroWidthJoiner;
168using WTF::Unicode::zeroWidthNoBreakSpace;
169using WTF::Unicode::zeroWidthNonJoiner;
170using WTF::Unicode::zeroWidthSpace;
171