Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

bool PoDoFo::PdfContentsTokenizer::GetNextToken ( const char *&  pszToken,
EPdfTokenType *  peType = NULL 
) [virtual]

Reads the next token from the current file position ignoring all comments.

[out]pszTokenOn true return, set to a pointer to the read token (a NULL-terminated C string). The pointer is to memory owned by PdfTokenizer and must NOT be freed. The contents are invalidated on the next call to GetNextToken(..) and by the destruction of the PdfTokenizer. Undefined on false return.
[out]peTypeOn true return, if not NULL the type of the read token will be stored into this parameter. Undefined on false return.
True if a token was read, false if there are no more tokens to read.
See also:

Reimplemented from PoDoFo::PdfTokenizer.

Definition at line 105 of file PdfContentsTokenizer.cpp.

References m_lstContents, and SetCurrentContentsStream().

Referenced by ReadNext().

      bool result = PdfTokenizer::GetNextToken(pszToken, peType);
      while (!result) {
            if( !m_lstContents.size() )
                  return false;

            SetCurrentContentsStream( m_lstContents.front() );
            result = PdfTokenizer::GetNextToken(pszToken, peType);
      return result;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index