| OLD | NEW |
| 1 /* | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved. | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 * | 3 // found in the LICENSE file. |
| 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 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. | |
| 24 */ | |
| 25 | 4 |
| 26 #ifndef CharacterNames_h | 5 #include "platform/wtf/text/CharacterNames.h" |
| 27 #define CharacterNames_h | |
| 28 | 6 |
| 29 #include "wtf/text/Unicode.h" | 7 // The contents of this header was moved to platform/wtf as part of |
| 30 | 8 // WTF migration project. See the following post for details: |
| 31 namespace WTF { | 9 // https://groups.google.com/a/chromium.org/d/msg/blink-dev/tLdAZCTlcAA/bYXVT8gY
CAAJ |
| 32 namespace Unicode { | |
| 33 | |
| 34 // Names here are taken from the Unicode standard. | |
| 35 | |
| 36 // Most of these are UChar constants, not UChar32, which makes them | |
| 37 // more convenient for WebCore code that mostly uses UTF-16. | |
| 38 | |
| 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 combiningEnclosingCircleBackslashCharacter = 0x20E0; | |
| 51 const UChar combiningEnclosingKeycapCharacter = 0x20E3; | |
| 52 const UChar deleteCharacter = 0x007F; | |
| 53 const UChar ethiopicPrefaceColonCharacter = 0x1366; | |
| 54 const UChar ethiopicWordspaceCharacter = 0x1361; | |
| 55 const UChar heavyBlackHeartCharacter = 0x2764; | |
| 56 const UChar32 eyeCharacter = 0x1F441; | |
| 57 const UChar32 boyCharacter = 0x1F466; | |
| 58 const UChar32 girlCharacter = 0x1F467; | |
| 59 const UChar32 manCharacter = 0x1F468; | |
| 60 const UChar32 womanCharacter = 0x1F469; | |
| 61 const UChar32 kissMarkCharacter = 0x1F48B; | |
| 62 const UChar32 familyCharacter = 0x1F46A; | |
| 63 const UChar femaleSignCharacter = 0x2640; | |
| 64 const UChar firstStrongIsolateCharacter = 0x2068; | |
| 65 const UChar fisheyeCharacter = 0x25C9; | |
| 66 const UChar fullstopCharacter = 0x002E; | |
| 67 const UChar hebrewPunctuationGereshCharacter = 0x05F3; | |
| 68 const UChar hebrewPunctuationGershayimCharacter = 0x05F4; | |
| 69 const UChar hiraganaLetterSmallACharacter = 0x3041; | |
| 70 const UChar horizontalEllipsisCharacter = 0x2026; | |
| 71 const UChar hyphenCharacter = 0x2010; | |
| 72 const UChar hyphenMinusCharacter = 0x002D; | |
| 73 const UChar ideographicCommaCharacter = 0x3001; | |
| 74 const UChar ideographicFullStopCharacter = 0x3002; | |
| 75 #if defined(USING_SYSTEM_ICU) | |
| 76 const UChar ideographicSpaceCharacter = 0x3000; | |
| 77 #endif | |
| 78 const UChar inhibitArabicFormShapingCharacter = 0x206C; | |
| 79 const UChar inhibitSymmetricSwappingCharacter = 0x206A; | |
| 80 const UChar latinCapitalLetterIWithDotAbove = 0x0130; | |
| 81 const UChar latinSmallLetterDotlessI = 0x0131; | |
| 82 const UChar leftDoubleQuotationMarkCharacter = 0x201C; | |
| 83 const UChar leftSingleQuotationMarkCharacter = 0x2018; | |
| 84 const UChar32 leftSpeechBubbleCharacter = 0x1F5E8; | |
| 85 const UChar leftToRightEmbedCharacter = 0x202A; | |
| 86 const UChar leftToRightIsolateCharacter = 0x2066; | |
| 87 const UChar leftToRightMarkCharacter = 0x200E; | |
| 88 const UChar leftToRightOverrideCharacter = 0x202D; | |
| 89 const UChar lineSeparator = 0x2028; | |
| 90 const UChar lineTabulationCharacter = 0x000B; | |
| 91 const UChar lowLineCharacter = 0x005F; | |
| 92 const UChar maleSignCharacter = 0x2642; | |
| 93 const UChar minusSignCharacter = 0x2212; | |
| 94 const UChar newlineCharacter = 0x000A; | |
| 95 const UChar formFeedCharacter = 0x000C; | |
| 96 const UChar nationalDigitShapesCharacter = 0x206E; | |
| 97 const UChar nominalDigitShapesCharacter = 0x206F; | |
| 98 const UChar noBreakSpaceCharacter = 0x00A0; | |
| 99 const UChar objectReplacementCharacter = 0xFFFC; | |
| 100 const UChar paragraphSeparator = 0x2029; | |
| 101 const UChar popDirectionalFormattingCharacter = 0x202C; | |
| 102 const UChar popDirectionalIsolateCharacter = 0x2069; | |
| 103 const UChar32 rainbowCharacter = 0x1F308; | |
| 104 const UChar replacementCharacter = 0xFFFD; | |
| 105 const UChar rightDoubleQuotationMarkCharacter = 0x201D; | |
| 106 const UChar rightSingleQuotationMarkCharacter = 0x2019; | |
| 107 const UChar rightToLeftEmbedCharacter = 0x202B; | |
| 108 const UChar rightToLeftIsolateCharacter = 0x2067; | |
| 109 const UChar rightToLeftMarkCharacter = 0x200F; | |
| 110 const UChar rightToLeftOverrideCharacter = 0x202E; | |
| 111 const UChar sesameDotCharacter = 0xFE45; | |
| 112 const UChar smallLetterSharpSCharacter = 0x00DF; | |
| 113 const UChar softHyphenCharacter = 0x00AD; | |
| 114 const UChar spaceCharacter = 0x0020; | |
| 115 const UChar staffOfAesculapiusCharacter = 0x2695; | |
| 116 const UChar tabulationCharacter = 0x0009; | |
| 117 const UChar tibetanMarkIntersyllabicTshegCharacter = 0x0F0B; | |
| 118 const UChar tibetanMarkDelimiterTshegBstarCharacter = 0x0F0C; | |
| 119 const UChar32 ugariticWordDividerCharacter = 0x1039F; | |
| 120 const UChar variationSelector15Character = 0xFE0E; | |
| 121 const UChar variationSelector16Character = 0xFE0F; | |
| 122 const UChar32 wavingWhiteFlagCharacter = 0x1F3F3; | |
| 123 const UChar whiteBulletCharacter = 0x25E6; | |
| 124 const UChar whiteCircleCharacter = 0x25CB; | |
| 125 const UChar whiteSesameDotCharacter = 0xFE46; | |
| 126 const UChar whiteUpPointingTriangleCharacter = 0x25B3; | |
| 127 const UChar yenSignCharacter = 0x00A5; | |
| 128 const UChar zeroWidthJoinerCharacter = 0x200D; | |
| 129 const UChar zeroWidthNonJoinerCharacter = 0x200C; | |
| 130 const UChar zeroWidthSpaceCharacter = 0x200B; | |
| 131 const UChar zeroWidthNoBreakSpaceCharacter = 0xFEFF; | |
| 132 const UChar32 kMaxCodepoint = 0x10ffff; | |
| 133 | |
| 134 } // namespace Unicode | |
| 135 } // namespace WTF | |
| 136 | |
| 137 using WTF::Unicode::aegeanWordSeparatorLineCharacter; | |
| 138 using WTF::Unicode::aegeanWordSeparatorDotCharacter; | |
| 139 using WTF::Unicode::activateArabicFormShapingCharacter; | |
| 140 using WTF::Unicode::activateSymmetricSwappingCharacter; | |
| 141 using WTF::Unicode::arabicLetterMarkCharacter; | |
| 142 using WTF::Unicode::blackCircleCharacter; | |
| 143 using WTF::Unicode::blackSquareCharacter; | |
| 144 using WTF::Unicode::blackUpPointingTriangleCharacter; | |
| 145 using WTF::Unicode::bulletCharacter; | |
| 146 using WTF::Unicode::bullseyeCharacter; | |
| 147 using WTF::Unicode::carriageReturnCharacter; | |
| 148 using WTF::Unicode::combiningEnclosingKeycapCharacter; | |
| 149 using WTF::Unicode::combiningEnclosingCircleBackslashCharacter; | |
| 150 using WTF::Unicode::ethiopicPrefaceColonCharacter; | |
| 151 using WTF::Unicode::ethiopicWordspaceCharacter; | |
| 152 using WTF::Unicode::eyeCharacter; | |
| 153 using WTF::Unicode::familyCharacter; | |
| 154 using WTF::Unicode::femaleSignCharacter; | |
| 155 using WTF::Unicode::firstStrongIsolateCharacter; | |
| 156 using WTF::Unicode::fisheyeCharacter; | |
| 157 using WTF::Unicode::formFeedCharacter; | |
| 158 using WTF::Unicode::fullstopCharacter; | |
| 159 using WTF::Unicode::hebrewPunctuationGereshCharacter; | |
| 160 using WTF::Unicode::hebrewPunctuationGershayimCharacter; | |
| 161 using WTF::Unicode::hiraganaLetterSmallACharacter; | |
| 162 using WTF::Unicode::horizontalEllipsisCharacter; | |
| 163 using WTF::Unicode::hyphenCharacter; | |
| 164 using WTF::Unicode::hyphenMinusCharacter; | |
| 165 using WTF::Unicode::ideographicCommaCharacter; | |
| 166 using WTF::Unicode::ideographicFullStopCharacter; | |
| 167 #if defined(USING_SYSTEM_ICU) | |
| 168 using WTF::Unicode::ideographicSpaceCharacter; | |
| 169 #endif | |
| 170 using WTF::Unicode::inhibitArabicFormShapingCharacter; | |
| 171 using WTF::Unicode::inhibitSymmetricSwappingCharacter; | |
| 172 using WTF::Unicode::latinCapitalLetterIWithDotAbove; | |
| 173 using WTF::Unicode::latinSmallLetterDotlessI; | |
| 174 using WTF::Unicode::leftDoubleQuotationMarkCharacter; | |
| 175 using WTF::Unicode::leftSingleQuotationMarkCharacter; | |
| 176 using WTF::Unicode::leftSpeechBubbleCharacter; | |
| 177 using WTF::Unicode::leftToRightEmbedCharacter; | |
| 178 using WTF::Unicode::leftToRightIsolateCharacter; | |
| 179 using WTF::Unicode::leftToRightMarkCharacter; | |
| 180 using WTF::Unicode::leftToRightOverrideCharacter; | |
| 181 using WTF::Unicode::lineSeparator; | |
| 182 using WTF::Unicode::lowLineCharacter; | |
| 183 using WTF::Unicode::maleSignCharacter; | |
| 184 using WTF::Unicode::minusSignCharacter; | |
| 185 using WTF::Unicode::newlineCharacter; | |
| 186 using WTF::Unicode::nationalDigitShapesCharacter; | |
| 187 using WTF::Unicode::nominalDigitShapesCharacter; | |
| 188 using WTF::Unicode::noBreakSpaceCharacter; | |
| 189 using WTF::Unicode::objectReplacementCharacter; | |
| 190 using WTF::Unicode::paragraphSeparator; | |
| 191 using WTF::Unicode::popDirectionalFormattingCharacter; | |
| 192 using WTF::Unicode::popDirectionalIsolateCharacter; | |
| 193 using WTF::Unicode::rainbowCharacter; | |
| 194 using WTF::Unicode::replacementCharacter; | |
| 195 using WTF::Unicode::rightDoubleQuotationMarkCharacter; | |
| 196 using WTF::Unicode::rightSingleQuotationMarkCharacter; | |
| 197 using WTF::Unicode::rightToLeftEmbedCharacter; | |
| 198 using WTF::Unicode::rightToLeftIsolateCharacter; | |
| 199 using WTF::Unicode::rightToLeftMarkCharacter; | |
| 200 using WTF::Unicode::rightToLeftOverrideCharacter; | |
| 201 using WTF::Unicode::sesameDotCharacter; | |
| 202 using WTF::Unicode::smallLetterSharpSCharacter; | |
| 203 using WTF::Unicode::softHyphenCharacter; | |
| 204 using WTF::Unicode::spaceCharacter; | |
| 205 using WTF::Unicode::staffOfAesculapiusCharacter; | |
| 206 using WTF::Unicode::tabulationCharacter; | |
| 207 using WTF::Unicode::tibetanMarkIntersyllabicTshegCharacter; | |
| 208 using WTF::Unicode::tibetanMarkDelimiterTshegBstarCharacter; | |
| 209 using WTF::Unicode::ugariticWordDividerCharacter; | |
| 210 using WTF::Unicode::variationSelector15Character; | |
| 211 using WTF::Unicode::variationSelector16Character; | |
| 212 using WTF::Unicode::wavingWhiteFlagCharacter; | |
| 213 using WTF::Unicode::whiteBulletCharacter; | |
| 214 using WTF::Unicode::whiteCircleCharacter; | |
| 215 using WTF::Unicode::whiteSesameDotCharacter; | |
| 216 using WTF::Unicode::whiteUpPointingTriangleCharacter; | |
| 217 using WTF::Unicode::yenSignCharacter; | |
| 218 using WTF::Unicode::zeroWidthJoinerCharacter; | |
| 219 using WTF::Unicode::zeroWidthNonJoinerCharacter; | |
| 220 using WTF::Unicode::zeroWidthSpaceCharacter; | |
| 221 using WTF::Unicode::zeroWidthNoBreakSpaceCharacter; | |
| 222 using WTF::Unicode::kMaxCodepoint; | |
| 223 | |
| 224 #endif // CharacterNames_h | |
| OLD | NEW |