diff options
Diffstat (limited to 'core/fxcrt/cfx_utf8decoder.h')
-rw-r--r-- | core/fxcrt/cfx_utf8decoder.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/core/fxcrt/cfx_utf8decoder.h b/core/fxcrt/cfx_utf8decoder.h deleted file mode 100644 index 35b56719b..000000000 --- a/core/fxcrt/cfx_utf8decoder.h +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2017 The PDFium Authors -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - -#ifndef CORE_FXCRT_CFX_UTF8DECODER_H_ -#define CORE_FXCRT_CFX_UTF8DECODER_H_ - -#include "core/fxcrt/string_view_template.h" -#include "core/fxcrt/widestring.h" - -class CFX_UTF8Decoder { - public: - explicit CFX_UTF8Decoder(ByteStringView input); - ~CFX_UTF8Decoder(); - - WideString TakeResult(); - - private: - void ProcessByte(uint8_t byte); - void AppendCodePoint(uint32_t ch); - - int m_PendingBytes = 0; - uint32_t m_PendingChar = 0; - WideString m_Buffer; -}; - -#endif // CORE_FXCRT_CFX_UTF8DECODER_H_ |