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

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

Issue 1436153002: Apply clang-format with Chromium-style without column limit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/TextCodecICU.h
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecICU.h b/third_party/WebKit/Source/wtf/text/TextCodecICU.h
index 9b11005626912daaf218a48b06c217ec49560741..af30da1beb5ef135e6f3134ca58f7d054007380f 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodecICU.h
+++ b/third_party/WebKit/Source/wtf/text/TextCodecICU.h
@@ -38,50 +38,52 @@ namespace WTF {
class TextCodecInput;
class TextCodecICU final : public TextCodec {
-public:
- static void registerEncodingNames(EncodingNameRegistrar);
- static void registerCodecs(TextCodecRegistrar);
+ public:
+ static void registerEncodingNames(EncodingNameRegistrar);
+ static void registerCodecs(TextCodecRegistrar);
- ~TextCodecICU() override;
+ ~TextCodecICU() override;
-private:
- TextCodecICU(const TextEncoding&);
- static PassOwnPtr<TextCodec> create(const TextEncoding&, const void*);
+ private:
+ TextCodecICU(const TextEncoding&);
+ 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*, size_t length, UnencodableHandling);
- CString encodeInternal(const TextCodecInput&, UnencodableHandling);
+ template <typename CharType>
+ CString encodeCommon(const CharType*, size_t length, UnencodableHandling);
+ CString encodeInternal(const TextCodecInput&, UnencodableHandling);
- void createICUConverter() const;
- void releaseICUConverter() const;
+ void createICUConverter() const;
+ void releaseICUConverter() const;
#if defined(USING_SYSTEM_ICU)
- bool needsGBKFallbacks() const { return m_needsGBKFallbacks; }
- void setNeedsGBKFallbacks(bool needsFallbacks) { m_needsGBKFallbacks = needsFallbacks; }
+ bool needsGBKFallbacks() const { return m_needsGBKFallbacks; }
+ void setNeedsGBKFallbacks(bool needsFallbacks) { m_needsGBKFallbacks = needsFallbacks; }
#endif
- int decodeToBuffer(UChar* buffer, UChar* bufferLimit, const char*& source,
- const char* sourceLimit, int32_t* offsets, bool flush, UErrorCode&);
+ int decodeToBuffer(UChar* buffer, UChar* bufferLimit, const char*& source, const char* sourceLimit, int32_t* offsets, bool flush, UErrorCode&);
- TextEncoding m_encoding;
- mutable UConverter* m_converterICU;
+ TextEncoding m_encoding;
+ mutable UConverter* m_converterICU;
#if defined(USING_SYSTEM_ICU)
- mutable bool m_needsGBKFallbacks;
+ mutable bool m_needsGBKFallbacks;
#endif
};
struct ICUConverterWrapper {
- WTF_MAKE_NONCOPYABLE(ICUConverterWrapper); USING_FAST_MALLOC(ICUConverterWrapper);
-public:
- ICUConverterWrapper() : converter(0) { }
- ~ICUConverterWrapper();
+ WTF_MAKE_NONCOPYABLE(ICUConverterWrapper);
+ USING_FAST_MALLOC(ICUConverterWrapper);
- UConverter* converter;
+ public:
+ ICUConverterWrapper()
+ : converter(0) {}
+ ~ICUConverterWrapper();
+
+ UConverter* converter;
};
-} // namespace WTF
+} // namespace WTF
-#endif // TextCodecICU_h
+#endif // TextCodecICU_h
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodecASCIIFastPath.h ('k') | third_party/WebKit/Source/wtf/text/TextCodecICU.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698