| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "wtf/unicode/Unicode.h" | 29 #include "wtf/unicode/Unicode.h" |
| 30 | 30 |
| 31 namespace WTF { | 31 namespace WTF { |
| 32 namespace Unicode { | 32 namespace Unicode { |
| 33 | 33 |
| 34 // Names here are taken from the Unicode standard. | 34 // Names here are taken from the Unicode standard. |
| 35 | 35 |
| 36 // Most of these are UChar constants, not UChar32, which makes them | 36 // Most of these are UChar constants, not UChar32, which makes them |
| 37 // more convenient for WebCore code that mostly uses UTF-16. | 37 // more convenient for WebCore code that mostly uses UTF-16. |
| 38 | 38 |
| 39 const UChar activateArabicFormShaping = 0x206D; | 39 const UChar characterActivateArabicFormShaping = 0x206D; |
| 40 const UChar activateSymmetricSwapping = 0x206B; | 40 const UChar characterActivateSymmetricSwapping = 0x206B; |
| 41 const UChar32 aegeanWordSeparatorLine = 0x10100; | 41 const UChar32 characterAegeanWordSeparatorLine = 0x10100; |
| 42 const UChar32 aegeanWordSeparatorDot = 0x10101; | 42 const UChar32 characterAegeanWordSeparatorDot = 0x10101; |
| 43 const UChar arabicLetterMark = 0x061C; | 43 const UChar characterArabicLetterMark = 0x061C; |
| 44 const UChar blackCircle = 0x25CF; | 44 const UChar characterBlackCircle = 0x25CF; |
| 45 const UChar blackSquare = 0x25A0; | 45 const UChar characterBlackSquare = 0x25A0; |
| 46 const UChar blackUpPointingTriangle = 0x25B2; | 46 const UChar characterBlackUpPointingTriangle = 0x25B2; |
| 47 const UChar bullet = 0x2022; | 47 const UChar characterBullet = 0x2022; |
| 48 const UChar bullseye = 0x25CE; | 48 const UChar characterBullseye = 0x25CE; |
| 49 const UChar carriageReturn = 0x000D; | 49 const UChar characterCarriageReturn = 0x000D; |
| 50 const UChar characterTabulation = 0x0009; | 50 const UChar characterTabulation = 0x0009; |
| 51 const UChar ethiopicPrefaceColon = 0x1366; | 51 const UChar characterEthiopicPrefaceColon = 0x1366; |
| 52 const UChar ethiopicWordspace = 0x1361; | 52 const UChar characterEthiopicWordspace = 0x1361; |
| 53 const UChar firstStrongIsolate = 0x2068; | 53 const UChar characterFirstStrongIsolate = 0x2068; |
| 54 const UChar fisheye = 0x25C9; | 54 const UChar characterFisheye = 0x25C9; |
| 55 const UChar hebrewPunctuationGeresh = 0x05F3; | 55 const UChar characterHebrewPunctuationGeresh = 0x05F3; |
| 56 const UChar hebrewPunctuationGershayim = 0x05F4; | 56 const UChar characterHebrewPunctuationGershayim = 0x05F4; |
| 57 const UChar HiraganaLetterSmallA = 0x3041; | 57 const UChar characterHiraganaLetterSmallA = 0x3041; |
| 58 const UChar horizontalEllipsis = 0x2026; | 58 const UChar characterHorizontalEllipsis = 0x2026; |
| 59 const UChar hyphen = 0x2010; | 59 const UChar characterHyphen = 0x2010; |
| 60 const UChar hyphenMinus = 0x002D; | 60 const UChar characterHyphenMinus = 0x002D; |
| 61 const UChar ideographicComma = 0x3001; | 61 const UChar characterIdeographicComma = 0x3001; |
| 62 const UChar ideographicFullStop = 0x3002; | 62 const UChar characterIdeographicFullStop = 0x3002; |
| 63 const UChar ideographicSpace = 0x3000; | 63 const UChar characterIdeographicSpace = 0x3000; |
| 64 const UChar inhibitArabicFormShaping = 0x206C; | 64 const UChar characterInhibitArabicFormShaping = 0x206C; |
| 65 const UChar inhibitSymmetricSwapping = 0x206A; | 65 const UChar characterInhibitSymmetricSwapping = 0x206A; |
| 66 const UChar leftDoubleQuotationMark = 0x201C; | 66 const UChar characterLeftDoubleQuotationMark = 0x201C; |
| 67 const UChar leftSingleQuotationMark = 0x2018; | 67 const UChar characterLeftSingleQuotationMark = 0x2018; |
| 68 const UChar leftToRightEmbed = 0x202A; | 68 const UChar characterLeftToRightEmbed = 0x202A; |
| 69 const UChar leftToRightIsolate = 0x2066; | 69 const UChar characterLeftToRightIsolate = 0x2066; |
| 70 const UChar leftToRightMark = 0x200E; | 70 const UChar characterLeftToRightMark = 0x200E; |
| 71 const UChar leftToRightOverride = 0x202D; | 71 const UChar characterLeftToRightOverride = 0x202D; |
| 72 const UChar minusSign = 0x2212; | 72 const UChar characterMinusSign = 0x2212; |
| 73 const UChar newlineCharacter = 0x000A; | 73 const UChar characterNewline = 0x000A; |
| 74 const UChar nationalDigitShapes = 0x206E; | 74 const UChar characterNationalDigitShapes = 0x206E; |
| 75 const UChar nominalDigitShapes = 0x206F; | 75 const UChar characterNominalDigitShapes = 0x206F; |
| 76 const UChar noBreakSpace = 0x00A0; | 76 const UChar characterNoBreakSpace = 0x00A0; |
| 77 const UChar objectReplacementCharacter = 0xFFFC; | 77 const UChar characterObjectReplacement = 0xFFFC; |
| 78 const UChar popDirectionalFormatting = 0x202C; | 78 const UChar characterPopDirectionalFormatting = 0x202C; |
| 79 const UChar popDirectionalIsolate = 0x2069; | 79 const UChar characterPopDirectionalIsolate = 0x2069; |
| 80 const UChar replacementCharacter = 0xFFFD; | 80 const UChar characterReplacement = 0xFFFD; |
| 81 const UChar rightDoubleQuotationMark = 0x201D; | 81 const UChar characterRightDoubleQuotationMark = 0x201D; |
| 82 const UChar rightSingleQuotationMark = 0x2019; | 82 const UChar characterRightSingleQuotationMark = 0x2019; |
| 83 const UChar rightToLeftEmbed = 0x202B; | 83 const UChar characterRightToLeftEmbed = 0x202B; |
| 84 const UChar rightToLeftIsolate = 0x2067; | 84 const UChar characterRightToLeftIsolate = 0x2067; |
| 85 const UChar rightToLeftMark = 0x200F; | 85 const UChar characterRightToLeftMark = 0x200F; |
| 86 const UChar rightToLeftOverride = 0x202E; | 86 const UChar characterRightToLeftOverride = 0x202E; |
| 87 const UChar sesameDot = 0xFE45; | 87 const UChar characterSesameDot = 0xFE45; |
| 88 const UChar smallLetterSharpS = 0x00DF; | 88 const UChar characterSmallLetterSharpS = 0x00DF; |
| 89 const UChar softHyphen = 0x00AD; | 89 const UChar characterSoftHyphen = 0x00AD; |
| 90 const UChar space = 0x0020; | 90 const UChar characterSpace = 0x0020; |
| 91 const UChar tibetanMarkIntersyllabicTsheg = 0x0F0B; | 91 const UChar characterTibetanMarkIntersyllabicTsheg = 0x0F0B; |
| 92 const UChar tibetanMarkDelimiterTshegBstar = 0x0F0C; | 92 const UChar characterTibetanMarkDelimiterTshegBstar = 0x0F0C; |
| 93 const UChar32 ugariticWordDivider = 0x1039F; | 93 const UChar32 characterUgariticWordDivider = 0x1039F; |
| 94 const UChar whiteBullet = 0x25E6; | 94 const UChar characterWhiteBullet = 0x25E6; |
| 95 const UChar whiteCircle = 0x25CB; | 95 const UChar characterWhiteCircle = 0x25CB; |
| 96 const UChar whiteSesameDot = 0xFE46; | 96 const UChar characterWhiteSesameDot = 0xFE46; |
| 97 const UChar whiteUpPointingTriangle = 0x25B3; | 97 const UChar characterWhiteUpPointingTriangle = 0x25B3; |
| 98 const UChar yenSign = 0x00A5; | 98 const UChar characterYenSign = 0x00A5; |
| 99 const UChar zeroWidthJoiner = 0x200D; | 99 const UChar characterZeroWidthJoiner = 0x200D; |
| 100 const UChar zeroWidthNonJoiner = 0x200C; | 100 const UChar characterZeroWidthNonJoiner = 0x200C; |
| 101 const UChar zeroWidthSpace = 0x200B; | 101 const UChar characterZeroWidthSpace = 0x200B; |
| 102 const UChar zeroWidthNoBreakSpace = 0xFEFF; | 102 const UChar characterZeroWidthNoBreakSpace = 0xFEFF; |
| 103 | 103 |
| 104 } // namespace Unicode | 104 } // namespace Unicode |
| 105 } // namespace WTF | 105 } // namespace WTF |
| 106 | 106 |
| 107 using WTF::Unicode::aegeanWordSeparatorLine; | 107 using WTF::Unicode::characterAegeanWordSeparatorLine; |
| 108 using WTF::Unicode::aegeanWordSeparatorDot; | 108 using WTF::Unicode::characterAegeanWordSeparatorDot; |
| 109 using WTF::Unicode::activateArabicFormShaping; | 109 using WTF::Unicode::characterActivateArabicFormShaping; |
| 110 using WTF::Unicode::activateSymmetricSwapping; | 110 using WTF::Unicode::characterActivateSymmetricSwapping; |
| 111 using WTF::Unicode::arabicLetterMark; | 111 using WTF::Unicode::characterArabicLetterMark; |
| 112 using WTF::Unicode::blackCircle; | 112 using WTF::Unicode::characterBlackCircle; |
| 113 using WTF::Unicode::blackSquare; | 113 using WTF::Unicode::characterBlackSquare; |
| 114 using WTF::Unicode::blackUpPointingTriangle; | 114 using WTF::Unicode::characterBlackUpPointingTriangle; |
| 115 using WTF::Unicode::bullet; | 115 using WTF::Unicode::characterBullet; |
| 116 using WTF::Unicode::bullseye; | 116 using WTF::Unicode::characterBullseye; |
| 117 using WTF::Unicode::carriageReturn; | 117 using WTF::Unicode::characterCarriageReturn; |
| 118 using WTF::Unicode::characterTabulation; | 118 using WTF::Unicode::characterTabulation; |
| 119 using WTF::Unicode::ethiopicPrefaceColon; | 119 using WTF::Unicode::characterEthiopicPrefaceColon; |
| 120 using WTF::Unicode::ethiopicWordspace; | 120 using WTF::Unicode::characterEthiopicWordspace; |
| 121 using WTF::Unicode::firstStrongIsolate; | 121 using WTF::Unicode::characterFirstStrongIsolate; |
| 122 using WTF::Unicode::fisheye; | 122 using WTF::Unicode::characterFisheye; |
| 123 using WTF::Unicode::hebrewPunctuationGeresh; | 123 using WTF::Unicode::characterHebrewPunctuationGeresh; |
| 124 using WTF::Unicode::hebrewPunctuationGershayim; | 124 using WTF::Unicode::characterHebrewPunctuationGershayim; |
| 125 using WTF::Unicode::HiraganaLetterSmallA; | 125 using WTF::Unicode::characterHiraganaLetterSmallA; |
| 126 using WTF::Unicode::horizontalEllipsis; | 126 using WTF::Unicode::characterHorizontalEllipsis; |
| 127 using WTF::Unicode::hyphen; | 127 using WTF::Unicode::characterHyphen; |
| 128 using WTF::Unicode::hyphenMinus; | 128 using WTF::Unicode::characterHyphenMinus; |
| 129 using WTF::Unicode::ideographicComma; | 129 using WTF::Unicode::characterIdeographicComma; |
| 130 using WTF::Unicode::ideographicFullStop; | 130 using WTF::Unicode::characterIdeographicFullStop; |
| 131 using WTF::Unicode::ideographicSpace; | 131 using WTF::Unicode::characterIdeographicSpace; |
| 132 using WTF::Unicode::inhibitArabicFormShaping; | 132 using WTF::Unicode::characterInhibitArabicFormShaping; |
| 133 using WTF::Unicode::inhibitSymmetricSwapping; | 133 using WTF::Unicode::characterInhibitSymmetricSwapping; |
| 134 using WTF::Unicode::leftDoubleQuotationMark; | 134 using WTF::Unicode::characterLeftDoubleQuotationMark; |
| 135 using WTF::Unicode::leftSingleQuotationMark; | 135 using WTF::Unicode::characterLeftSingleQuotationMark; |
| 136 using WTF::Unicode::leftToRightEmbed; | 136 using WTF::Unicode::characterLeftToRightEmbed; |
| 137 using WTF::Unicode::leftToRightIsolate; | 137 using WTF::Unicode::characterLeftToRightIsolate; |
| 138 using WTF::Unicode::leftToRightMark; | 138 using WTF::Unicode::characterLeftToRightMark; |
| 139 using WTF::Unicode::leftToRightOverride; | 139 using WTF::Unicode::characterLeftToRightOverride; |
| 140 using WTF::Unicode::minusSign; | 140 using WTF::Unicode::characterMinusSign; |
| 141 using WTF::Unicode::newlineCharacter; | 141 using WTF::Unicode::characterNewline; |
| 142 using WTF::Unicode::nationalDigitShapes; | 142 using WTF::Unicode::characterNationalDigitShapes; |
| 143 using WTF::Unicode::nominalDigitShapes; | 143 using WTF::Unicode::characterNominalDigitShapes; |
| 144 using WTF::Unicode::noBreakSpace; | 144 using WTF::Unicode::characterNoBreakSpace; |
| 145 using WTF::Unicode::objectReplacementCharacter; | 145 using WTF::Unicode::characterObjectReplacement; |
| 146 using WTF::Unicode::popDirectionalFormatting; | 146 using WTF::Unicode::characterPopDirectionalFormatting; |
| 147 using WTF::Unicode::popDirectionalIsolate; | 147 using WTF::Unicode::characterPopDirectionalIsolate; |
| 148 using WTF::Unicode::replacementCharacter; | 148 using WTF::Unicode::characterReplacement; |
| 149 using WTF::Unicode::rightDoubleQuotationMark; | 149 using WTF::Unicode::characterRightDoubleQuotationMark; |
| 150 using WTF::Unicode::rightSingleQuotationMark; | 150 using WTF::Unicode::characterRightSingleQuotationMark; |
| 151 using WTF::Unicode::rightToLeftEmbed; | 151 using WTF::Unicode::characterRightToLeftEmbed; |
| 152 using WTF::Unicode::rightToLeftIsolate; | 152 using WTF::Unicode::characterRightToLeftIsolate; |
| 153 using WTF::Unicode::rightToLeftMark; | 153 using WTF::Unicode::characterRightToLeftMark; |
| 154 using WTF::Unicode::rightToLeftOverride; | 154 using WTF::Unicode::characterRightToLeftOverride; |
| 155 using WTF::Unicode::sesameDot; | 155 using WTF::Unicode::characterSesameDot; |
| 156 using WTF::Unicode::smallLetterSharpS; | 156 using WTF::Unicode::characterSmallLetterSharpS; |
| 157 using WTF::Unicode::softHyphen; | 157 using WTF::Unicode::characterSoftHyphen; |
| 158 using WTF::Unicode::space; | 158 using WTF::Unicode::characterSpace; |
| 159 using WTF::Unicode::tibetanMarkIntersyllabicTsheg; | 159 using WTF::Unicode::characterTibetanMarkIntersyllabicTsheg; |
| 160 using WTF::Unicode::tibetanMarkDelimiterTshegBstar; | 160 using WTF::Unicode::characterTibetanMarkDelimiterTshegBstar; |
| 161 using WTF::Unicode::ugariticWordDivider; | 161 using WTF::Unicode::characterUgariticWordDivider; |
| 162 using WTF::Unicode::whiteBullet; | 162 using WTF::Unicode::characterWhiteBullet; |
| 163 using WTF::Unicode::whiteCircle; | 163 using WTF::Unicode::characterWhiteCircle; |
| 164 using WTF::Unicode::whiteSesameDot; | 164 using WTF::Unicode::characterWhiteSesameDot; |
| 165 using WTF::Unicode::whiteUpPointingTriangle; | 165 using WTF::Unicode::characterWhiteUpPointingTriangle; |
| 166 using WTF::Unicode::yenSign; | 166 using WTF::Unicode::characterYenSign; |
| 167 using WTF::Unicode::zeroWidthJoiner; | 167 using WTF::Unicode::characterZeroWidthJoiner; |
| 168 using WTF::Unicode::zeroWidthNonJoiner; | 168 using WTF::Unicode::characterZeroWidthNonJoiner; |
| 169 using WTF::Unicode::zeroWidthSpace; | 169 using WTF::Unicode::characterZeroWidthSpace; |
| 170 using WTF::Unicode::zeroWidthNoBreakSpace; | 170 using WTF::Unicode::characterZeroWidthNoBreakSpace; |
| 171 | 171 |
| 172 #endif // CharacterNames_h | 172 #endif // CharacterNames_h |
| OLD | NEW |