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_FXCRT_XML_INT_H_ | 7 #ifndef CORE_FXCRT_XML_INT_H_ |
8 #define CORE_FXCRT_XML_INT_H_ | 8 #define CORE_FXCRT_XML_INT_H_ |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 | 11 |
12 #include "core/include/fxcrt/fx_stream.h" | 12 #include "core/fxcrt/include/fx_stream.h" |
13 | 13 |
14 class CFX_UTF8Decoder; | 14 class CFX_UTF8Decoder; |
15 class CXML_Element; | 15 class CXML_Element; |
16 | 16 |
17 class CXML_DataBufAcc : public IFX_BufferRead { | 17 class CXML_DataBufAcc : public IFX_BufferRead { |
18 public: | 18 public: |
19 CXML_DataBufAcc(const uint8_t* pBuffer, size_t size) | 19 CXML_DataBufAcc(const uint8_t* pBuffer, size_t size) |
20 : m_pBuffer(pBuffer), m_dwSize(size), m_dwCurPos(0) {} | 20 : m_pBuffer(pBuffer), m_dwSize(size), m_dwCurPos(0) {} |
21 ~CXML_DataBufAcc() override {} | 21 ~CXML_DataBufAcc() override {} |
22 | 22 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 const CFX_WideStringC& content, | 121 const CFX_WideStringC& content, |
122 CXML_Element* pElement); | 122 CXML_Element* pElement); |
123 void InsertCDATASegment(CFX_UTF8Decoder& decoder, CXML_Element* pElement); | 123 void InsertCDATASegment(CFX_UTF8Decoder& decoder, CXML_Element* pElement); |
124 }; | 124 }; |
125 | 125 |
126 void FX_XML_SplitQualifiedName(const CFX_ByteStringC& bsFullName, | 126 void FX_XML_SplitQualifiedName(const CFX_ByteStringC& bsFullName, |
127 CFX_ByteStringC& bsSpace, | 127 CFX_ByteStringC& bsSpace, |
128 CFX_ByteStringC& bsName); | 128 CFX_ByteStringC& bsName); |
129 | 129 |
130 #endif // CORE_FXCRT_XML_INT_H_ | 130 #endif // CORE_FXCRT_XML_INT_H_ |
OLD | NEW |