wxPdfDocument 0.9.2
|
Class representing a tokenizer for parsing PDF documenst. More...
#include <pdfparser.h>
Public Member Functions | |
wxPdfTokenizer (wxInputStream *inputStream) | |
Constructor. | |
virtual | ~wxPdfTokenizer () |
Destructor. | |
off_t | Seek (off_t pos) |
Set current offset position in stream. | |
off_t | Tell () |
Get current offset position in stream. | |
void | BackOnePosition (int ch) |
Go back one position in the stream. | |
off_t | GetLength () |
Get length of stream. | |
int | ReadChar () |
Read one byte from stream. | |
wxMemoryOutputStream * | ReadBuffer (size_t size) |
Read size bytes from stream. | |
off_t | GetStartXRef () |
Find the offset of the startxref tag. | |
wxString | ReadString (int size) |
Read a string. | |
wxString | CheckPdfHeader () |
Check the header of the document stream. | |
bool | NextToken () |
Get the next token. | |
void | NextValidToken () |
Get the next valid token. | |
int | GetTokenType () |
Get the type of the last token. | |
wxString | GetStringValue () |
Get the token value as a string. | |
int | GetIntValue () |
Get the token value as an integer. | |
bool | IsHexString () |
Check whether the token is a hexadecimal string. | |
int | GetReference () |
Get object reference. | |
int | GetGeneration () |
Get object generation. | |
Static Public Member Functions | |
static bool | IsWhitespace (int ch) |
Check byte whether it represents a white space character. | |
static bool | IsDelimiter (int ch) |
Check byte whether it is a delimiter. | |
static bool | IsDelimiterOrWhitespace (int ch) |
Check byte whether it is a delimiter or a whitespace character. | |
static int | GetHex (int v) |
Get hexadecimal character. |
Class representing a tokenizer for parsing PDF documenst.
wxPdfTokenizer::wxPdfTokenizer | ( | wxInputStream * | inputStream | ) |
Constructor.
virtual wxPdfTokenizer::~wxPdfTokenizer | ( | ) | [virtual] |
Destructor.
void wxPdfTokenizer::BackOnePosition | ( | int | ch | ) |
Go back one position in the stream.
wxString wxPdfTokenizer::CheckPdfHeader | ( | ) |
Check the header of the document stream.
int wxPdfTokenizer::GetGeneration | ( | ) |
Get object generation.
static int wxPdfTokenizer::GetHex | ( | int | v | ) | [static] |
Get hexadecimal character.
int wxPdfTokenizer::GetIntValue | ( | ) |
Get the token value as an integer.
off_t wxPdfTokenizer::GetLength | ( | ) |
Get length of stream.
int wxPdfTokenizer::GetReference | ( | ) |
Get object reference.
off_t wxPdfTokenizer::GetStartXRef | ( | ) |
Find the offset of the startxref tag.
wxString wxPdfTokenizer::GetStringValue | ( | ) |
Get the token value as a string.
int wxPdfTokenizer::GetTokenType | ( | ) |
Get the type of the last token.
static bool wxPdfTokenizer::IsDelimiter | ( | int | ch | ) | [static] |
Check byte whether it is a delimiter.
static bool wxPdfTokenizer::IsDelimiterOrWhitespace | ( | int | ch | ) | [static] |
Check byte whether it is a delimiter or a whitespace character.
bool wxPdfTokenizer::IsHexString | ( | ) | [inline] |
Check whether the token is a hexadecimal string.
static bool wxPdfTokenizer::IsWhitespace | ( | int | ch | ) | [static] |
Check byte whether it represents a white space character.
bool wxPdfTokenizer::NextToken | ( | ) |
Get the next token.
void wxPdfTokenizer::NextValidToken | ( | ) |
Get the next valid token.
wxMemoryOutputStream* wxPdfTokenizer::ReadBuffer | ( | size_t | size | ) |
Read size bytes from stream.
int wxPdfTokenizer::ReadChar | ( | ) |
Read one byte from stream.
wxString wxPdfTokenizer::ReadString | ( | int | size | ) |
Read a string.
off_t wxPdfTokenizer::Seek | ( | off_t | pos | ) |
Set current offset position in stream.
off_t wxPdfTokenizer::Tell | ( | ) |
Get current offset position in stream.