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

Side by Side Diff: core/fxcrt/fx_xml_parser.cpp

Issue 1825953002: Move core/include/fxcrt to core/fxcrt/include. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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/fx_xml_composer.cpp ('k') | core/fxcrt/fxcrt_platforms.cpp » ('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 #include "core/fxcrt/xml_int.h" 7 #include "core/fxcrt/xml_int.h"
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "core/include/fxcrt/fx_ext.h" 11 #include "core/fxcrt/include/fx_ext.h"
12 #include "core/include/fxcrt/fx_xml.h" 12 #include "core/fxcrt/include/fx_xml.h"
13 #include "third_party/base/stl_util.h" 13 #include "third_party/base/stl_util.h"
14 14
15 CXML_Parser::~CXML_Parser() { 15 CXML_Parser::~CXML_Parser() {
16 if (m_bOwnedStream) { 16 if (m_bOwnedStream) {
17 m_pDataAcc->Release(); 17 m_pDataAcc->Release();
18 } 18 }
19 } 19 }
20 FX_BOOL CXML_Parser::Init(uint8_t* pBuffer, size_t size) { 20 FX_BOOL CXML_Parser::Init(uint8_t* pBuffer, size_t size) {
21 m_pDataAcc = new CXML_DataBufAcc(pBuffer, size); 21 m_pDataAcc = new CXML_DataBufAcc(pBuffer, size);
22 return Init(TRUE); 22 return Init(TRUE);
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 m_pMap->push_back({space, name, value}); 786 m_pMap->push_back({space, name, value});
787 } 787 }
788 788
789 int CXML_AttrMap::GetSize() const { 789 int CXML_AttrMap::GetSize() const {
790 return m_pMap ? pdfium::CollectionSize<int>(*m_pMap) : 0; 790 return m_pMap ? pdfium::CollectionSize<int>(*m_pMap) : 0;
791 } 791 }
792 792
793 CXML_AttrItem& CXML_AttrMap::GetAt(int index) const { 793 CXML_AttrItem& CXML_AttrMap::GetAt(int index) const {
794 return (*m_pMap)[index]; 794 return (*m_pMap)[index];
795 } 795 }
OLDNEW
« no previous file with comments | « core/fxcrt/fx_xml_composer.cpp ('k') | core/fxcrt/fxcrt_platforms.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698