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 31 of file cpdf_syntax_parser.h.
|
strong |
Enumerator | |
---|---|
kStrict | |
kLoose |
Definition at line 33 of file cpdf_syntax_parser.h.
|
explicit |
Definition at line 90 of file cpdf_syntax_parser.cpp.
CPDF_SyntaxParser::CPDF_SyntaxParser | ( | RetainPtr< CPDF_ReadValidator > | pValidator, |
FX_FILESIZE | HeaderOffset ) |
Definition at line 97 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 867 of file cpdf_syntax_parser.cpp.
|
static |
Definition at line 82 of file cpdf_syntax_parser.cpp.
FX_FILESIZE CPDF_SyntaxParser::FindTag | ( | ByteStringView | tag | ) |
Definition at line 901 of file cpdf_syntax_parser.cpp.
References GetNextChar(), and GetPos().
bool CPDF_SyntaxParser::GetCharAt | ( | FX_FILESIZE | pos, |
uint8_t & | ch ) |
Definition at line 107 of file cpdf_syntax_parser.cpp.
References GetNextChar().
uint32_t CPDF_SyntaxParser::GetDirectNum | ( | ) |
Definition at line 827 of file cpdf_syntax_parser.cpp.
References FXSYS_atoui().
FX_FILESIZE CPDF_SyntaxParser::GetDocumentSize | ( | ) | const |
Definition at line 145 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 608 of file cpdf_syntax_parser.cpp.
References fxcrt::ByteString::c_str(), FXSYS_atoui(), GetKeyword(), GetNextWord(), GetPos(), GetValidator(), CPDF_SyntaxParser::WordResult::is_number, fxcrt::ByteString::IsEmpty(), fxcrt::ByteString::operator!=(), and SetPos().
Referenced by CPDF_LinearizedHeader::Parse().
ByteString CPDF_SyntaxParser::GetKeyword | ( | ) |
Definition at line 477 of file cpdf_syntax_parser.cpp.
References GetNextWord().
Referenced by GetIndirectObject().
bool CPDF_SyntaxParser::GetNextChar | ( | uint8_t & | ch | ) |
Definition at line 132 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 463 of file cpdf_syntax_parser.cpp.
References GetValidator(), and fxcrt::ByteString::operator=().
Referenced by GetIndirectObject(), GetKeyword(), CPDF_LinearizedHeader::Parse(), PeekNextWord(), and TEST().
RetainPtr< CPDF_Object > CPDF_SyntaxParser::GetObjectBody | ( | CPDF_IndirectObjectHolder * | pObjList | ) |
Definition at line 486 of file cpdf_syntax_parser.cpp.
References GetValidator(), and kLoose.
|
inline |
Definition at line 53 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 835 of file cpdf_syntax_parser.cpp.
Referenced by GetIndirectObject(), GetNextWord(), GetObjectBody(), and CPDF_HintTables::Parse().
ByteString CPDF_SyntaxParser::PeekNextWord | ( | ) |
Definition at line 472 of file cpdf_syntax_parser.cpp.
References GetNextWord().
Referenced by TEST().
bool CPDF_SyntaxParser::ReadBlock | ( | pdfium::span< uint8_t > | buffer | ) |
Definition at line 165 of file cpdf_syntax_parser.cpp.
ByteString CPDF_SyntaxParser::ReadHexString | ( | ) |
Definition at line 322 of file cpdf_syntax_parser.cpp.
References fxcrt::ByteString::ByteString(), FXSYS_HexCharToInt(), GetNextChar(), and fxcrt::ByteString::operator+=().
Referenced by TEST().
ByteString CPDF_SyntaxParser::ReadString | ( | ) |
Definition at line 236 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 409 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 481 of file cpdf_syntax_parser.cpp.
Referenced by GetIndirectObject(), CPDF_HintTables::Parse(), CPDF_LinearizedHeader::Parse(), and TEST().
|
inline |
Definition at line 49 of file cpdf_syntax_parser.h.
|
inline |
Definition at line 86 of file cpdf_syntax_parser.h.
void CPDF_SyntaxParser::ToNextLine | ( | ) |
Definition at line 354 of file cpdf_syntax_parser.cpp.
References GetNextChar().
void CPDF_SyntaxParser::ToNextWord | ( | ) |
Definition at line 369 of file cpdf_syntax_parser.cpp.
References GetNextChar(), PDFCharIsLineEnding(), PDFCharIsWhitespace(), and RecordingToNextWord().
|
friend |
Definition at line 93 of file cpdf_syntax_parser.h.
|
friend |
Definition at line 94 of file cpdf_syntax_parser.h.