#include <PdfEncoding.h>
Public Member Functions | |
virtual void | AddToDictionary (PdfDictionary &rDictionary) const |
virtual PdfString | ConvertToUnicode (const PdfString &rEncodedString, const PdfFont *pFont) const |
virtual PdfRefCountedBuffer | ConvertToEncoding (const PdfString &rString, const PdfFont *pFont) const |
virtual bool | IsAutoDelete () const |
virtual bool | IsSingleByteEncoding () const |
const PdfName & | GetName () const |
virtual pdf_utf16be | GetCharCode (int nIndex) const |
Protected Member Functions | |
virtual const PdfName & | GetID () const |
virtual const pdf_utf16be * | GetToUnicodeTable () const =0 |
Protected Attributes | |
Util::PdfMutex * | m_mutex |
Mutex for the creation of the encoding table. |
PdfMacExportEncoding ..
void PoDoFo::PdfSimpleEncoding::AddToDictionary | ( | PdfDictionary & | rDictionary | ) | const [virtual] |
Add this encoding object to a dictionary usually be adding an /Encoding key in font dictionaries.
rDictionary | add the encoding to this dictionary |
Implements PoDoFo::PdfEncoding.
PdfRefCountedBuffer PoDoFo::PdfSimpleEncoding::ConvertToEncoding | ( | const PdfString & | rString, | |
const PdfFont * | pFont | |||
) | const [virtual] |
Convert a unicode PdfString to a string encoded with this encoding.
an | unicode PdfString. | |
pFont | the font for which this string is converted |
Implements PoDoFo::PdfEncoding.
PdfString PoDoFo::PdfSimpleEncoding::ConvertToUnicode | ( | const PdfString & | rEncodedString, | |
const PdfFont * | pFont | |||
) | const [virtual] |
Convert a string that is encoded with this encoding to an unicode PdfString.
rEncodedString | a string encoded by this encoding. Usually this string was read from a content stream. | |
pFont | the font for which this string is converted |
Implements PoDoFo::PdfEncoding.
pdf_utf16be PoDoFo::PdfSimpleEncoding::GetCharCode | ( | int | nIndex | ) | const [virtual] |
Get the unicode character code for this encoding at the position nIndex. nIndex is a position between GetFirstChar() and GetLastChar()
nIndex | character code at position index |
Implements PoDoFo::PdfEncoding.
const PdfName & PoDoFo::PdfSimpleEncoding::GetID | ( | ) | const [inline, protected, virtual] |
Get a unique ID for this encoding which can used for comparisons!
Implements PoDoFo::PdfEncoding.
const PdfName & PoDoFo::PdfSimpleEncoding::GetName | ( | ) | const [inline] |
Get the name of this encoding.
virtual const pdf_utf16be* PoDoFo::PdfSimpleEncoding::GetToUnicodeTable | ( | ) | const [protected, pure virtual] |
Gets a table of 256 short values which are the big endian unicode code points that are assigned to the 256 values of this encoding.
This table is used internally to convert an encoded string of this encoding to and from unicode.
Implemented in PoDoFo::PdfDocEncoding, PoDoFo::PdfWinAnsiEncoding, PoDoFo::PdfMacRomanEncoding, PoDoFo::PdfStandardEncoding, PoDoFo::PdfSymbolEncoding, and PoDoFo::PdfZapfDingbatsEncoding.
bool PoDoFo::PdfSimpleEncoding::IsAutoDelete | ( | ) | const [inline, virtual] |
PdfSimpleEncoding subclasses are usuylla not auto-deleted, as they are allocated statically only once.
PdfFont::MacRomanEncoding
Implements PoDoFo::PdfEncoding.
bool PoDoFo::PdfSimpleEncoding::IsSingleByteEncoding | ( | ) | const [inline, virtual] |
Implements PoDoFo::PdfEncoding.