4#ifndef PDF_ENCODING_COMMON_H
5#define PDF_ENCODING_COMMON_H
20 unsigned char CodeSpaceSize;
36 unsigned GetByteCode(
unsigned char byteIdx)
const;
37 void AppendTo(std::string&
str)
const;
38 void WriteHexTo(std::string&
str,
bool wrap =
true)
const;
50 explicit PdfCID(
unsigned id);
62 unsigned MetricsId = 0;
79 struct PODOFO_API PdfEncodingLimits
final
90 bool AreValid()
const;
94 bool HaveValidCodeSizeRange()
const;
98 unsigned char MinCodeSize;
99 unsigned char MaxCodeSize;
102 struct PODOFO_API PdfCIDSystemInfo final
128 void CopyTo(std::vector<codepoint>&
codePoints)
const;
129 codepointview view()
const;
130 unsigned GetSize()
const;
135 operator codepointview()
const;
147 std::array<codepoint, 3> Data;
153 std::unique_ptr<codepoint[]> Data;
160 using CodeUnitMap = std::unordered_map<PdfCharCode, CodePointSpan>;
171 return code.CodeSpaceSize << 24 | code.Code;
A memory owning immutable block of code points, optimized for small segments as up to 3 elements can ...
Definition PdfEncodingCommon.h:119
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:30
All classes, functions, types and enums of PoDoFo are members of these namespace.
Definition basetypes.h:13
char32_t codepoint
A convenient typedef for an unspecified codepoint The underlying type is conveniently char32_t so it'...
Definition PdfEncodingCommon.h:113
Represent a CID (Character ID) with full code unit information.
Definition PdfEncodingCommon.h:43
A character code unit.
Definition PdfEncodingCommon.h:16
Represents a bundle of a CID and GID information.
Definition PdfEncodingCommon.h:73
PdfGID Gid
The identifier of the glyph in font program and PDF metrics.
Definition PdfEncodingCommon.h:76
Represents a GID (Glyph ID) with PDF metrics identifier.
Definition PdfEncodingCommon.h:60