OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FPDFAPI_FPDF_PARSER_CPDF_SYNTAX_PARSER_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_CPDF_SYNTAX_PARSER_H_ |
8 #define CORE_FPDFAPI_FPDF_PARSER_CPDF_SYNTAX_PARSER_H_ | 8 #define CORE_FPDFAPI_FPDF_PARSER_CPDF_SYNTAX_PARSER_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 void InitParser(IFX_FileRead* pFileAccess, uint32_t HeaderOffset); | 26 void InitParser(IFX_FileRead* pFileAccess, uint32_t HeaderOffset); |
27 | 27 |
28 FX_FILESIZE SavePos() const { return m_Pos; } | 28 FX_FILESIZE SavePos() const { return m_Pos; } |
29 void RestorePos(FX_FILESIZE pos) { m_Pos = pos; } | 29 void RestorePos(FX_FILESIZE pos) { m_Pos = pos; } |
30 | 30 |
31 CPDF_Object* GetObject(CPDF_IndirectObjectHolder* pObjList, | 31 CPDF_Object* GetObject(CPDF_IndirectObjectHolder* pObjList, |
32 uint32_t objnum, | 32 uint32_t objnum, |
33 uint32_t gennum, | 33 uint32_t gennum, |
34 FX_BOOL bDecrypt); | 34 FX_BOOL bDecrypt); |
35 CPDF_Object* GetObjectByStrict(CPDF_IndirectObjectHolder* pObjList, | 35 CPDF_Object* GetObjectForStrict(CPDF_IndirectObjectHolder* pObjList, |
36 uint32_t objnum, | 36 uint32_t objnum, |
37 uint32_t gennum); | 37 uint32_t gennum); |
38 CFX_ByteString GetKeyword(); | 38 CFX_ByteString GetKeyword(); |
39 | 39 |
40 void ToNextLine(); | 40 void ToNextLine(); |
41 void ToNextWord(); | 41 void ToNextWord(); |
42 | 42 |
43 FX_BOOL SearchWord(const CFX_ByteStringC& word, | 43 FX_BOOL SearchWord(const CFX_ByteStringC& word, |
44 FX_BOOL bWholeWord, | 44 FX_BOOL bWholeWord, |
45 FX_BOOL bForward, | 45 FX_BOOL bForward, |
46 FX_FILESIZE limit); | 46 FX_FILESIZE limit); |
47 int SearchMultiWord(const CFX_ByteStringC& words, | 47 int SearchMultiWord(const CFX_ByteStringC& words, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 FX_FILESIZE m_FileLen; | 87 FX_FILESIZE m_FileLen; |
88 uint8_t* m_pFileBuf; | 88 uint8_t* m_pFileBuf; |
89 uint32_t m_BufSize; | 89 uint32_t m_BufSize; |
90 FX_FILESIZE m_BufOffset; | 90 FX_FILESIZE m_BufOffset; |
91 std::unique_ptr<CPDF_CryptoHandler> m_pCryptoHandler; | 91 std::unique_ptr<CPDF_CryptoHandler> m_pCryptoHandler; |
92 uint8_t m_WordBuffer[257]; | 92 uint8_t m_WordBuffer[257]; |
93 uint32_t m_WordSize; | 93 uint32_t m_WordSize; |
94 }; | 94 }; |
95 | 95 |
96 #endif // CORE_FPDFAPI_FPDF_PARSER_CPDF_SYNTAX_PARSER_H_ | 96 #endif // CORE_FPDFAPI_FPDF_PARSER_CPDF_SYNTAX_PARSER_H_ |
OLD | NEW |