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

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

Issue 2032613003: Get rid of NULLs in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: s/NULL/nullptr/ 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
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>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 CFX_WideString m_Content; 46 CFX_WideString m_Content;
47 }; 47 };
48 48
49 class CXML_Element { 49 class CXML_Element {
50 public: 50 public:
51 enum ChildType { Invalid, Element, Content }; 51 enum ChildType { Invalid, Element, Content };
52 52
53 static CXML_Element* Parse(const void* pBuffer, 53 static CXML_Element* Parse(const void* pBuffer,
54 size_t size, 54 size_t size,
55 FX_BOOL bSaveSpaceChars = FALSE, 55 FX_BOOL bSaveSpaceChars = FALSE,
56 FX_FILESIZE* pParsedSize = NULL); 56 FX_FILESIZE* pParsedSize = nullptr);
57 static CXML_Element* Parse(IFX_FileRead* pFile, 57 static CXML_Element* Parse(IFX_FileRead* pFile,
58 FX_BOOL bSaveSpaceChars = FALSE, 58 FX_BOOL bSaveSpaceChars = FALSE,
59 FX_FILESIZE* pParsedSize = NULL); 59 FX_FILESIZE* pParsedSize = nullptr);
60 static CXML_Element* Parse(IFX_BufferRead* pBuffer, 60 static CXML_Element* Parse(IFX_BufferRead* pBuffer,
61 FX_BOOL bSaveSpaceChars = FALSE, 61 FX_BOOL bSaveSpaceChars = FALSE,
62 FX_FILESIZE* pParsedSize = NULL); 62 FX_FILESIZE* pParsedSize = nullptr);
63 63
64 CXML_Element(const CFX_ByteStringC& qSpace, const CFX_ByteStringC& tagName); 64 CXML_Element(const CFX_ByteStringC& qSpace, const CFX_ByteStringC& tagName);
65 CXML_Element(const CFX_ByteStringC& qTagName); 65 CXML_Element(const CFX_ByteStringC& qTagName);
66 CXML_Element(); 66 CXML_Element();
67 ~CXML_Element(); 67 ~CXML_Element();
68 68
69 void Empty(); 69 void Empty();
70 CFX_ByteString GetTagName(FX_BOOL bQualified = FALSE) const; 70 CFX_ByteString GetTagName(FX_BOOL bQualified = FALSE) const;
71 CFX_ByteString GetNamespace(FX_BOOL bQualified = FALSE) const; 71 CFX_ByteString GetNamespace(FX_BOOL bQualified = FALSE) const;
72 CFX_ByteString GetNamespaceURI(const CFX_ByteString& qName) const; 72 CFX_ByteString GetNamespaceURI(const CFX_ByteString& qName) const;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 CFX_ByteString m_QSpaceName; 160 CFX_ByteString m_QSpaceName;
161 CFX_ByteString m_TagName; 161 CFX_ByteString m_TagName;
162 CXML_AttrMap m_AttrMap; 162 CXML_AttrMap m_AttrMap;
163 std::vector<ChildRecord> m_Children; 163 std::vector<ChildRecord> m_Children;
164 164
165 friend class CXML_Parser; 165 friend class CXML_Parser;
166 friend class CXML_Composer; 166 friend class CXML_Composer;
167 }; 167 };
168 168
169 #endif // CORE_FXCRT_INCLUDE_FX_XML_H_ 169 #endif // CORE_FXCRT_INCLUDE_FX_XML_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698