2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
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.
13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, 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 COMPUTER, 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.
26 #ifndef CharacterNames_h
27 #define CharacterNames_h
29 #include "wtf/text/Unicode.h"
34 // Names here are taken from the Unicode standard.
36 // Most of these are UChar constants, not UChar32, which makes them
37 // more convenient for WebCore code that mostly uses UTF-16.
39 const UChar activateArabicFormShapingCharacter
= 0x206D;
40 const UChar activateSymmetricSwappingCharacter
= 0x206B;
41 const UChar32 aegeanWordSeparatorLineCharacter
= 0x10100;
42 const UChar32 aegeanWordSeparatorDotCharacter
= 0x10101;
43 const UChar arabicLetterMarkCharacter
= 0x061C;
44 const UChar blackCircleCharacter
= 0x25CF;
45 const UChar blackSquareCharacter
= 0x25A0;
46 const UChar blackUpPointingTriangleCharacter
= 0x25B2;
47 const UChar bulletCharacter
= 0x2022;
48 const UChar bullseyeCharacter
= 0x25CE;
49 const UChar carriageReturnCharacter
= 0x000D;
50 const UChar tabulationCharacter
= 0x0009;
51 const UChar ethiopicPrefaceColonCharacter
= 0x1366;
52 const UChar ethiopicWordspaceCharacter
= 0x1361;
53 const UChar firstStrongIsolateCharacter
= 0x2068;
54 const UChar fisheyeCharacter
= 0x25C9;
55 const UChar fullstopCharacter
= 0x002E;
56 const UChar hebrewPunctuationGereshCharacter
= 0x05F3;
57 const UChar hebrewPunctuationGershayimCharacter
= 0x05F4;
58 const UChar hiraganaLetterSmallACharacter
= 0x3041;
59 const UChar horizontalEllipsisCharacter
= 0x2026;
60 const UChar hyphenCharacter
= 0x2010;
61 const UChar hyphenMinusCharacter
= 0x002D;
62 const UChar ideographicCommaCharacter
= 0x3001;
63 const UChar ideographicFullStopCharacter
= 0x3002;
64 #if defined(USING_SYSTEM_ICU)
65 const UChar ideographicSpaceCharacter
= 0x3000;
67 const UChar inhibitArabicFormShapingCharacter
= 0x206C;
68 const UChar inhibitSymmetricSwappingCharacter
= 0x206A;
69 const UChar latinCapitalLetterIWithDotAbove
= 0x0130;
70 const UChar latinSmallLetterDotlessI
= 0x0131;
71 const UChar leftDoubleQuotationMarkCharacter
= 0x201C;
72 const UChar leftSingleQuotationMarkCharacter
= 0x2018;
73 const UChar leftToRightEmbedCharacter
= 0x202A;
74 const UChar leftToRightIsolateCharacter
= 0x2066;
75 const UChar leftToRightMarkCharacter
= 0x200E;
76 const UChar leftToRightOverrideCharacter
= 0x202D;
77 const UChar lineSeparator
= 0x2028;
78 const UChar minusSignCharacter
= 0x2212;
79 const UChar newlineCharacter
= 0x000A;
80 const UChar nationalDigitShapesCharacter
= 0x206E;
81 const UChar nominalDigitShapesCharacter
= 0x206F;
82 const UChar noBreakSpaceCharacter
= 0x00A0;
83 const UChar objectReplacementCharacter
= 0xFFFC;
84 const UChar paragraphSeparator
= 0x2029;
85 const UChar popDirectionalFormattingCharacter
= 0x202C;
86 const UChar popDirectionalIsolateCharacter
= 0x2069;
87 const UChar replacementCharacter
= 0xFFFD;
88 const UChar rightDoubleQuotationMarkCharacter
= 0x201D;
89 const UChar rightSingleQuotationMarkCharacter
= 0x2019;
90 const UChar rightToLeftEmbedCharacter
= 0x202B;
91 const UChar rightToLeftIsolateCharacter
= 0x2067;
92 const UChar rightToLeftMarkCharacter
= 0x200F;
93 const UChar rightToLeftOverrideCharacter
= 0x202E;
94 const UChar sesameDotCharacter
= 0xFE45;
95 const UChar smallLetterSharpSCharacter
= 0x00DF;
96 const UChar softHyphenCharacter
= 0x00AD;
97 const UChar spaceCharacter
= 0x0020;
98 const UChar tibetanMarkIntersyllabicTshegCharacter
= 0x0F0B;
99 const UChar tibetanMarkDelimiterTshegBstarCharacter
= 0x0F0C;
100 const UChar32 ugariticWordDividerCharacter
= 0x1039F;
101 const UChar whiteBulletCharacter
= 0x25E6;
102 const UChar whiteCircleCharacter
= 0x25CB;
103 const UChar whiteSesameDotCharacter
= 0xFE46;
104 const UChar whiteUpPointingTriangleCharacter
= 0x25B3;
105 const UChar yenSignCharacter
= 0x00A5;
106 const UChar zeroWidthJoinerCharacter
= 0x200D;
107 const UChar zeroWidthNonJoinerCharacter
= 0x200C;
108 const UChar zeroWidthSpaceCharacter
= 0x200B;
109 const UChar zeroWidthNoBreakSpaceCharacter
= 0xFEFF;
111 } // namespace Unicode
114 using WTF::Unicode::aegeanWordSeparatorLineCharacter
;
115 using WTF::Unicode::aegeanWordSeparatorDotCharacter
;
116 using WTF::Unicode::activateArabicFormShapingCharacter
;
117 using WTF::Unicode::activateSymmetricSwappingCharacter
;
118 using WTF::Unicode::arabicLetterMarkCharacter
;
119 using WTF::Unicode::blackCircleCharacter
;
120 using WTF::Unicode::blackSquareCharacter
;
121 using WTF::Unicode::blackUpPointingTriangleCharacter
;
122 using WTF::Unicode::bulletCharacter
;
123 using WTF::Unicode::bullseyeCharacter
;
124 using WTF::Unicode::carriageReturnCharacter
;
125 using WTF::Unicode::tabulationCharacter
;
126 using WTF::Unicode::ethiopicPrefaceColonCharacter
;
127 using WTF::Unicode::ethiopicWordspaceCharacter
;
128 using WTF::Unicode::firstStrongIsolateCharacter
;
129 using WTF::Unicode::fisheyeCharacter
;
130 using WTF::Unicode::fullstopCharacter
;
131 using WTF::Unicode::hebrewPunctuationGereshCharacter
;
132 using WTF::Unicode::hebrewPunctuationGershayimCharacter
;
133 using WTF::Unicode::hiraganaLetterSmallACharacter
;
134 using WTF::Unicode::horizontalEllipsisCharacter
;
135 using WTF::Unicode::hyphenCharacter
;
136 using WTF::Unicode::hyphenMinusCharacter
;
137 using WTF::Unicode::ideographicCommaCharacter
;
138 using WTF::Unicode::ideographicFullStopCharacter
;
139 #if defined(USING_SYSTEM_ICU)
140 using WTF::Unicode::ideographicSpaceCharacter
;
142 using WTF::Unicode::inhibitArabicFormShapingCharacter
;
143 using WTF::Unicode::inhibitSymmetricSwappingCharacter
;
144 using WTF::Unicode::latinCapitalLetterIWithDotAbove
;
145 using WTF::Unicode::latinSmallLetterDotlessI
;
146 using WTF::Unicode::leftDoubleQuotationMarkCharacter
;
147 using WTF::Unicode::leftSingleQuotationMarkCharacter
;
148 using WTF::Unicode::leftToRightEmbedCharacter
;
149 using WTF::Unicode::leftToRightIsolateCharacter
;
150 using WTF::Unicode::leftToRightMarkCharacter
;
151 using WTF::Unicode::leftToRightOverrideCharacter
;
152 using WTF::Unicode::lineSeparator
;
153 using WTF::Unicode::minusSignCharacter
;
154 using WTF::Unicode::newlineCharacter
;
155 using WTF::Unicode::nationalDigitShapesCharacter
;
156 using WTF::Unicode::nominalDigitShapesCharacter
;
157 using WTF::Unicode::noBreakSpaceCharacter
;
158 using WTF::Unicode::objectReplacementCharacter
;
159 using WTF::Unicode::paragraphSeparator
;
160 using WTF::Unicode::popDirectionalFormattingCharacter
;
161 using WTF::Unicode::popDirectionalIsolateCharacter
;
162 using WTF::Unicode::replacementCharacter
;
163 using WTF::Unicode::rightDoubleQuotationMarkCharacter
;
164 using WTF::Unicode::rightSingleQuotationMarkCharacter
;
165 using WTF::Unicode::rightToLeftEmbedCharacter
;
166 using WTF::Unicode::rightToLeftIsolateCharacter
;
167 using WTF::Unicode::rightToLeftMarkCharacter
;
168 using WTF::Unicode::rightToLeftOverrideCharacter
;
169 using WTF::Unicode::sesameDotCharacter
;
170 using WTF::Unicode::smallLetterSharpSCharacter
;
171 using WTF::Unicode::softHyphenCharacter
;
172 using WTF::Unicode::spaceCharacter
;
173 using WTF::Unicode::tibetanMarkIntersyllabicTshegCharacter
;
174 using WTF::Unicode::tibetanMarkDelimiterTshegBstarCharacter
;
175 using WTF::Unicode::ugariticWordDividerCharacter
;
176 using WTF::Unicode::whiteBulletCharacter
;
177 using WTF::Unicode::whiteCircleCharacter
;
178 using WTF::Unicode::whiteSesameDotCharacter
;
179 using WTF::Unicode::whiteUpPointingTriangleCharacter
;
180 using WTF::Unicode::yenSignCharacter
;
181 using WTF::Unicode::zeroWidthJoinerCharacter
;
182 using WTF::Unicode::zeroWidthNonJoinerCharacter
;
183 using WTF::Unicode::zeroWidthSpaceCharacter
;
184 using WTF::Unicode::zeroWidthNoBreakSpaceCharacter
;
186 #endif // CharacterNames_h