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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/text/Character.h" 5 #include "platform/text/Character.h"
6 6
7 #include <unicode/uvernum.h>
7 #include "platform/text/ICUError.h" 8 #include "platform/text/ICUError.h"
8 #include <unicode/uvernum.h>
9 9
10 #if defined(USING_SYSTEM_ICU) || (U_ICU_VERSION_MAJOR_NUM <= 57) 10 #if defined(USING_SYSTEM_ICU) || (U_ICU_VERSION_MAJOR_NUM <= 57)
11 #include <unicode/uniset.h> 11 #include <unicode/uniset.h>
12 #else 12 #else
13 #include <unicode/uchar.h> 13 #include <unicode/uchar.h>
14 #endif 14 #endif
15 15
16 using namespace WTF; 16 using namespace WTF;
17 using namespace Unicode; 17 using namespace Unicode;
18 18
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 bool Character::isEmojiKeycapBase(UChar32 ch) { 238 bool Character::isEmojiKeycapBase(UChar32 ch) {
239 return (ch >= '0' && ch <= '9') || ch == '#' || ch == '*'; 239 return (ch >= '0' && ch <= '9') || ch == '#' || ch == '*';
240 } 240 }
241 241
242 bool Character::isRegionalIndicator(UChar32 ch) { 242 bool Character::isRegionalIndicator(UChar32 ch) {
243 return (ch >= 0x1F1E6 && ch <= 0x1F1FF); 243 return (ch >= 0x1F1E6 && ch <= 0x1F1FF);
244 } 244 }
245 245
246 }; // namespace blink 246 }; // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698