1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
7 #ifndef CORE_SRC_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_
8 #define CORE_SRC_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_
10 #include "../../../include/fxcrt/fx_system.h" // For FX_WORD.
13 enum MapType { None, Single, Range, Reverse };
16 MapType m_WordMapType;
17 const FX_WORD* m_pWordMap;
19 MapType m_DWordMapType;
20 const FX_WORD* m_pDWordMap;
25 void FPDFAPI_FindEmbeddedCMap(const char* name,
28 const FXCMAP_CMap*& pMap);
29 FX_WORD FPDFAPI_CIDFromCharCode(const FXCMAP_CMap* pMap, FX_DWORD charcode);
30 FX_DWORD FPDFAPI_CharCodeFromCID(const FXCMAP_CMap* pMap, FX_WORD cid);
32 #endif // CORE_SRC_FPDFAPI_FPDF_CMAPS_CMAP_INT_H_