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

Unified Diff: third_party/WebKit/Source/wtf/text/WTFString.cpp

Issue 2373983006: reflow comments in wtf/text (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/wtf/text/WTFString.cpp
diff --git a/third_party/WebKit/Source/wtf/text/WTFString.cpp b/third_party/WebKit/Source/wtf/text/WTFString.cpp
index b3f4babd96a3a290a63e6e5f5601c533151a5d1a..51a241c27f484954834c40f8146bd3ad6ed3a3c8 100644
--- a/third_party/WebKit/Source/wtf/text/WTFString.cpp
+++ b/third_party/WebKit/Source/wtf/text/WTFString.cpp
@@ -1,6 +1,7 @@
/*
* (C) 1999 Lars Knoll (knoll@kde.org)
- * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights reserved.
+ * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010, 2012 Apple Inc. All rights
+ * reserved.
* Copyright (C) 2007-2009 Torch Mobile, Inc.
*
* This library is free software; you can redistribute it and/or
@@ -590,7 +591,8 @@ CString String::latin1() const {
return result;
}
-// Helper to write a three-byte UTF-8 code point to the buffer, caller must check room is available.
+// Helper to write a three-byte UTF-8 code point to the buffer, caller must
+// check room is available.
static inline void putUTF8Triple(char*& buffer, UChar ch) {
ASSERT(ch >= 0x0800);
*buffer++ = static_cast<char>(((ch >> 12) & 0x0F) | 0xE0);
@@ -626,10 +628,8 @@ CString String::utf8(UTF8ConversionMode mode) const {
ConversionResult result =
convertLatin1ToUTF8(&characters, characters + length, &buffer,
buffer + bufferVector.size());
- ASSERT_UNUSED(
- result,
- result !=
- targetExhausted); // (length * 3) should be sufficient for any conversion
+ // (length * 3) should be sufficient for any conversion
+ ASSERT_UNUSED(result, result != targetExhausted);
} else {
const UChar* characters = this->characters16();
@@ -658,9 +658,8 @@ CString String::utf8(UTF8ConversionMode mode) const {
ConversionResult result =
convertUTF16ToUTF8(&characters, characters + length, &buffer,
buffer + bufferVector.size(), strict);
- ASSERT(
- result !=
- targetExhausted); // (length * 3) should be sufficient for any conversion
+ // (length * 3) should be sufficient for any conversion
+ ASSERT(result != targetExhausted);
// Only produced from strict conversion.
if (result == sourceIllegal) {

Powered by Google App Engine
This is Rietveld 408576698