Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CPDF_StreamParser Class Reference

#include <cpdf_streamparser.h>

+ Collaboration diagram for CPDF_StreamParser:

Public Types

enum  ElementType {
  kEndOfData , kNumber , kKeyword , kName ,
  kOther
}
 

Public Member Functions

 CPDF_StreamParser (pdfium::span< const uint8_t > span)
 
 CPDF_StreamParser (pdfium::span< const uint8_t > span, const WeakPtr< ByteStringPool > &pPool)
 
 ~CPDF_StreamParser ()
 
ElementType ParseNextElement ()
 
ByteStringView GetWord () const
 
uint32_t GetPos () const
 
void SetPos (uint32_t pos)
 
const RetainPtr< CPDF_Object > & GetObject () const
 
RetainPtr< CPDF_ObjectReadNextObject (bool bAllowNestedArray, bool bInArray, uint32_t dwRecursionLevel)
 
RetainPtr< CPDF_StreamReadInlineStream (CPDF_Document *pDoc, RetainPtr< CPDF_Dictionary > pDict, const CPDF_Object *pCSObj)
 

Friends

class cpdf_streamparser_ReadHexString_Test
 

Detailed Description

Definition at line 20 of file cpdf_streamparser.h.

Member Enumeration Documentation

◆ ElementType

Enumerator
kEndOfData 
kNumber 
kKeyword 
kName 
kOther 

Definition at line 22 of file cpdf_streamparser.h.

Constructor & Destructor Documentation

◆ CPDF_StreamParser() [1/2]

CPDF_StreamParser::CPDF_StreamParser ( pdfium::span< const uint8_t > span)
explicit

Definition at line 123 of file cpdf_streamparser.cpp.

References CPDF_StreamParser().

Referenced by CPDF_StreamParser().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CPDF_StreamParser() [2/2]

CPDF_StreamParser::CPDF_StreamParser ( pdfium::span< const uint8_t > span,
const WeakPtr< ByteStringPool > & pPool )

Definition at line 126 of file cpdf_streamparser.cpp.

References CPDF_StreamParser().

Referenced by CPDF_StreamParser().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~CPDF_StreamParser()

CPDF_StreamParser::~CPDF_StreamParser ( )
default

Member Function Documentation

◆ GetObject()

const RetainPtr< CPDF_Object > & CPDF_StreamParser::GetObject ( ) const
inline

Definition at line 35 of file cpdf_streamparser.h.

◆ GetPos()

uint32_t CPDF_StreamParser::GetPos ( ) const
inline

Definition at line 33 of file cpdf_streamparser.h.

Referenced by TEST().

+ Here is the caller graph for this function:

◆ GetWord()

ByteStringView CPDF_StreamParser::GetWord ( ) const
inline

Definition at line 30 of file cpdf_streamparser.h.

◆ ParseNextElement()

CPDF_StreamParser::ElementType CPDF_StreamParser::ParseNextElement ( )

Definition at line 220 of file cpdf_streamparser.cpp.

References kEndOfData, kKeyword, kName, kNumber, kOther, PDFCharIsDelimiter(), PDFCharIsLineEnding(), PDFCharIsNumeric(), and PDFCharIsWhitespace().

Referenced by ReadInlineStream().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ReadInlineStream()

RetainPtr< CPDF_Stream > CPDF_StreamParser::ReadInlineStream ( CPDF_Document * pDoc,
RetainPtr< CPDF_Dictionary > pDict,
const CPDF_Object * pCSObj )

Definition at line 132 of file cpdf_streamparser.cpp.

References fxcrt::ByteString::IsEmpty(), pdfium::stream::kDecodeParms, kEndOfData, kKeyword, and ParseNextElement().

+ Here is the call graph for this function:

◆ ReadNextObject()

RetainPtr< CPDF_Object > CPDF_StreamParser::ReadNextObject ( bool bAllowNestedArray,
bool bInArray,
uint32_t dwRecursionLevel )

Definition at line 298 of file cpdf_streamparser.cpp.

◆ SetPos()

void CPDF_StreamParser::SetPos ( uint32_t pos)
inline

Definition at line 34 of file cpdf_streamparser.h.

Referenced by TEST().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ cpdf_streamparser_ReadHexString_Test

friend class cpdf_streamparser_ReadHexString_Test
friend

Definition at line 44 of file cpdf_streamparser.h.


The documentation for this class was generated from the following files: