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

Side by Side Diff: third_party/WebKit/Source/platform/text/Character.h

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) 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 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 UChar32 upperBound) { 52 UChar32 upperBound) {
53 return character >= lowerBound && character <= upperBound; 53 return character >= lowerBound && character <= upperBound;
54 } 54 }
55 55
56 static inline bool isUnicodeVariationSelector(UChar32 character) { 56 static inline bool isUnicodeVariationSelector(UChar32 character) {
57 // http://www.unicode.org/Public/UCD/latest/ucd/StandardizedVariants.html 57 // http://www.unicode.org/Public/UCD/latest/ucd/StandardizedVariants.html
58 return isInRange(character, 0x180B, 58 return isInRange(character, 0x180B,
59 0x180D) // MONGOLIAN FREE VARIATION SELECTOR ONE to THREE 59 0x180D) // MONGOLIAN FREE VARIATION SELECTOR ONE to THREE
60 || 60 ||
61 isInRange(character, 0xFE00, 0xFE0F) // VARIATION SELECTOR-1 to 16 61 isInRange(character, 0xFE00, 0xFE0F) // VARIATION SELECTOR-1 to 16
62 || isInRange(character, 0xE0100, 62 ||
63 0xE01EF); // VARIATION SELECTOR-17 to 256 63 isInRange(character, 0xE0100,
64 0xE01EF); // VARIATION SELECTOR-17 to 256
64 } 65 }
65 66
66 static bool isCJKIdeographOrSymbol(UChar32); 67 static bool isCJKIdeographOrSymbol(UChar32);
67 static bool isCJKIdeographOrSymbolBase(UChar32 c) { 68 static bool isCJKIdeographOrSymbolBase(UChar32 c) {
68 return isCJKIdeographOrSymbol(c) && 69 return isCJKIdeographOrSymbol(c) &&
69 !(U_GET_GC_MASK(c) & (U_GC_M_MASK | U_GC_LM_MASK | U_GC_SK_MASK)); 70 !(U_GET_GC_MASK(c) & (U_GC_M_MASK | U_GC_LM_MASK | U_GC_SK_MASK));
70 } 71 }
71 72
72 static unsigned expansionOpportunityCount(const LChar*, 73 static unsigned expansionOpportunityCount(const LChar*,
73 size_t length, 74 size_t length,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 168
168 static String normalizeSpaces(const LChar*, unsigned length); 169 static String normalizeSpaces(const LChar*, unsigned length);
169 static String normalizeSpaces(const UChar*, unsigned length); 170 static String normalizeSpaces(const UChar*, unsigned length);
170 171
171 static bool isCommonOrInheritedScript(UChar32); 172 static bool isCommonOrInheritedScript(UChar32);
172 }; 173 };
173 174
174 } // namespace blink 175 } // namespace blink
175 176
176 #endif 177 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/text/BidiResolver.h ('k') | third_party/WebKit/Source/platform/text/Character.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698