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