4#ifndef PDF_ENCODING_COMMON_H
5#define PDF_ENCODING_COMMON_H
21 unsigned char CodeSpaceSize;
38 unsigned GetByteCode(
unsigned char byteIdx)
const;
39 void AppendTo(std::string&
str)
const;
40 void WriteHexTo(std::string&
str,
bool wrap =
true)
const;
55 explicit PdfCID(
unsigned id);
70 unsigned MetricsId = 0;
88 struct PODOFO_API PdfEncodingLimits
final
101 bool AreValid()
const;
106 bool HaveValidCodeSizeRange()
const;
110 unsigned char MinCodeSize;
111 unsigned char MaxCodeSize;
114 struct PODOFO_API PdfCIDSystemInfo final
144 void CopyTo(std::vector<codepoint>&
codePoints)
const;
145 codepointview view()
const;
146 unsigned GetSize()
const;
151 operator codepointview()
const;
165 std::array<codepoint, 3> Data;
171 std::unique_ptr<codepoint[]> Data;
178 using CodeUnitMap = std::unordered_map<PdfCharCode, CodePointSpan>;
190 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:135
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:35
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:127
Represent a CID (Character ID) with full code unit information.
Definition PdfEncodingCommon.h:46
A character code unit.
Definition PdfEncodingCommon.h:17
Represents a bundle of a CID and GID information.
Definition PdfEncodingCommon.h:82
PdfGID Gid
The identifier of the glyph in font program and PDF metrics.
Definition PdfEncodingCommon.h:85
Represents a GID (Glyph ID) with PDF metrics identifier.
Definition PdfEncodingCommon.h:68