PoDoFo::PdfEncoding Class Reference
#include <PdfEncoding.h>
List of all members.
Detailed Description
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.
Constructor & Destructor Documentation
PoDoFo::PdfEncoding::PdfEncoding |
( |
int |
nFirstChar, |
|
|
int |
nLastChar | |
|
) |
| | [protected] |
Create a new PdfEncoding.
- Parameters:
-
| nFirstChar | the first supported character code (either a byte value in the current encoding or a unicode value) |
| nLastChar | the last supported character code, must be larger than nFirstChar
- * (either a byte value in the current encoding or a unicode value)
|
Member Function Documentation
virtual void PoDoFo::PdfEncoding::AddToDictionary |
( |
PdfDictionary & |
rDictionary |
) |
const [pure virtual] |
PdfEncoding::const_iterator PoDoFo::PdfEncoding::begin |
( |
|
) |
const [inline] |
Iterate over all unicode character points in this encoding, beginning with the first.
- Returns:
- iterator pointing to the first defined unicode character
virtual PdfString PoDoFo::PdfEncoding::ConvertToUnicode |
( |
const PdfString & |
rEncodedString, |
|
|
const PdfFont * |
pFont | |
|
) |
| | const [pure virtual] |
PdfEncoding::const_iterator PoDoFo::PdfEncoding::end |
( |
|
) |
const [inline] |
Iterate over all unicode character points in this encoding, beginning with the first.
- Returns:
- iterator pointing at the end
virtual pdf_utf16be PoDoFo::PdfEncoding::GetCharCode |
( |
int |
nIndex |
) |
const [pure virtual] |
int PoDoFo::PdfEncoding::GetFirstChar |
( |
|
) |
const [inline] |
- Returns:
- the first character code that is defined for this encoding
virtual const PdfName& PoDoFo::PdfEncoding::GetID |
( |
|
) |
const [protected, pure virtual] |
int PoDoFo::PdfEncoding::GetLastChar |
( |
|
) |
const [inline] |
- Returns:
- the last character code that is defined for this encoding
virtual bool PoDoFo::PdfEncoding::IsAutoDelete |
( |
|
) |
const [pure virtual] |
virtual bool PoDoFo::PdfEncoding::IsSingleByteEncoding |
( |
|
) |
const [pure virtual] |
bool PoDoFo::PdfEncoding::operator< |
( |
const PdfEncoding & |
rhs |
) |
const [inline] |
Comparison operator.
- Parameters:
-
| rhs | the PdfEncoding to which this encoding should be compared |
- Returns:
- true if this encoding is less than the specified.
bool PoDoFo::PdfEncoding::operator== |
( |
const PdfEncoding & |
rhs |
) |
const [inline] |
Comparison operator.
- Parameters:
-
| rhs | the PdfEncoding to which this encoding should be compared |
- Returns:
- true if both encodings are the same.