| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/editing/state_machines/StateMachineUtil.h" | 5 #include "core/editing/state_machines/StateMachineUtil.h" |
| 6 | 6 |
| 7 #include "platform/text/Character.h" | 7 #include "platform/text/Character.h" |
| 8 #include "wtf/Assertions.h" | 8 #include "wtf/Assertions.h" |
| 9 #include "wtf/text/CharacterNames.h" | 9 #include "wtf/text/CharacterNames.h" |
| 10 #include "wtf/text/Unicode.h" | 10 #include "wtf/text/Unicode.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // Returns true if the code point has E_Basae_GAZ grapheme break property. | 16 // Returns true if the code point has E_Basae_GAZ grapheme break property. |
| 17 // See http://www.unicode.org/Public/9.0.0/ucd/auxiliary/GraphemeBreakProperty-9
.0.0d18.txt | 17 // See |
| 18 // http://www.unicode.org/Public/9.0.0/ucd/auxiliary/GraphemeBreakProperty-9.0.0
d18.txt |
| 18 bool isEBaseGAZ(uint32_t codePoint) { | 19 bool isEBaseGAZ(uint32_t codePoint) { |
| 19 return codePoint == WTF::Unicode::boyCharacter || | 20 return codePoint == WTF::Unicode::boyCharacter || |
| 20 codePoint == WTF::Unicode::girlCharacter || | 21 codePoint == WTF::Unicode::girlCharacter || |
| 21 codePoint == WTF::Unicode::manCharacter || | 22 codePoint == WTF::Unicode::manCharacter || |
| 22 codePoint == WTF::Unicode::womanCharacter; | 23 codePoint == WTF::Unicode::womanCharacter; |
| 23 } | 24 } |
| 24 | 25 |
| 25 // The list of code points which has Indic_Syllabic_Category=Virama property. | 26 // The list of code points which has Indic_Syllabic_Category=Virama property. |
| 26 // Must be sorted. | 27 // Must be sorted. |
| 27 // See http://www.unicode.org/Public/9.0.0/ucd/IndicSyllabicCategory-9.0.0d2.txt | 28 // See http://www.unicode.org/Public/9.0.0/ucd/IndicSyllabicCategory-9.0.0d2.txt |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // Proposed Rule GB11, ZWJ x Emoji | 117 // Proposed Rule GB11, ZWJ x Emoji |
| 117 if (prevCodePoint == zeroWidthJoinerCharacter && | 118 if (prevCodePoint == zeroWidthJoinerCharacter && |
| 118 (Character::isEmoji(nextCodePoint))) | 119 (Character::isEmoji(nextCodePoint))) |
| 119 return false; | 120 return false; |
| 120 | 121 |
| 121 // Rule GB999 any ÷ any | 122 // Rule GB999 any ÷ any |
| 122 return true; | 123 return true; |
| 123 } | 124 } |
| 124 | 125 |
| 125 } // namespace blink | 126 } // namespace blink |
| OLD | NEW |