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

Unified Diff: third_party/WebKit/Source/wtf/text/TextCodecUTF8.h

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/TextCodecUTF8.h
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecUTF8.h b/third_party/WebKit/Source/wtf/text/TextCodecUTF8.h
index feb5682a77ed860c088fa11c6f2d1ce8ef45ec16..093c19c0ed41e586716d2323f557f8d90c412aec 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodecUTF8.h
+++ b/third_party/WebKit/Source/wtf/text/TextCodecUTF8.h
@@ -31,33 +31,41 @@
namespace WTF {
class TextCodecUTF8 : public TextCodec {
-public:
- static void registerEncodingNames(EncodingNameRegistrar);
- static void registerCodecs(TextCodecRegistrar);
+ public:
+ static void registerEncodingNames(EncodingNameRegistrar);
+ static void registerCodecs(TextCodecRegistrar);
-protected:
- TextCodecUTF8() : m_partialSequenceSize(0) { }
+ protected:
+ TextCodecUTF8() : m_partialSequenceSize(0) {}
-private:
- static PassOwnPtr<TextCodec> create(const TextEncoding&, const void*);
+ private:
+ static PassOwnPtr<TextCodec> create(const TextEncoding&, const void*);
- String decode(const char*, size_t length, FlushBehavior, bool stopOnError, bool& sawError) override;
- CString encode(const UChar*, size_t length, UnencodableHandling) override;
- CString encode(const LChar*, size_t length, UnencodableHandling) override;
+ String decode(const char*,
+ size_t length,
+ FlushBehavior,
+ bool stopOnError,
+ bool& sawError) override;
+ CString encode(const UChar*, size_t length, UnencodableHandling) override;
+ CString encode(const LChar*, size_t length, UnencodableHandling) override;
- template<typename CharType>
- CString encodeCommon(const CharType* characters, size_t length);
+ template <typename CharType>
+ CString encodeCommon(const CharType* characters, size_t length);
- template <typename CharType>
- bool handlePartialSequence(CharType*& destination, const uint8_t*& source, const uint8_t* end, bool flush, bool stopOnError, bool& sawError);
- void handleError(UChar*& destination, bool stopOnError, bool& sawError);
- void consumePartialSequenceByte();
-
- int m_partialSequenceSize;
- uint8_t m_partialSequence[U8_MAX_LENGTH];
+ template <typename CharType>
+ bool handlePartialSequence(CharType*& destination,
+ const uint8_t*& source,
+ const uint8_t* end,
+ bool flush,
+ bool stopOnError,
+ bool& sawError);
+ void handleError(UChar*& destination, bool stopOnError, bool& sawError);
+ void consumePartialSequenceByte();
+ int m_partialSequenceSize;
+ uint8_t m_partialSequence[U8_MAX_LENGTH];
};
-} // namespace WTF
+} // namespace WTF
-#endif // TextCodecUTF8_h
+#endif // TextCodecUTF8_h
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp ('k') | third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698