Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: core/fxcrt/include/fx_xml.h

Issue 2060913003: Make code compile with clang_use_chrome_plugin (part II) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fxcrt/include/fx_ucd.h ('k') | core/fxcrt/xml_int.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_INCLUDE_FX_XML_H_ 7 #ifndef CORE_FXCRT_INCLUDE_FX_XML_H_
8 #define CORE_FXCRT_INCLUDE_FX_XML_H_ 8 #define CORE_FXCRT_INCLUDE_FX_XML_H_
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "core/fxcrt/include/fx_basic.h" 13 #include "core/fxcrt/include/fx_basic.h"
14 14
15 class CXML_AttrItem { 15 class CXML_AttrItem {
16 public: 16 public:
17 bool Matches(const CFX_ByteString& space, const CFX_ByteString& name) const; 17 bool Matches(const CFX_ByteString& space, const CFX_ByteString& name) const;
18 18
19 CFX_ByteString m_QSpaceName; 19 CFX_ByteString m_QSpaceName;
20 CFX_ByteString m_AttrName; 20 CFX_ByteString m_AttrName;
21 CFX_WideString m_Value; 21 CFX_WideString m_Value;
22 }; 22 };
23 23
24 class CXML_AttrMap { 24 class CXML_AttrMap {
25 public: 25 public:
26 CXML_AttrMap();
27 ~CXML_AttrMap();
28
26 const CFX_WideString* Lookup(const CFX_ByteString& space, 29 const CFX_WideString* Lookup(const CFX_ByteString& space,
27 const CFX_ByteString& name) const; 30 const CFX_ByteString& name) const;
31 int GetSize() const;
32 CXML_AttrItem& GetAt(int index) const;
33
28 void SetAt(const CFX_ByteString& space, 34 void SetAt(const CFX_ByteString& space,
29 const CFX_ByteString& name, 35 const CFX_ByteString& name,
30 const CFX_WideString& value); 36 const CFX_WideString& value);
31 int GetSize() const;
32 CXML_AttrItem& GetAt(int index) const;
33 37
34 std::unique_ptr<std::vector<CXML_AttrItem>> m_pMap; 38 std::unique_ptr<std::vector<CXML_AttrItem>> m_pMap;
35 }; 39 };
36 40
37 class CXML_Content { 41 class CXML_Content {
38 public: 42 public:
39 CXML_Content() : m_bCDATA(FALSE), m_Content() {} 43 CXML_Content() : m_bCDATA(FALSE), m_Content() {}
40 void Set(FX_BOOL bCDATA, const CFX_WideStringC& content) { 44 void Set(FX_BOOL bCDATA, const CFX_WideStringC& content) {
41 m_bCDATA = bCDATA; 45 m_bCDATA = bCDATA;
42 m_Content = content; 46 m_Content = content;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 CFX_ByteString m_QSpaceName; 164 CFX_ByteString m_QSpaceName;
161 CFX_ByteString m_TagName; 165 CFX_ByteString m_TagName;
162 CXML_AttrMap m_AttrMap; 166 CXML_AttrMap m_AttrMap;
163 std::vector<ChildRecord> m_Children; 167 std::vector<ChildRecord> m_Children;
164 168
165 friend class CXML_Parser; 169 friend class CXML_Parser;
166 friend class CXML_Composer; 170 friend class CXML_Composer;
167 }; 171 };
168 172
169 #endif // CORE_FXCRT_INCLUDE_FX_XML_H_ 173 #endif // CORE_FXCRT_INCLUDE_FX_XML_H_
OLDNEW
« no previous file with comments | « core/fxcrt/include/fx_ucd.h ('k') | core/fxcrt/xml_int.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698