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#ifndef CharacterNames_h 27#define CharacterNames_h 28 29#include <unicode/utypes.h> 30 31namespace WTF { 32namespace 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 39const UChar AppleLogo = 0xF8FF; 40const UChar32 aegeanWordSeparatorLine = 0x10100; 41const UChar32 aegeanWordSeparatorDot = 0x10101; 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 ethiopicPrefaceColon = 0x1366; 50const UChar ethiopicWordspace = 0x1361; 51const UChar fisheye = 0x25C9; 52const UChar quotationMark = 0x0022; 53const UChar hebrewPunctuationGeresh = 0x05F3; 54const UChar hebrewPunctuationGershayim = 0x05F4; 55const UChar HiraganaLetterSmallA = 0x3041; 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 leftSingleQuotationMark = 0x2018; 64const UChar leftToRightEmbed = 0x202A; 65const UChar leftToRightMark = 0x200E; 66const UChar leftToRightOverride = 0x202D; 67const UChar minusSign = 0x2212; 68const UChar newlineCharacter = 0x000A; 69const UChar noBreakSpace = 0x00A0; 70const UChar objectReplacementCharacter = 0xFFFC; 71const UChar popDirectionalFormatting = 0x202C; 72const UChar replacementCharacter = 0xFFFD; 73const UChar rightDoubleQuotationMark = 0x201D; 74const UChar rightSingleQuotationMark = 0x2019; 75const UChar rightToLeftEmbed = 0x202B; 76const UChar rightToLeftMark = 0x200F; 77const UChar rightToLeftOverride = 0x202E; 78const UChar sesameDot = 0xFE45; 79const UChar smallLetterSharpS = 0x00DF; 80const UChar softHyphen = 0x00AD; 81const UChar space = 0x0020; 82const UChar tibetanMarkIntersyllabicTsheg = 0x0F0B; 83const UChar tibetanMarkDelimiterTshegBstar = 0x0F0C; 84const UChar32 ugariticWordDivider = 0x1039F; 85const UChar whiteBullet = 0x25E6; 86const UChar whiteCircle = 0x25CB; 87const UChar whiteSesameDot = 0xFE46; 88const UChar whiteUpPointingTriangle = 0x25B3; 89const UChar yenSign = 0x00A5; 90const UChar zeroWidthJoiner = 0x200D; 91const UChar zeroWidthNonJoiner = 0x200C; 92const UChar zeroWidthSpace = 0x200B; 93const UChar zeroWidthNoBreakSpace = 0xFEFF; 94 95} // namespace Unicode 96} // namespace WTF 97 98using WTF::Unicode::AppleLogo; 99using WTF::Unicode::aegeanWordSeparatorLine; 100using WTF::Unicode::aegeanWordSeparatorDot; 101using WTF::Unicode::blackCircle; 102using WTF::Unicode::blackSquare; 103using WTF::Unicode::blackUpPointingTriangle; 104using WTF::Unicode::bullet; 105using WTF::Unicode::bullseye; 106using WTF::Unicode::carriageReturn; 107using WTF::Unicode::ethiopicPrefaceColon; 108using WTF::Unicode::ethiopicWordspace; 109using WTF::Unicode::fisheye; 110using WTF::Unicode::hebrewPunctuationGeresh; 111using WTF::Unicode::hebrewPunctuationGershayim; 112using WTF::Unicode::HiraganaLetterSmallA; 113using WTF::Unicode::horizontalEllipsis; 114using WTF::Unicode::hyphen; 115using WTF::Unicode::hyphenMinus; 116using WTF::Unicode::ideographicComma; 117using WTF::Unicode::ideographicFullStop; 118using WTF::Unicode::ideographicSpace; 119using WTF::Unicode::leftDoubleQuotationMark; 120using WTF::Unicode::leftSingleQuotationMark; 121using WTF::Unicode::leftToRightEmbed; 122using WTF::Unicode::leftToRightMark; 123using WTF::Unicode::leftToRightOverride; 124using WTF::Unicode::minusSign; 125using WTF::Unicode::newlineCharacter; 126using WTF::Unicode::noBreakSpace; 127using WTF::Unicode::objectReplacementCharacter; 128using WTF::Unicode::popDirectionalFormatting; 129using WTF::Unicode::replacementCharacter; 130using WTF::Unicode::rightDoubleQuotationMark; 131using WTF::Unicode::rightSingleQuotationMark; 132using WTF::Unicode::rightToLeftEmbed; 133using WTF::Unicode::rightToLeftMark; 134using WTF::Unicode::rightToLeftOverride; 135using WTF::Unicode::sesameDot; 136using WTF::Unicode::softHyphen; 137using WTF::Unicode::space; 138using WTF::Unicode::tibetanMarkIntersyllabicTsheg; 139using WTF::Unicode::tibetanMarkDelimiterTshegBstar; 140using WTF::Unicode::ugariticWordDivider; 141using WTF::Unicode::whiteBullet; 142using WTF::Unicode::whiteCircle; 143using WTF::Unicode::whiteSesameDot; 144using WTF::Unicode::whiteUpPointingTriangle; 145using WTF::Unicode::yenSign; 146using WTF::Unicode::zeroWidthJoiner; 147using WTF::Unicode::zeroWidthNonJoiner; 148using WTF::Unicode::zeroWidthSpace; 149using WTF::Unicode::zeroWidthNoBreakSpace; 150 151#endif // CharacterNames_h 152