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

Side by Side Diff: core/include/fpdfapi/fpdf_parser.h

Issue 1365253003: Merge to XFA: Fix the issue that pdfium swallows 'fi' or 'ff' in some pdf files (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 2 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 | « no previous file | core/src/fpdfapi/fpdf_page/fpdf_page_parser.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 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
9 9
10 #include "../fxcrt/fx_system.h" 10 #include "../fxcrt/fx_system.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 287
288 virtual FX_BOOL GetNextChar(uint8_t& ch); 288 virtual FX_BOOL GetNextChar(uint8_t& ch);
289 289
290 FX_BOOL GetCharAtBackward(FX_FILESIZE pos, uint8_t& ch); 290 FX_BOOL GetCharAtBackward(FX_FILESIZE pos, uint8_t& ch);
291 291
292 void GetNextWord(); 292 void GetNextWord();
293 293
294 FX_BOOL IsWholeWord(FX_FILESIZE startpos, 294 FX_BOOL IsWholeWord(FX_FILESIZE startpos,
295 FX_FILESIZE limit, 295 FX_FILESIZE limit,
296 const uint8_t* tag, 296 const uint8_t* tag,
297 FX_DWORD taglen); 297 FX_DWORD taglen,
298 FX_BOOL checkKeyword);
298 299
299 CFX_ByteString ReadString(); 300 CFX_ByteString ReadString();
300 301
301 CFX_ByteString ReadHexString(); 302 CFX_ByteString ReadHexString();
302 303
303 unsigned int ReadEOLMarkers(FX_FILESIZE pos); 304 unsigned int ReadEOLMarkers(FX_FILESIZE pos);
304 305
305 CPDF_Stream* ReadStream(CPDF_Dictionary* pDict, 306 CPDF_Stream* ReadStream(CPDF_Dictionary* pDict,
306 PARSE_CONTEXT* pContext, 307 PARSE_CONTEXT* pContext,
307 FX_DWORD objnum, 308 FX_DWORD objnum,
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 FX_DWORD src_size, 929 FX_DWORD src_size,
929 const CPDF_Dictionary* pDict, 930 const CPDF_Dictionary* pDict,
930 uint8_t*& dest_buf, 931 uint8_t*& dest_buf,
931 FX_DWORD& dest_size, 932 FX_DWORD& dest_size,
932 CFX_ByteString& ImageEncoding, 933 CFX_ByteString& ImageEncoding,
933 CPDF_Dictionary*& pImageParms, 934 CPDF_Dictionary*& pImageParms,
934 FX_DWORD estimated_size, 935 FX_DWORD estimated_size,
935 FX_BOOL bImageAcc); 936 FX_BOOL bImageAcc);
936 937
937 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 938 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698