![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdf_syntax_parser.h>
Classes | |
struct | WordResult |
Public Types | |
enum class | ParseType : bool { kStrict , kLoose } |
Static Public Member Functions | |
static std::unique_ptr< CPDF_SyntaxParser > | CreateForTesting (RetainPtr< IFX_SeekableReadStream > pFileAccess, FX_FILESIZE HeaderOffset) |
Friends | |
class | CPDF_DataAvail |
class | cpdf_syntax_parser_ReadHexString_Test |
Definition at line 32 of file cpdf_syntax_parser.h.
|
strong |
Enumerator | |
---|---|
kStrict | |
kLoose |
Definition at line 34 of file cpdf_syntax_parser.h.
|
explicit |
Definition at line 93 of file cpdf_syntax_parser.cpp.
CPDF_SyntaxParser::CPDF_SyntaxParser | ( | RetainPtr< CPDF_ReadValidator > | pValidator, |
FX_FILESIZE | HeaderOffset ) |
Definition at line 100 of file cpdf_syntax_parser.cpp.
References CPDF_SyntaxParser().
Referenced by CPDF_SyntaxParser().
|
default |
bool CPDF_SyntaxParser::BackwardsSearchToWord | ( | ByteStringView | word, |
FX_FILESIZE | limit ) |
Definition at line 879 of file cpdf_syntax_parser.cpp.
|
static |
Definition at line 85 of file cpdf_syntax_parser.cpp.
FX_FILESIZE CPDF_SyntaxParser::FindTag | ( | ByteStringView | tag | ) |
Definition at line 913 of file cpdf_syntax_parser.cpp.
References GetNextChar(), and GetPos().
bool CPDF_SyntaxParser::GetCharAt | ( | FX_FILESIZE | pos, |
uint8_t & | ch ) |
Definition at line 110 of file cpdf_syntax_parser.cpp.
References GetNextChar().
uint32_t CPDF_SyntaxParser::GetDirectNum | ( | ) |
Definition at line 839 of file cpdf_syntax_parser.cpp.
FX_FILESIZE CPDF_SyntaxParser::GetDocumentSize | ( | ) | const |
Definition at line 148 of file cpdf_syntax_parser.cpp.
Referenced by CPDF_LinearizedHeader::Parse().
RetainPtr< CPDF_Object > CPDF_SyntaxParser::GetIndirectObject | ( | CPDF_IndirectObjectHolder * | pObjList, |
ParseType | parse_type ) |
Definition at line 617 of file cpdf_syntax_parser.cpp.
References GetKeyword(), GetNextWord(), GetPos(), GetValidator(), CPDF_SyntaxParser::WordResult::is_number, fxcrt::ByteString::operator!=(), and SetPos().
Referenced by CPDF_LinearizedHeader::Parse().
ByteString CPDF_SyntaxParser::GetKeyword | ( | ) |
Definition at line 484 of file cpdf_syntax_parser.cpp.
References GetNextWord().
Referenced by GetIndirectObject().
bool CPDF_SyntaxParser::GetNextChar | ( | uint8_t & | ch | ) |
Definition at line 135 of file cpdf_syntax_parser.cpp.
Referenced by FindTag(), GetCharAt(), ReadHexString(), ReadString(), RecordingToNextWord(), ToNextLine(), and ToNextWord().
CPDF_SyntaxParser::WordResult CPDF_SyntaxParser::GetNextWord | ( | ) |
Definition at line 469 of file cpdf_syntax_parser.cpp.
References GetValidator().
Referenced by GetIndirectObject(), GetKeyword(), CPDF_LinearizedHeader::Parse(), PeekNextWord(), and TEST().
RetainPtr< CPDF_Object > CPDF_SyntaxParser::GetObjectBody | ( | CPDF_IndirectObjectHolder * | pObjList | ) |
Definition at line 493 of file cpdf_syntax_parser.cpp.
References GetValidator(), and kLoose.
|
inline |
Definition at line 54 of file cpdf_syntax_parser.h.
Referenced by FindTag(), GetIndirectObject(), CPDF_LinearizedHeader::Parse(), and TEST().
RetainPtr< CPDF_ReadValidator > CPDF_SyntaxParser::GetValidator | ( | ) | const |
Definition at line 847 of file cpdf_syntax_parser.cpp.
Referenced by GetIndirectObject(), GetNextWord(), GetObjectBody(), and CPDF_HintTables::Parse().
ByteString CPDF_SyntaxParser::PeekNextWord | ( | ) |
Definition at line 479 of file cpdf_syntax_parser.cpp.
References GetNextWord().
Referenced by TEST().
bool CPDF_SyntaxParser::ReadBlock | ( | pdfium::span< uint8_t > | buffer | ) |
Definition at line 168 of file cpdf_syntax_parser.cpp.
DataVector< uint8_t > CPDF_SyntaxParser::ReadHexString | ( | ) |
Definition at line 325 of file cpdf_syntax_parser.cpp.
References FXSYS_HexCharToInt(), and GetNextChar().
ByteString CPDF_SyntaxParser::ReadString | ( | ) |
Definition at line 239 of file cpdf_syntax_parser.cpp.
References fxcrt::ByteString::ByteString(), fxcrt::ByteString::ByteString(), FXSYS_DecimalCharToInt(), FXSYS_IsOctalDigit(), GetNextChar(), and fxcrt::ByteString::operator+=().
void CPDF_SyntaxParser::RecordingToNextWord | ( | ) |
Definition at line 415 of file cpdf_syntax_parser.cpp.
References GetNextChar(), kE, kF, kInitial, kInvalid, kNonPercent, kO, kPercent, PDFCharIsLineEnding(), and PDFCharIsWhitespace().
Referenced by ToNextWord().
void CPDF_SyntaxParser::SetPos | ( | FX_FILESIZE | pos | ) |
Definition at line 488 of file cpdf_syntax_parser.cpp.
Referenced by GetIndirectObject(), CPDF_HintTables::Parse(), CPDF_LinearizedHeader::Parse(), and TEST().
|
inline |
Definition at line 50 of file cpdf_syntax_parser.h.
|
inline |
Definition at line 87 of file cpdf_syntax_parser.h.
void CPDF_SyntaxParser::ToNextLine | ( | ) |
Definition at line 360 of file cpdf_syntax_parser.cpp.
References GetNextChar().
void CPDF_SyntaxParser::ToNextWord | ( | ) |
Definition at line 375 of file cpdf_syntax_parser.cpp.
References GetNextChar(), PDFCharIsLineEnding(), PDFCharIsWhitespace(), and RecordingToNextWord().
|
friend |
Definition at line 94 of file cpdf_syntax_parser.h.
|
friend |
Definition at line 95 of file cpdf_syntax_parser.h.