OLD | NEW |
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/fxcrt/include/fx_string.h" | 10 #include "core/fxcrt/fx_string.h" |
11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/fx_system.h" |
12 | 12 |
13 struct FXCMAP_CMap { | 13 struct FXCMAP_CMap { |
14 enum MapType { None, Single, Range, Reverse }; | 14 enum MapType { None, Single, Range, Reverse }; |
15 | 15 |
16 const char* m_Name; | 16 const char* m_Name; |
17 MapType m_WordMapType; | 17 MapType m_WordMapType; |
18 const uint16_t* m_pWordMap; | 18 const uint16_t* m_pWordMap; |
19 int m_WordCount; | 19 int m_WordCount; |
20 MapType m_DWordMapType; | 20 MapType m_DWordMapType; |
21 const uint16_t* m_pDWordMap; | 21 const uint16_t* m_pDWordMap; |
22 int m_DWordCount; | 22 int m_DWordCount; |
23 int m_UseOffset; | 23 int m_UseOffset; |
24 }; | 24 }; |
25 | 25 |
26 void FPDFAPI_FindEmbeddedCMap(const CFX_ByteString& name, | 26 void FPDFAPI_FindEmbeddedCMap(const CFX_ByteString& name, |
27 int charset, | 27 int charset, |
28 int coding, | 28 int coding, |
29 const FXCMAP_CMap*& pMap); | 29 const FXCMAP_CMap*& pMap); |
30 uint16_t FPDFAPI_CIDFromCharCode(const FXCMAP_CMap* pMap, uint32_t charcode); | 30 uint16_t FPDFAPI_CIDFromCharCode(const FXCMAP_CMap* pMap, uint32_t charcode); |
31 uint32_t FPDFAPI_CharCodeFromCID(const FXCMAP_CMap* pMap, uint16_t cid); | 31 uint32_t FPDFAPI_CharCodeFromCID(const FXCMAP_CMap* pMap, uint16_t cid); |
32 | 32 |
33 #endif // CORE_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_ | 33 #endif // CORE_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_ |
OLD | NEW |