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

Unified Diff: runtime/vm/unicode.h

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/unibrow-inl.h ('k') | runtime/vm/unicode.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/unicode.h
diff --git a/runtime/vm/unicode.h b/runtime/vm/unicode.h
index 6acf84f7de407efb0689177ad9d9e0e5a6d20825..511686381f0fb749b32d707085c766eb4beea450 100644
--- a/runtime/vm/unicode.h
+++ b/runtime/vm/unicode.h
@@ -38,8 +38,8 @@ class Utf : AllStatic {
class Utf8 : AllStatic {
public:
enum Type {
- kLatin1 = 0, // Latin-1 code point [U+0000, U+00FF].
- kBMP, // Basic Multilingual Plane code point [U+0000, U+FFFF].
+ kLatin1 = 0, // Latin-1 code point [U+0000, U+00FF].
+ kBMP, // Basic Multilingual Plane code point [U+0000, U+FFFF].
kSupplementary, // Supplementary code point [U+010000, U+10FFFF].
};
@@ -75,14 +75,12 @@ class Utf8 : AllStatic {
intptr_t array_len,
int32_t* dst,
intptr_t len);
- static bool DecodeCStringToUTF32(const char* str,
- int32_t* dst,
- intptr_t len);
+ static bool DecodeCStringToUTF32(const char* str, int32_t* dst, intptr_t len);
- static const int32_t kMaxOneByteChar = 0x7F;
- static const int32_t kMaxTwoByteChar = 0x7FF;
+ static const int32_t kMaxOneByteChar = 0x7F;
+ static const int32_t kMaxTwoByteChar = 0x7FF;
static const int32_t kMaxThreeByteChar = 0xFFFF;
- static const int32_t kMaxFourByteChar = Utf::kMaxCodePoint;
+ static const int32_t kMaxFourByteChar = Utf::kMaxCodePoint;
private:
static bool IsTrailByte(uint8_t code_unit) {
@@ -117,9 +115,7 @@ class Utf16 : AllStatic {
}
// Returns true if ch is a lead or trail surrogate.
- static bool IsSurrogate(uint32_t ch) {
- return (ch & 0xFFFFF800) == 0xD800;
- }
+ static bool IsSurrogate(uint32_t ch) { return (ch & 0xFFFFF800) == 0xD800; }
// Returns true if ch is a lead surrogate.
static bool IsLeadSurrogate(uint32_t ch) {
« no previous file with comments | « runtime/vm/unibrow-inl.h ('k') | runtime/vm/unicode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698