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

Side by Side Diff: core/fpdfapi/parser/fpdf_parser_decode.h

Issue 2477443002: Remove FX_BOOL from core (Closed)
Patch Set: Created 4 years, 1 month 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 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_PARSER_FPDF_PARSER_DECODE_H_ 7 #ifndef CORE_FPDFAPI_PARSER_FPDF_PARSER_DECODE_H_
8 #define CORE_FPDFAPI_PARSER_FPDF_PARSER_DECODE_H_ 8 #define CORE_FPDFAPI_PARSER_FPDF_PARSER_DECODE_H_
9 9
10 #include "core/fxcrt/fx_basic.h" 10 #include "core/fxcrt/fx_basic.h"
11 11
12 class CPDF_Dictionary; 12 class CPDF_Dictionary;
13 13
14 // Indexed by 8-bit char code, contains unicode code points. 14 // Indexed by 8-bit char code, contains unicode code points.
15 extern const uint16_t PDFDocEncoding[256]; 15 extern const uint16_t PDFDocEncoding[256];
16 16
17 CFX_ByteString PDF_NameDecode(const CFX_ByteStringC& orig); 17 CFX_ByteString PDF_NameDecode(const CFX_ByteStringC& orig);
18 CFX_ByteString PDF_NameDecode(const CFX_ByteString& orig); 18 CFX_ByteString PDF_NameDecode(const CFX_ByteString& orig);
19 CFX_ByteString PDF_NameEncode(const CFX_ByteString& orig); 19 CFX_ByteString PDF_NameEncode(const CFX_ByteString& orig);
20 CFX_ByteString PDF_EncodeString(const CFX_ByteString& src, 20 CFX_ByteString PDF_EncodeString(const CFX_ByteString& src, bool bHex = false);
21 FX_BOOL bHex = FALSE);
22 CFX_WideString PDF_DecodeText(const uint8_t* pData, uint32_t size); 21 CFX_WideString PDF_DecodeText(const uint8_t* pData, uint32_t size);
23 CFX_WideString PDF_DecodeText(const CFX_ByteString& bstr); 22 CFX_WideString PDF_DecodeText(const CFX_ByteString& bstr);
24 CFX_ByteString PDF_EncodeText(const FX_WCHAR* pString, int len = -1); 23 CFX_ByteString PDF_EncodeText(const FX_WCHAR* pString, int len = -1);
25 CFX_ByteString PDF_EncodeText(const CFX_WideString& str); 24 CFX_ByteString PDF_EncodeText(const CFX_WideString& str);
26 25
27 bool FlateEncode(const uint8_t* src_buf, 26 bool FlateEncode(const uint8_t* src_buf,
28 uint32_t src_size, 27 uint32_t src_size,
29 uint8_t** dest_buf, 28 uint8_t** dest_buf,
30 uint32_t* dest_size); 29 uint32_t* dest_size);
31 30
(...skipping 18 matching lines...) Expand all
50 uint32_t A85Decode(const uint8_t* src_buf, 49 uint32_t A85Decode(const uint8_t* src_buf,
51 uint32_t src_size, 50 uint32_t src_size,
52 uint8_t*& dest_buf, 51 uint8_t*& dest_buf,
53 uint32_t& dest_size); 52 uint32_t& dest_size);
54 // Public for testing. 53 // Public for testing.
55 uint32_t HexDecode(const uint8_t* src_buf, 54 uint32_t HexDecode(const uint8_t* src_buf,
56 uint32_t src_size, 55 uint32_t src_size,
57 uint8_t*& dest_buf, 56 uint8_t*& dest_buf,
58 uint32_t& dest_size); 57 uint32_t& dest_size);
59 // Public for testing. 58 // Public for testing.
60 uint32_t FPDFAPI_FlateOrLZWDecode(FX_BOOL bLZW, 59 uint32_t FPDFAPI_FlateOrLZWDecode(bool bLZW,
61 const uint8_t* src_buf, 60 const uint8_t* src_buf,
62 uint32_t src_size, 61 uint32_t src_size,
63 CPDF_Dictionary* pParams, 62 CPDF_Dictionary* pParams,
64 uint32_t estimated_size, 63 uint32_t estimated_size,
65 uint8_t*& dest_buf, 64 uint8_t*& dest_buf,
66 uint32_t& dest_size); 65 uint32_t& dest_size);
67 FX_BOOL PDF_DataDecode(const uint8_t* src_buf, 66 bool PDF_DataDecode(const uint8_t* src_buf,
68 uint32_t src_size, 67 uint32_t src_size,
69 const CPDF_Dictionary* pDict, 68 const CPDF_Dictionary* pDict,
70 uint8_t*& dest_buf, 69 uint8_t*& dest_buf,
71 uint32_t& dest_size, 70 uint32_t& dest_size,
72 CFX_ByteString& ImageEncoding, 71 CFX_ByteString& ImageEncoding,
73 CPDF_Dictionary*& pImageParms, 72 CPDF_Dictionary*& pImageParms,
74 uint32_t estimated_size, 73 uint32_t estimated_size,
75 FX_BOOL bImageAcc); 74 bool bImageAcc);
76 75
77 #endif // CORE_FPDFAPI_PARSER_FPDF_PARSER_DECODE_H_ 76 #endif // CORE_FPDFAPI_PARSER_FPDF_PARSER_DECODE_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/parser/cpdf_syntax_parser_unittest.cpp ('k') | core/fpdfapi/parser/fpdf_parser_decode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698