PoDoFo  0.9.1
Public Member Functions | Protected Member Functions
PoDoFo::PdfWinAnsiEncoding Class Reference

#include <PdfEncoding.h>

Inheritance diagram for PoDoFo::PdfWinAnsiEncoding:
PoDoFo::PdfSimpleEncoding PoDoFo::PdfEncoding

List of all members.

Public Member Functions

 PdfWinAnsiEncoding ()
- Public Member Functions inherited from PoDoFo::PdfSimpleEncoding
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 PdfNameGetName () const
virtual pdf_utf16be GetCharCode (int nIndex) const
- Public Member Functions inherited from PoDoFo::PdfEncoding
bool operator== (const PdfEncoding &rhs) const
bool operator< (const PdfEncoding &rhs) const
int GetFirstChar () const
int GetLastChar () const
const_iterator begin () const
const_iterator end () const

Protected Member Functions

virtual const pdf_utf16be * GetToUnicodeTable () const
- Protected Member Functions inherited from PoDoFo::PdfSimpleEncoding
virtual const PdfNameGetID () const
- Protected Member Functions inherited from PoDoFo::PdfEncoding
 PdfEncoding (int nFirstChar, int nLastChar)

Additional Inherited Members

- Protected Attributes inherited from PoDoFo::PdfSimpleEncoding
Util::PdfMutex * m_mutex
 Mutex for the creation of the encoding table.

Detailed Description

The WinAnsi Encoding is the default encoding in PoDoFo for contents on PDF pages.

It is also called CP-1252 encoding.

Do not allocate this class yourself, as allocations might be expensive. Try using PdfFont::WinAnsiEncoding.

See also:
PdfFont::WinAnsiEncoding

Constructor & Destructor Documentation

PoDoFo::PdfWinAnsiEncoding::PdfWinAnsiEncoding ( )
inline

Create a new PdfWinAnsiEncoding


Member Function Documentation

const pdf_utf16be * PoDoFo::PdfWinAnsiEncoding::GetToUnicodeTable ( ) const
protectedvirtual

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.

Returns:
an array of 256 big endian unicode code points

Implements PoDoFo::PdfSimpleEncoding.