Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(971)

Side by Side Diff: third_party/WebKit/Source/platform/text/CharacterEmoji.cpp

Issue 1847853004: Move Character.h from platform/fonts to platform/text (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/text/Character.cpp ('k') | third_party/WebKit/Source/platform/text/CharacterProperty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698