| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "platform/fonts/Character.h" | 5 #include "platform/text/Character.h" |
| 6 | 6 |
| 7 #include <unicode/uniset.h> | 7 #include <unicode/uniset.h> |
| 8 | 8 |
| 9 using namespace WTF; | 9 using namespace WTF; |
| 10 using namespace Unicode; | 10 using namespace Unicode; |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 // The following UnicodeSet patterns were compiled from | 14 // The following UnicodeSet patterns were compiled from |
| 15 // http://www.unicode.org/Public/emoji/2.0//emoji-data.txt | 15 // http://www.unicode.org/Public/emoji/2.0//emoji-data.txt |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 return (ch >= '0' && ch <= '9') || ch == '#'; | 114 return (ch >= '0' && ch <= '9') || ch == '#'; |
| 115 } | 115 } |
| 116 | 116 |
| 117 bool Character::isRegionalIndicator(UChar32 ch) | 117 bool Character::isRegionalIndicator(UChar32 ch) |
| 118 { | 118 { |
| 119 return (ch >= 0x1F1E6 && ch <= 0x1F1FF); | 119 return (ch >= 0x1F1E6 && ch <= 0x1F1FF); |
| 120 } | 120 } |
| 121 | 121 |
| 122 | 122 |
| 123 }; // namespace blink | 123 }; // namespace blink |
| OLD | NEW |