| Index: third_party/WebKit/Source/wtf/text/TextCodecUTF16.h
|
| diff --git a/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h b/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h
|
| index 8570d01f7ab92b0817f26668b7f67d6ed5c9b333..b080325fa10132815ba04d1cd6b65e463a00cad4 100644
|
| --- a/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h
|
| +++ b/third_party/WebKit/Source/wtf/text/TextCodecUTF16.h
|
| @@ -31,22 +31,27 @@
|
| namespace WTF {
|
|
|
| class TextCodecUTF16 final : public TextCodec {
|
| -public:
|
| - static void registerEncodingNames(EncodingNameRegistrar);
|
| - static void registerCodecs(TextCodecRegistrar);
|
| -
|
| - TextCodecUTF16(bool littleEndian) : m_littleEndian(littleEndian), m_haveBufferedByte(false) {}
|
| -
|
| - 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;
|
| -
|
| -private:
|
| - bool m_littleEndian;
|
| - bool m_haveBufferedByte;
|
| - unsigned char m_bufferedByte;
|
| + public:
|
| + static void registerEncodingNames(EncodingNameRegistrar);
|
| + static void registerCodecs(TextCodecRegistrar);
|
| +
|
| + TextCodecUTF16(bool littleEndian)
|
| + : m_littleEndian(littleEndian), m_haveBufferedByte(false) {}
|
| +
|
| + 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;
|
| +
|
| + private:
|
| + bool m_littleEndian;
|
| + bool m_haveBufferedByte;
|
| + unsigned char m_bufferedByte;
|
| };
|
|
|
| -} // namespace WTF
|
| +} // namespace WTF
|
|
|
| -#endif // TextCodecUTF16_h
|
| +#endif // TextCodecUTF16_h
|
|
|