Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fpdf_cmaps.h
Go to the documentation of this file.
1// Copyright 2014 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef CORE_FPDFAPI_CMAPS_FPDF_CMAPS_H_
8#define CORE_FPDFAPI_CMAPS_FPDF_CMAPS_H_
9
10#include <stdint.h>
11
12#include "core/fxcrt/unowned_ptr_exclusion.h"
13
14namespace fxcmap {
15
17 uint16_t m_HiWord;
18 uint16_t m_LoWordLow;
19 uint16_t m_LoWordHigh;
20 uint16_t m_CID;
21};
22
23struct CMap {
24 enum class Type : bool { kSingle, kRange };
25
26 UNOWNED_PTR_EXCLUSION const char* m_Name; // POD struct.
27 UNOWNED_PTR_EXCLUSION const uint16_t* m_pWordMap; // POD struct.
29 uint16_t m_WordCount;
30 uint16_t m_DWordCount;
33};
34
35uint16_t CIDFromCharCode(const CMap* pMap, uint32_t charcode);
36uint32_t CharCodeFromCID(const CMap* pMap, uint16_t cid);
37
38} // namespace fxcmap
39
40#endif // CORE_FPDFAPI_CMAPS_FPDF_CMAPS_H_
const uint16_t kUniCNS_UCS2_V_3[]
const uint16_t kHKscs_B5_V_5[]
const uint16_t kUniCNS_UCS2_H_3[]
const uint16_t kB5pc_V_0[]
Definition B5pc-V_0.cpp:11
const uint16_t kETenms_B5_H_0[]
const uint16_t kETen_B5_H_0[]
uint16_t CIDFromCharCode(const CMap *pMap, uint32_t charcode)
const DWordCIDMap kCNS_EUC_H_0_DWord[]
const uint16_t kB5pc_H_0[]
Definition B5pc-H_0.cpp:11
uint32_t CharCodeFromCID(const CMap *pMap, uint16_t cid)
const uint16_t kCNS_EUC_H_0[]
const uint16_t kCNS_EUC_V_0[]
const uint16_t kETenms_B5_V_0[]
const uint16_t kUniCNS_UTF16_H_0[]
const uint16_t kCNS1CID2Unicode_5[19088]
const uint16_t kHKscs_B5_H_5[]
const CMap kCNS1_cmaps[]
const size_t kCNS1_cmaps_size
const DWordCIDMap kCNS_EUC_V_0_DWord[]
const uint16_t kETen_B5_V_0[]
UNOWNED_PTR_EXCLUSION const DWordCIDMap * m_pDWordMap
Definition fpdf_cmaps.h:28
uint16_t m_DWordCount
Definition fpdf_cmaps.h:30
Type m_WordMapType
Definition fpdf_cmaps.h:31
UNOWNED_PTR_EXCLUSION const uint16_t * m_pWordMap
Definition fpdf_cmaps.h:27
UNOWNED_PTR_EXCLUSION const char * m_Name
Definition fpdf_cmaps.h:26
uint16_t m_WordCount
Definition fpdf_cmaps.h:29
int8_t m_UseOffset
Definition fpdf_cmaps.h:32
uint16_t m_LoWordHigh
Definition fpdf_cmaps.h:19
#define UNOWNED_PTR_EXCLUSION