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

Side by Side Diff: third_party/WebKit/Source/platform/wtf/text/TextCodecReplacement.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/wtf/text/TextCodecReplacement.h" 5 #include "platform/wtf/text/TextCodecReplacement.h"
6 6
7 #include <memory>
7 #include "platform/wtf/PtrUtil.h" 8 #include "platform/wtf/PtrUtil.h"
8 #include "platform/wtf/text/CharacterNames.h" 9 #include "platform/wtf/text/CharacterNames.h"
9 #include "platform/wtf/text/WTFString.h" 10 #include "platform/wtf/text/WTFString.h"
10 #include <memory>
11 11
12 namespace WTF { 12 namespace WTF {
13 13
14 TextCodecReplacement::TextCodecReplacement() 14 TextCodecReplacement::TextCodecReplacement()
15 : replacement_error_returned_(false) {} 15 : replacement_error_returned_(false) {}
16 16
17 void TextCodecReplacement::RegisterEncodingNames( 17 void TextCodecReplacement::RegisterEncodingNames(
18 EncodingNameRegistrar registrar) { 18 EncodingNameRegistrar registrar) {
19 // The 'replacement' label itself should not be referenceable by 19 // The 'replacement' label itself should not be referenceable by
20 // resources or script - it's a specification convenience - but much of 20 // resources or script - it's a specification convenience - but much of
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 replacement_error_returned_ = true; 56 replacement_error_returned_ = true;
57 saw_error = true; 57 saw_error = true;
58 return String(&kReplacementCharacter, 1); 58 return String(&kReplacementCharacter, 1);
59 } 59 }
60 60
61 // 3. Return finished. 61 // 3. Return finished.
62 return String(); 62 return String();
63 } 63 }
64 64
65 } // namespace WTF 65 } // namespace WTF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698