| 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> |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 FX_BOOL Init(uint8_t* pBuffer, size_t size); | 103 FX_BOOL Init(uint8_t* pBuffer, size_t size); |
| 104 FX_BOOL Init(IFX_FileRead* pFileRead); | 104 FX_BOOL Init(IFX_FileRead* pFileRead); |
| 105 FX_BOOL Init(IFX_BufferRead* pBuffer); | 105 FX_BOOL Init(IFX_BufferRead* pBuffer); |
| 106 FX_BOOL Init(FX_BOOL bOwndedStream); | 106 FX_BOOL Init(FX_BOOL bOwndedStream); |
| 107 FX_BOOL ReadNextBlock(); | 107 FX_BOOL ReadNextBlock(); |
| 108 FX_BOOL IsEOF(); | 108 FX_BOOL IsEOF(); |
| 109 FX_BOOL HaveAvailData(); | 109 FX_BOOL HaveAvailData(); |
| 110 void SkipWhiteSpaces(); | 110 void SkipWhiteSpaces(); |
| 111 void GetName(CFX_ByteString& space, CFX_ByteString& name); | 111 void GetName(CFX_ByteString& space, CFX_ByteString& name); |
| 112 void GetAttrValue(CFX_WideString& value); | 112 void GetAttrValue(CFX_WideString& value); |
| 113 FX_DWORD GetCharRef(); | 113 uint32_t GetCharRef(); |
| 114 void GetTagName(CFX_ByteString& space, | 114 void GetTagName(CFX_ByteString& space, |
| 115 CFX_ByteString& name, | 115 CFX_ByteString& name, |
| 116 FX_BOOL& bEndTag, | 116 FX_BOOL& bEndTag, |
| 117 FX_BOOL bStartTag = FALSE); | 117 FX_BOOL bStartTag = FALSE); |
| 118 void SkipLiterals(const CFX_ByteStringC& str); | 118 void SkipLiterals(const CFX_ByteStringC& str); |
| 119 CXML_Element* ParseElement(CXML_Element* pParent, FX_BOOL bStartTag = FALSE); | 119 CXML_Element* ParseElement(CXML_Element* pParent, FX_BOOL bStartTag = FALSE); |
| 120 void InsertContentSegment(FX_BOOL bCDATA, | 120 void InsertContentSegment(FX_BOOL bCDATA, |
| 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 |