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
void AppendChar (ByteString *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 36 of file cpdf_cmap.h.

Member Enumeration Documentation

◆ CodingScheme

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

Definition at line 40 of file cpdf_cmap.h.

Member Function Documentation

◆ ~CPDF_CMap()

CPDF_CMap::~CPDF_CMap ( )
overrideprivatedefault

◆ AppendChar()

void CPDF_CMap::AppendChar ( ByteString * str,
uint32_t charcode ) const

Definition at line 414 of file cpdf_cmap.cpp.

References MixedFourBytes, MixedTwoBytes, OneByte, fxcrt::ByteString::operator+=(), and TwoBytes.

Here is the call graph for this function:

◆ CIDFromCharCode()

uint16_t CPDF_CMap::CIDFromCharCode ( uint32_t charcode) const

Definition at line 294 of file cpdf_cmap.cpp.

References kCID.

◆ CountChar()

size_t CPDF_CMap::CountChar ( ByteStringView pString) const

Definition at line 386 of file cpdf_cmap.cpp.

References MixedFourBytes, MixedTwoBytes, OneByte, and TwoBytes.

◆ GetCharset()

CIDSet CPDF_CMap::GetCharset ( ) const
inline

Definition at line 78 of file cpdf_cmap.h.

◆ GetCharSize()

int CPDF_CMap::GetCharSize ( uint32_t charcode) const

Definition at line 364 of file cpdf_cmap.cpp.

References MixedFourBytes, MixedTwoBytes, OneByte, and TwoBytes.

◆ GetCoding()

CIDCoding CPDF_CMap::GetCoding ( ) const
inline

Definition at line 76 of file cpdf_cmap.h.

◆ GetEmbedMap()

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

Definition at line 77 of file cpdf_cmap.h.

◆ GetNextChar()

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

Definition at line 320 of file cpdf_cmap.cpp.

References MixedFourBytes, MixedTwoBytes, OneByte, and TwoBytes.

◆ IsDirectCharcodeToCIDTableIsEmpty()

bool CPDF_CMap::IsDirectCharcodeToCIDTableIsEmpty ( ) const
inline

Definition at line 84 of file cpdf_cmap.h.

◆ IsLoaded()

bool CPDF_CMap::IsLoaded ( ) const
inline

Definition at line 61 of file cpdf_cmap.h.

◆ IsVertWriting()

bool CPDF_CMap::IsVertWriting ( ) const
inline

Definition at line 62 of file cpdf_cmap.h.

◆ SetAdditionalMappings()

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

Definition at line 462 of file cpdf_cmap.cpp.

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

◆ SetCharset()

void CPDF_CMap::SetCharset ( CIDSet set)
inline

Definition at line 79 of file cpdf_cmap.h.

◆ SetCodingScheme()

void CPDF_CMap::SetCodingScheme ( CodingScheme scheme)
inline

Definition at line 72 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 479 of file cpdf_cmap.cpp.

◆ SetMixedFourByteLeadingRanges()

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

Definition at line 475 of file cpdf_cmap.cpp.

◆ SetVertical()

void CPDF_CMap::SetVertical ( bool vert)
inline

Definition at line 71 of file cpdf_cmap.h.

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_RETAIN

CPDF_CMap::CONSTRUCT_VIA_MAKE_RETAIN

Definition at line 59 of file cpdf_cmap.h.

◆ kDirectMapTableSize

size_t CPDF_CMap::kDirectMapTableSize = 65536
staticconstexpr

Definition at line 38 of file cpdf_cmap.h.


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