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
CPDF_CMap Class Referencefinal

#include <cpdf_cmap.h>

+ Inheritance diagram for CPDF_CMap:
+ Collaboration diagram for CPDF_CMap:

Classes

struct  CIDRange
 
struct  CodeRange
 

Public Types

enum  CodingScheme : uint8_t { OneByte , TwoBytes , MixedTwoBytes , MixedFourBytes }
 

Public Member Functions

bool IsLoaded () const
 
bool IsVertWriting () const
 
uint16_t CIDFromCharCode (uint32_t charcode) const
 
int GetCharSize (uint32_t charcode) const
 
uint32_t GetNextChar (ByteStringView pString, size_t *pOffset) const
 
size_t CountChar (ByteStringView pString) const
 
int AppendChar (char *str, uint32_t charcode) const
 
void SetVertical (bool vert)
 
void SetCodingScheme (CodingScheme scheme)
 
void SetAdditionalMappings (std::vector< CIDRange > mappings)
 
void SetMixedFourByteLeadingRanges (std::vector< CodeRange > ranges)
 
CIDCoding GetCoding () const
 
const fxcmap::CMapGetEmbedMap () const
 
CIDSet GetCharset () const
 
void SetCharset (CIDSet set)
 
void SetDirectCharcodeToCIDTableRange (uint32_t start_code, uint32_t end_code, uint16_t start_cid)
 
bool IsDirectCharcodeToCIDTableIsEmpty () const
 
- Public Member Functions inherited from fxcrt::Retainable
 Retainable ()=default
 
bool HasOneRef () const
 

Public Attributes

 CONSTRUCT_VIA_MAKE_RETAIN
 

Static Public Attributes

static constexpr size_t kDirectMapTableSize = 65536
 

Private Member Functions

 ~CPDF_CMap () override
 

Additional Inherited Members

- Protected Member Functions inherited from fxcrt::Retainable
virtual ~Retainable ()=default
 

Detailed Description

Definition at line 35 of file cpdf_cmap.h.

Member Enumeration Documentation

◆ CodingScheme

enum CPDF_CMap::CodingScheme : uint8_t
Enumerator
OneByte 
TwoBytes 
MixedTwoBytes 
MixedFourBytes 

Definition at line 39 of file cpdf_cmap.h.

Member Function Documentation

◆ ~CPDF_CMap()

CPDF_CMap::~CPDF_CMap ( )
overrideprivatedefault

◆ AppendChar()

int CPDF_CMap::AppendChar ( char * str,
uint32_t charcode ) const

Definition at line 455 of file cpdf_cmap.cpp.

References MixedFourBytes, MixedTwoBytes, OneByte, and TwoBytes.

◆ CIDFromCharCode()

uint16_t CPDF_CMap::CIDFromCharCode ( uint32_t charcode) const

Definition at line 336 of file cpdf_cmap.cpp.

References kCID.

◆ CountChar()

size_t CPDF_CMap::CountChar ( ByteStringView pString) const

Definition at line 427 of file cpdf_cmap.cpp.

References MixedFourBytes, MixedTwoBytes, OneByte, and TwoBytes.

◆ GetCharset()

CIDSet CPDF_CMap::GetCharset ( ) const
inline

Definition at line 77 of file cpdf_cmap.h.

◆ GetCharSize()

int CPDF_CMap::GetCharSize ( uint32_t charcode) const

Definition at line 405 of file cpdf_cmap.cpp.

References MixedFourBytes, MixedTwoBytes, OneByte, and TwoBytes.

◆ GetCoding()

CIDCoding CPDF_CMap::GetCoding ( ) const
inline

Definition at line 75 of file cpdf_cmap.h.

◆ GetEmbedMap()

const fxcmap::CMap * CPDF_CMap::GetEmbedMap ( ) const
inline

Definition at line 76 of file cpdf_cmap.h.

◆ GetNextChar()

uint32_t CPDF_CMap::GetNextChar ( ByteStringView pString,
size_t * pOffset ) const

Definition at line 362 of file cpdf_cmap.cpp.

References MixedFourBytes, MixedTwoBytes, OneByte, and TwoBytes.

◆ IsDirectCharcodeToCIDTableIsEmpty()

bool CPDF_CMap::IsDirectCharcodeToCIDTableIsEmpty ( ) const
inline

Definition at line 83 of file cpdf_cmap.h.

◆ IsLoaded()

bool CPDF_CMap::IsLoaded ( ) const
inline

Definition at line 60 of file cpdf_cmap.h.

◆ IsVertWriting()

bool CPDF_CMap::IsVertWriting ( ) const
inline

Definition at line 61 of file cpdf_cmap.h.

◆ SetAdditionalMappings()

void CPDF_CMap::SetAdditionalMappings ( std::vector< CIDRange > mappings)

Definition at line 503 of file cpdf_cmap.cpp.

References CPDF_CMap::CIDRange::m_EndCode, and MixedFourBytes.

◆ SetCharset()

void CPDF_CMap::SetCharset ( CIDSet set)
inline

Definition at line 78 of file cpdf_cmap.h.

◆ SetCodingScheme()

void CPDF_CMap::SetCodingScheme ( CodingScheme scheme)
inline

Definition at line 71 of file cpdf_cmap.h.

◆ SetDirectCharcodeToCIDTableRange()

void CPDF_CMap::SetDirectCharcodeToCIDTableRange ( uint32_t start_code,
uint32_t end_code,
uint16_t start_cid )

Definition at line 520 of file cpdf_cmap.cpp.

◆ SetMixedFourByteLeadingRanges()

void CPDF_CMap::SetMixedFourByteLeadingRanges ( std::vector< CodeRange > ranges)

Definition at line 516 of file cpdf_cmap.cpp.

◆ SetVertical()

void CPDF_CMap::SetVertical ( bool vert)
inline

Definition at line 70 of file cpdf_cmap.h.

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_RETAIN

CPDF_CMap::CONSTRUCT_VIA_MAKE_RETAIN

Definition at line 58 of file cpdf_cmap.h.

◆ kDirectMapTableSize

size_t CPDF_CMap::kDirectMapTableSize = 65536
staticconstexpr

Definition at line 37 of file cpdf_cmap.h.


The documentation for this class was generated from the following files: