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

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

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 years, 11 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/TextCodec.cpp
diff --git a/third_party/WebKit/Source/wtf/text/TextCodec.cpp b/third_party/WebKit/Source/wtf/text/TextCodec.cpp
index 191ebb5689055add7eb204a4518e9cc21fad1ce9..0fcbbf7ea1f589fe250ff3dffcd17fd6ae76086f 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodec.cpp
+++ b/third_party/WebKit/Source/wtf/text/TextCodec.cpp
@@ -30,27 +30,29 @@
namespace WTF {
-TextCodec::~TextCodec()
-{
-}
+TextCodec::~TextCodec() {}
-int TextCodec::getUnencodableReplacement(unsigned codePoint, UnencodableHandling handling, UnencodableReplacementArray replacement)
-{
- switch (handling) {
+int TextCodec::getUnencodableReplacement(
+ unsigned codePoint,
+ UnencodableHandling handling,
+ UnencodableReplacementArray replacement) {
+ switch (handling) {
case QuestionMarksForUnencodables:
- replacement[0] = '?';
- replacement[1] = 0;
- return 1;
+ replacement[0] = '?';
+ replacement[1] = 0;
+ return 1;
case EntitiesForUnencodables:
- snprintf(replacement, sizeof(UnencodableReplacementArray), "&#%u;", codePoint);
- return static_cast<int>(strlen(replacement));
+ snprintf(replacement, sizeof(UnencodableReplacementArray), "&#%u;",
+ codePoint);
+ return static_cast<int>(strlen(replacement));
case URLEncodedEntitiesForUnencodables:
- snprintf(replacement, sizeof(UnencodableReplacementArray), "%%26%%23%u%%3B", codePoint);
- return static_cast<int>(strlen(replacement));
- }
- ASSERT_NOT_REACHED();
- replacement[0] = 0;
- return 0;
+ snprintf(replacement, sizeof(UnencodableReplacementArray),
+ "%%26%%23%u%%3B", codePoint);
+ return static_cast<int>(strlen(replacement));
+ }
+ ASSERT_NOT_REACHED();
+ replacement[0] = 0;
+ return 0;
}
-} // namespace WTF
+} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodec.h ('k') | third_party/WebKit/Source/wtf/text/TextCodecASCIIFastPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698