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

Side by Side Diff: core/fpdfapi/fpdf_cmaps/cmap_int.h

Issue 1821043003: Remove FX_WORD in favor of uint16_t. (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
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_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_ 7 #ifndef CORE_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_
8 #define CORE_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_ 8 #define CORE_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_
9 9
10 #include "core/include/fxcrt/fx_system.h" // For FX_WORD. 10 #include "core/include/fxcrt/fx_system.h" // For uint16_t.
dsinclair 2016/03/21 21:33:12 ditto
Tom Sepez 2016/03/21 21:59:48 Done.
11 11
12 struct FXCMAP_CMap { 12 struct FXCMAP_CMap {
13 enum MapType { None, Single, Range, Reverse }; 13 enum MapType { None, Single, Range, Reverse };
14 14
15 const char* m_Name; 15 const char* m_Name;
16 MapType m_WordMapType; 16 MapType m_WordMapType;
17 const FX_WORD* m_pWordMap; 17 const uint16_t* m_pWordMap;
18 int m_WordCount; 18 int m_WordCount;
19 MapType m_DWordMapType; 19 MapType m_DWordMapType;
20 const FX_WORD* m_pDWordMap; 20 const uint16_t* m_pDWordMap;
21 int m_DWordCount; 21 int m_DWordCount;
22 int m_UseOffset; 22 int m_UseOffset;
23 }; 23 };
24 24
25 void FPDFAPI_FindEmbeddedCMap(const char* name, 25 void FPDFAPI_FindEmbeddedCMap(const char* name,
26 int charset, 26 int charset,
27 int coding, 27 int coding,
28 const FXCMAP_CMap*& pMap); 28 const FXCMAP_CMap*& pMap);
29 FX_WORD FPDFAPI_CIDFromCharCode(const FXCMAP_CMap* pMap, FX_DWORD charcode); 29 uint16_t FPDFAPI_CIDFromCharCode(const FXCMAP_CMap* pMap, FX_DWORD charcode);
30 FX_DWORD FPDFAPI_CharCodeFromCID(const FXCMAP_CMap* pMap, FX_WORD cid); 30 FX_DWORD FPDFAPI_CharCodeFromCID(const FXCMAP_CMap* pMap, uint16_t cid);
31 31
32 #endif // CORE_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_ 32 #endif // CORE_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698