| 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 | |
| 30 | namespace WTF { |
| 31 | namespace 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 | |
| 38 | const UChar AppleLogo = 0xF8FF; |
| 39 | const UChar HiraganaLetterSmallA = 0x3041; |
| 40 | const UChar32 aegeanWordSeparatorDot = 0x10101; |
| 41 | const UChar32 aegeanWordSeparatorLine = 0x10100; |
| 42 | const UChar apostrophe = 0x0027; |
| 43 | const UChar blackCircle = 0x25CF; |
| 44 | const UChar blackSquare = 0x25A0; |
| 45 | const UChar blackUpPointingTriangle = 0x25B2; |
| 46 | const UChar bullet = 0x2022; |
| 47 | const UChar bullseye = 0x25CE; |
| 48 | const UChar carriageReturn = 0x000D; |
| 49 | const UChar combiningEnclosingKeycap = 0x20E3; |
| 50 | const UChar ethiopicPrefaceColon = 0x1366; |
| 51 | const UChar ethiopicWordspace = 0x1361; |
| 52 | const UChar firstStrongIsolate = 0x2068; |
| 53 | const UChar fisheye = 0x25C9; |
| 54 | const UChar hebrewPunctuationGeresh = 0x05F3; |
| 55 | const UChar hebrewPunctuationGershayim = 0x05F4; |
| 56 | const UChar horizontalEllipsis = 0x2026; |
| 57 | const UChar hyphen = 0x2010; |
| 58 | const UChar hyphenMinus = 0x002D; |
| 59 | const UChar ideographicComma = 0x3001; |
| 60 | const UChar ideographicFullStop = 0x3002; |
| 61 | const UChar ideographicSpace = 0x3000; |
| 62 | const UChar leftDoubleQuotationMark = 0x201C; |
| 63 | const UChar leftLowDoubleQuotationMark = 0x201E; |
| 64 | const UChar leftSingleQuotationMark = 0x2018; |
| 65 | const UChar leftLowSingleQuotationMark = 0x201A; |
| 66 | const UChar leftToRightEmbed = 0x202A; |
| 67 | const UChar leftToRightIsolate = 0x2066; |
| 68 | const UChar leftToRightMark = 0x200E; |
| 69 | const UChar leftToRightOverride = 0x202D; |
| 70 | const UChar minusSign = 0x2212; |
| 71 | const UChar narrowNoBreakSpace = 0x202F; |
| 72 | const UChar narrowNonBreakingSpace = 0x202F; |
| 73 | const UChar newlineCharacter = 0x000A; |
| 74 | const UChar noBreakSpace = 0x00A0; |
| 75 | const UChar objectReplacementCharacter = 0xFFFC; |
| 76 | const UChar popDirectionalFormatting = 0x202C; |
| 77 | const UChar popDirectionalIsolate = 0x2069; |
| 78 | const UChar quotationMark = 0x0022; |
| 79 | const UChar replacementCharacter = 0xFFFD; |
| 80 | const UChar rightDoubleQuotationMark = 0x201D; |
| 81 | const UChar rightSingleQuotationMark = 0x2019; |
| 82 | const UChar rightToLeftEmbed = 0x202B; |
| 83 | const UChar rightToLeftIsolate = 0x2067; |
| 84 | const UChar rightToLeftMark = 0x200F; |
| 85 | const UChar rightToLeftOverride = 0x202E; |
| 86 | const UChar sesameDot = 0xFE45; |
| 87 | const UChar smallLetterSharpS = 0x00DF; |
| 88 | const UChar softHyphen = 0x00AD; |
| 89 | const UChar space = 0x0020; |
| 90 | const UChar tabCharacter = 0x0009; |
| 91 | const UChar tibetanMarkDelimiterTshegBstar = 0x0F0C; |
| 92 | const UChar tibetanMarkIntersyllabicTsheg = 0x0F0B; |
| 93 | const UChar32 ugariticWordDivider = 0x1039F; |
| 94 | const UChar whiteBullet = 0x25E6; |
| 95 | const UChar whiteCircle = 0x25CB; |
| 96 | const UChar whiteSesameDot = 0xFE46; |
| 97 | const UChar whiteUpPointingTriangle = 0x25B3; |
| 98 | const UChar wordJoiner = 0x2060; |
| 99 | const UChar yenSign = 0x00A5; |
| 100 | const UChar zeroWidthJoiner = 0x200D; |
| 101 | const UChar zeroWidthNoBreakSpace = 0xFEFF; |
| 102 | const UChar zeroWidthNonJoiner = 0x200C; |
| 103 | const UChar zeroWidthSpace = 0x200B; |
| 104 | |
| 105 | } // namespace Unicode |
| 106 | } // namespace WTF |
| 107 | |
| 108 | using WTF::Unicode::AppleLogo; |
| 109 | using WTF::Unicode::HiraganaLetterSmallA; |
| 110 | using WTF::Unicode::aegeanWordSeparatorDot; |
| 111 | using WTF::Unicode::aegeanWordSeparatorLine; |
| 112 | using WTF::Unicode::blackCircle; |
| 113 | using WTF::Unicode::blackSquare; |
| 114 | using WTF::Unicode::blackUpPointingTriangle; |
| 115 | using WTF::Unicode::bullet; |
| 116 | using WTF::Unicode::bullseye; |
| 117 | using WTF::Unicode::carriageReturn; |
| 118 | using WTF::Unicode::combiningEnclosingKeycap; |
| 119 | using WTF::Unicode::ethiopicPrefaceColon; |
| 120 | using WTF::Unicode::ethiopicWordspace; |
| 121 | using WTF::Unicode::firstStrongIsolate; |
| 122 | using WTF::Unicode::fisheye; |
| 123 | using WTF::Unicode::hebrewPunctuationGeresh; |
| 124 | using WTF::Unicode::hebrewPunctuationGershayim; |
| 125 | using WTF::Unicode::horizontalEllipsis; |
| 126 | using WTF::Unicode::hyphen; |
| 127 | using WTF::Unicode::hyphenMinus; |
| 128 | using WTF::Unicode::ideographicComma; |
| 129 | using WTF::Unicode::ideographicFullStop; |
| 130 | using WTF::Unicode::ideographicSpace; |
| 131 | using WTF::Unicode::leftDoubleQuotationMark; |
| 132 | using WTF::Unicode::leftLowDoubleQuotationMark; |
| 133 | using WTF::Unicode::leftSingleQuotationMark; |
| 134 | using WTF::Unicode::leftLowSingleQuotationMark; |
| 135 | using WTF::Unicode::leftToRightEmbed; |
| 136 | using WTF::Unicode::leftToRightIsolate; |
| 137 | using WTF::Unicode::leftToRightMark; |
| 138 | using WTF::Unicode::leftToRightOverride; |
| 139 | using WTF::Unicode::minusSign; |
| 140 | using WTF::Unicode::narrowNoBreakSpace; |
| 141 | using WTF::Unicode::narrowNonBreakingSpace; |
| 142 | using WTF::Unicode::newlineCharacter; |
| 143 | using WTF::Unicode::noBreakSpace; |
| 144 | using WTF::Unicode::objectReplacementCharacter; |
| 145 | using WTF::Unicode::popDirectionalFormatting; |
| 146 | using WTF::Unicode::popDirectionalIsolate; |
| 147 | using WTF::Unicode::replacementCharacter; |
| 148 | using WTF::Unicode::rightDoubleQuotationMark; |
| 149 | using WTF::Unicode::rightSingleQuotationMark; |
| 150 | using WTF::Unicode::rightToLeftEmbed; |
| 151 | using WTF::Unicode::rightToLeftIsolate; |
| 152 | using WTF::Unicode::rightToLeftMark; |
| 153 | using WTF::Unicode::rightToLeftOverride; |
| 154 | using WTF::Unicode::sesameDot; |
| 155 | using WTF::Unicode::softHyphen; |
| 156 | using WTF::Unicode::space; |
| 157 | using WTF::Unicode::tabCharacter; |
| 158 | using WTF::Unicode::tibetanMarkDelimiterTshegBstar; |
| 159 | using WTF::Unicode::tibetanMarkIntersyllabicTsheg; |
| 160 | using WTF::Unicode::ugariticWordDivider; |
| 161 | using WTF::Unicode::whiteBullet; |
| 162 | using WTF::Unicode::whiteCircle; |
| 163 | using WTF::Unicode::whiteSesameDot; |
| 164 | using WTF::Unicode::whiteUpPointingTriangle; |
| 165 | using WTF::Unicode::wordJoiner; |
| 166 | using WTF::Unicode::yenSign; |
| 167 | using WTF::Unicode::zeroWidthJoiner; |
| 168 | using WTF::Unicode::zeroWidthNoBreakSpace; |
| 169 | using WTF::Unicode::zeroWidthNonJoiner; |
| 170 | using WTF::Unicode::zeroWidthSpace; |
| 171 | |