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