wxPdfDocument 1.2.0
Public Member Functions | Static Public Member Functions | List of all members
wxPdfTokenizer Class Reference

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 () 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 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.
 

Detailed Description

Class representing a tokenizer for parsing PDF documenst.

Constructor & Destructor Documentation

◆ wxPdfTokenizer()

wxPdfTokenizer::wxPdfTokenizer ( wxInputStream * inputStream)

Constructor.

◆ ~wxPdfTokenizer()

virtual wxPdfTokenizer::~wxPdfTokenizer ( )
virtual

Destructor.

Member Function Documentation

◆ 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

Get object generation.

◆ 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 ( )

Get length of stream.

◆ GetReference()

int wxPdfTokenizer::GetReference ( ) const

Get object reference.

◆ 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 ( )

Get the next token.

◆ 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)

Read a string.

◆ 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: