| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef CORE_SRC_FXCRT_XML_INT_H_ | 7 #ifndef CORE_SRC_FXCRT_XML_INT_H_ |
| 8 #define CORE_SRC_FXCRT_XML_INT_H_ | 8 #define CORE_SRC_FXCRT_XML_INT_H_ |
| 9 | 9 |
| 10 #include "../../include/fxcrt/fx_stream.h" | 10 #include "core/include/fxcrt/fx_stream.h" |
| 11 |
| 12 class CFX_UTF8Decoder; |
| 13 class CXML_Element; |
| 11 | 14 |
| 12 class CXML_DataBufAcc : public IFX_BufferRead { | 15 class CXML_DataBufAcc : public IFX_BufferRead { |
| 13 public: | 16 public: |
| 14 CXML_DataBufAcc(const uint8_t* pBuffer, size_t size) | 17 CXML_DataBufAcc(const uint8_t* pBuffer, size_t size) |
| 15 : m_pBuffer(pBuffer), m_dwSize(size), m_dwCurPos(0) {} | 18 : m_pBuffer(pBuffer), m_dwSize(size), m_dwCurPos(0) {} |
| 16 ~CXML_DataBufAcc() override {} | 19 ~CXML_DataBufAcc() override {} |
| 17 | 20 |
| 18 // IFX_BufferRead | 21 // IFX_BufferRead |
| 19 void Release() override { delete this; } | 22 void Release() override { delete this; } |
| 20 FX_BOOL IsEOF() override { return m_dwCurPos >= m_dwSize; } | 23 FX_BOOL IsEOF() override { return m_dwCurPos >= m_dwSize; } |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 const CFX_WideStringC& content, | 118 const CFX_WideStringC& content, |
| 116 CXML_Element* pElement); | 119 CXML_Element* pElement); |
| 117 void InsertCDATASegment(CFX_UTF8Decoder& decoder, CXML_Element* pElement); | 120 void InsertCDATASegment(CFX_UTF8Decoder& decoder, CXML_Element* pElement); |
| 118 }; | 121 }; |
| 119 | 122 |
| 120 void FX_XML_SplitQualifiedName(const CFX_ByteStringC& bsFullName, | 123 void FX_XML_SplitQualifiedName(const CFX_ByteStringC& bsFullName, |
| 121 CFX_ByteStringC& bsSpace, | 124 CFX_ByteStringC& bsSpace, |
| 122 CFX_ByteStringC& bsName); | 125 CFX_ByteStringC& bsName); |
| 123 | 126 |
| 124 #endif // CORE_SRC_FXCRT_XML_INT_H_ | 127 #endif // CORE_SRC_FXCRT_XML_INT_H_ |
| OLD | NEW |