|
pdfmm 0.9.20
|
#include <PdfEncoding.h>
Public Member Functions | |
| PdfEncoding () | |
| std::string | ConvertToUtf8 (const PdfString &encodedStr) const |
| bool | TryConvertToUtf8 (const PdfString &encodedStr, std::string &str) const |
| std::string | ConvertToEncoded (const std::string_view &str) const |
| std::vector< PdfCID > | ConvertToCIDs (const std::string_view &str) const |
| bool | TryConvertToCIDs (const std::string_view &str, std::vector< PdfCID > &cids) const |
| std::vector< PdfCID > | ConvertToCIDs (const PdfString &encodedStr) const |
| bool | TryConvertToCIDs (const PdfString &encodedStr, std::vector< PdfCID > &cids) const |
| PdfCID | GetCID (char32_t codePoint) const |
| char32_t | GetCodePoint (const PdfCharCode &codeUnit) const |
| char32_t | GetCodePoint (unsigned charCode) const |
| const PdfCharCode & | GetFirstChar () const |
| const PdfCharCode & | GetLastChar () const |
| size_t | GetId () const |
| const PdfEncodingLimits & | GetLimits () const |
A PdfEncoding is in PdfFont to transform a text string into a representation so that it can be displayed in a PDF file.
PdfEncoding can also be used to convert strings from a PDF file back into a PdfString.
| PdfEncoding::PdfEncoding | ( | ) |
Null encoding
| std::vector< PdfCID > mm::PdfEncoding::ConvertToCIDs | ( | const std::string_view & | str | ) | const |
Get a cid codes from a utf8 string
| string PdfEncoding::ConvertToEncoded | ( | const std::string_view & | str | ) | const |
| string PdfEncoding::ConvertToUtf8 | ( | const PdfString & | encodedStr | ) | const |
| PdfCID PdfEncoding::GetCID | ( | char32_t | codePoint | ) | const |
| char32_t PdfEncoding::GetCodePoint | ( | const PdfCharCode & | codeUnit | ) | const |
Get code point from char code unit
| char32_t PdfEncoding::GetCodePoint | ( | unsigned | charCode | ) | const |
Get code point from char code
| const PdfCharCode & PdfEncoding::GetFirstChar | ( | ) | const |
This return the first char code used in the encoding
|
inline |
Return an Id to be used in hashed containers. Id 0 has a special meaning for PdfDynamicEncoding
| const PdfCharCode & PdfEncoding::GetLastChar | ( | ) | const |
This return the last char code used in the encoding
| const PdfEncodingLimits & PdfEncoding::GetLimits | ( | ) | const |
Get actual limits of the encoding
May be the limits inferred from /Encoding or the limits inferred by /FirstChar, /LastChar
| bool mm::PdfEncoding::TryConvertToCIDs | ( | const PdfString & | encodedStr, |
| std::vector< PdfCID > & | cids | ||
| ) | const |
| bool mm::PdfEncoding::TryConvertToCIDs | ( | const std::string_view & | str, |
| std::vector< PdfCID > & | cids | ||
| ) | const |
Try to get a cid codes from a utf8 string
| bool PdfEncoding::TryConvertToUtf8 | ( | const PdfString & | encodedStr, |
| std::string & | str | ||
| ) | const |