| 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
|
|
|